-
Notifications
You must be signed in to change notification settings - Fork 5
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
zoomLevelProperty
should be discrete
#337
Comments
Here's The implementation of zoom in Geometric Optics bears no resemblance to CCK. CCK is an enumeration and has only 2 zoom levels. Geometric Optics is more general - zoom level is an integer, uses as an index into an array of scale values.
@arouinfar let me know if I missed something here, or if you want to discuss reimplementing zoom level in Geometric Optics. |
Also worth noting is that |
Thanks for the clarification @pixelzoom. I think my confusion is that the zoom magnification levels are 0.25x, 0.5x, and 1x, so I missed that |
The actual scale value already exists as a DerivedProperty, so I've instrumented I improved the documentation for What I do NOT want to do is put the actual scale values in the @arouinfar ready for review. |
Thanks @pixelzoom. I think this is a big improvement and really clarifies things. |
For #237
The
zoomLevelProperty
is type NumberPropertyIO and accepts any value within the range 0-2. However, this range shouldn’t be treated continuously and it’s easy to break the sim with the current implementation. There are discrete zoom levels, each with its own rulers.For an example of a discrete
zoomLevelProperty
seecircuitConstructionKitDc.introScreen.model.zoomProperty
.The text was updated successfully, but these errors were encountered: