You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
I worked with the zoomLevel attribute of the zoomableEventObject yesterday and I think it should be documented more clearly how the zoom relates to the scale of the view. The initial assumption would be that the zoomLevel is the factor the view is scaled by, but it is actually the square root of it.
It might have some advantages in the usability to scale it twice by the zoomLevel factor, but it should be written somewhere in the documentation to avoid confusion.
The text was updated successfully, but these errors were encountered:
Oh that makes sense. They are zooming based on log.
I guess for computing the rate of zoom, log makes more sense, but for calculating things based on scaling after the zoom happens, it's easier to work with the linear ratio.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I worked with the zoomLevel attribute of the zoomableEventObject yesterday and I think it should be documented more clearly how the zoom relates to the scale of the view. The initial assumption would be that the zoomLevel is the factor the view is scaled by, but it is actually the square root of it.
It might have some advantages in the usability to scale it twice by the zoomLevel factor, but it should be written somewhere in the documentation to avoid confusion.
The text was updated successfully, but these errors were encountered: