-
Notifications
You must be signed in to change notification settings - Fork 82
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
Allow limits on zooming / panning #10
Comments
Just curious if anyone has examples on how to custom implement this in a local project if the library itself does not have support? Would it just be a matter of attaching event listeners to the div that contains the svg and doing the math? I noticed that the sprotty examples (like circlegraph) can basically zoom in and out to infinity. A long time ago I implemented something in jquery that limits zoom and pan, example here, but I don't know if it could be adapted to sprotty. |
A possible solution would be to bind a different implementation of rebind(SetViewportCommand).to(CustomSetViewportCommand); To solve this in a generic way, we could add respective optional properties to |
From theia-ide/sprotty#220:
The text was updated successfully, but these errors were encountered: