-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Allow higher and lower maximum zoom values in GraphEdit #49437
Allow higher and lower maximum zoom values in GraphEdit #49437
Conversation
Low zoom values result in unreadable text, but it can still be useful for previewing purposes. Eventually, characters could be replaced by rectangles at very low zoom levels to improve the visual appearance.
I still have a PR that makes those values customizable #38261 |
Also #47986... |
Well my PR is over a year old, I think. So if any of you would like to expose min, max and step for the configuration in yours, be my guest :) |
// but this is still useful for previewing purposes. | ||
#define MIN_ZOOM (1 / Math::pow(ZOOM_SCALE, 8)) | ||
|
||
// Allow zooming 4 times from the default zoom level. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well add only 1 comment saying which part allows zooming how many times? That might help a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CertifiedRice I think it's obvious enough from the number in the comment matching the Math::pow()
exponent.
Thanks! |
Cherry-picked for 3.4. |
Cherry-picked for 3.3.3. |
Low zoom values result in unreadable text, but it can still be useful for previewing purposes.
Eventually, characters could be replaced by rectangles at very low zoom levels to improve the visual appearance.