Skip to content
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

scaleFactorMin scaleFactorMax not working #221

Open
timohausmann opened this issue Oct 24, 2023 · 0 comments
Open

scaleFactorMin scaleFactorMax not working #221

timohausmann opened this issue Oct 24, 2023 · 0 comments

Comments

@timohausmann
Copy link

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.

@timohausmann timohausmann changed the title scaleFactorMin scaleFactorMax confusion scaleFactorMin scaleFactorMax not working Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant