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
Hey, I need help with limiting the scale factor.
I want: zoom out not smaller than 1x resolution. Zoom in not further than 5x. For that, I would expect this API: scaleFactorMin={1} scaleFactorMax={5}
I find no example using those props.
I tested many values, but nothing seems to have any effect at all.
Is it even possible to set both min and max?
I also use node.fitToViewer('center', 'center'); if this has any side effects.
The text was updated successfully, but these errors were encountered:
timohausmann
changed the title
scaleFactorMin scaleFactorMax confusion
scaleFactorMin scaleFactorMax not working
Oct 25, 2023
Hey, I need help with limiting the scale factor.
I want: zoom out not smaller than 1x resolution. Zoom in not further than 5x. For that, I would expect this API:
scaleFactorMin={1} scaleFactorMax={5}
I find no example using those props.
I tested many values, but nothing seems to have any effect at all.
Is it even possible to set both min and max?
I also use
node.fitToViewer('center', 'center');
if this has any side effects.The text was updated successfully, but these errors were encountered: