Can someone explain zoom levels, maxZoomPixelRatio and zoomInMultiplier options? #314
-
Sorry, but I just do not understand what these options do.
What is the ratio, of what? And why? Can someone, please, explain a bit?
What does it multiply and why? And also, I do not understand how zoom in/out buttons determine what zoom level to set? I think it does not show image in the actual size. Maybe I am missing something? Also, I find it confusing that clicking the image zooms with different zoom levels than buttons in the toolbar :/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This prop determines the maximum zoom level, or in other words, how far you can zoom in on a picture.
The default value is
This prop determines the degree to which the zoom level changes when you click the zoom-in / zoom-out buttons.
See above.
Most likely.
Double-click / double-tap zoom gestures use a different algorithm. With double-click / double-tap, you can go from minimum to maximum zoom level in no more than just two clicks. |
Beta Was this translation helpful? Give feedback.
This prop determines the maximum zoom level, or in other words, how far you can zoom in on a picture.
rendered image dimensions at maximum zoom
=intrinsic image dimensions
*maxZoomPixelRatio
The default value is
1
, which avoids image pixelization at maximum zoom.This prop determines the degree to which the zoom level changes when you click the zoom-in / zoom-out buttons.
new zoom value
=zoom value
*zoomInMultiplier