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

Getting and setting pan and zoom #233

Open
BlueManCZ opened this issue Nov 25, 2023 · 1 comment
Open

Getting and setting pan and zoom #233

BlueManCZ opened this issue Nov 25, 2023 · 1 comment

Comments

@BlueManCZ
Copy link

Would it be possible to add new props pan, zoom, onPanChange and onZoomChange to NodeEditor, which would probably just get propagated to Stage component and implemented there?

It would be nice to save and restore my last pan and zoom positions instead of always reloading to the default position.

@BlueManCZ
Copy link
Author

I just noticed there is initialScale prop that's equivalent to the zoom prop I proposed.

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