Skip to content
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

Incorrect pixmap bounds on scale with artboard #332

Open
GDreyV opened this issue Jan 26, 2016 · 0 comments
Open

Incorrect pixmap bounds on scale with artboard #332

GDreyV opened this issue Jan 26, 2016 · 0 comments
Assignees

Comments

@GDreyV
Copy link

GDreyV commented Jan 26, 2016

Hello, one more issue with bounds on scale now with artboards. Here's example from sample I used. Actual is what I got from pixmap bounds and expected is just calculations.
scale 1:
expected: {"top":1570,"left":2329,"bottom":1608,"right":2355}
actual: {"top":1570,"left":2329,"bottom":1608,"right":2355}
scale 0.67 (not valid):
expected: {"top":1047,"left":1553,"bottom":1072,"right":1570}
actual: {"top":1033,"left":1523,"bottom":1058,"right":1540}
scale 2:
expected: {"top":3140,"left":4658,"bottom":3216,"right":4710}
actual: {"top":3140,"left":4658,"bottom":3216,"right":4710}
scale 2.67 (not valid):
expected: {"top":4187,"left":6
211,"bottom":4288,"right":6280}
actual: {"top":4173,"left":6181,"bottom":4274,"right":6250}
Code and sample image available in case.zip.

@mcilroyc mcilroyc self-assigned this Feb 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants