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

Explicitly set the scale? #40

Open
eanplatter opened this issue Feb 24, 2020 · 1 comment
Open

Explicitly set the scale? #40

eanplatter opened this issue Feb 24, 2020 · 1 comment

Comments

@eanplatter
Copy link

Hello, I was wondering if there was a way to explicitly set the scale in the state from outside. I am attempting to create a menu button that will Zoom to 75%, which can be kind tricky using the zoomOut / zoomIn methods. Something like panZoom.current.setScale(0.75)? Apologies if this is documented somewhere already 🙊

@eanplatter
Copy link
Author

I made a proposal for this functionality here: #41

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