-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boundingBox computes incorrect bounding box for transformed diagrams #39
Comments
(Imported. Original comment by byor...@gmail.com on July 25, 2012, 09:31:37 PM UTC) Relevant IRC discussion: (16:08) < fryguybob> abernstein: I just looked at boundingBox a little and I think I'm leaning "that's a bug" at the moment. |
Fixed by 77ec072 |
(Imported from http://code.google.com/p/diagrams/issues/detail?id=87. Original issue from andreas....@gmail.com on July 25, 2012, 09:03:51 PM UTC)
What steps will reproduce the problem?
boundingBox (translate (r2 (10,10)) unitSquare :: D R2) calculates a bounding box of size 10.5 times 10.5 (instead of 1 times 1).
So the result is:
BoundingBox (P (R2 {unR2 = (0.0,0.0)})) (P (R2 {unR2 = (10.5,10.5)}))
instead of the expected output:
BoundingBox (P (R2 {unR2 = (9.5,9.5)})) (P (R2 {unR2 = (10.5,10.5)}))
I tested this with version 0.5.0.1 diagrams-lib
The text was updated successfully, but these errors were encountered: