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

Support default zoomLevel #170

Open
LukasVerstraete opened this issue Dec 24, 2019 · 1 comment
Open

Support default zoomLevel #170

LukasVerstraete opened this issue Dec 24, 2019 · 1 comment

Comments

@LukasVerstraete
Copy link

Features:

I don't know if this is supported yet, but I have been trying to set a default zoomLevel. My first instinct was to set the scaleFactor prop, but to no avail. Something that worked somewhat was setting the scaleFactorMin, but this is not ideal since it does not allow the user to zoomOut further if necessary.

At the moment we use version 3.6.0. Is this issue something that is fixed in the lastest version? If not is this something that can be supported?

@lionkeng
Copy link
Contributor

Can you not call zoomOnViewerCenter on ReactSvgPanZoom after the parent component has mounted?

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

2 participants