Skip to content

Can someone explain zoom levels, maxZoomPixelRatio and zoomInMultiplier options? #314

Discussion options

You must be logged in to vote

maxZoomPixelRatio - ratio of image pixels to physical pixels at maximum zoom level

What is the ratio, of what? And why? Can someone, please, explain a bit?

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.

zoomInMultiplier - zoom-in multiplier

What does it multiply and why?

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

And also, I do not understand how zoom…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Andrew-web-coder
Comment options

@igordanchenko
Comment options

Answer selected by igordanchenko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants