Closed asnaseer-resilient closed 3 years ago
This is totally possible. I've done this in my project. You'll need to implement a custom ZoomAction
.
On my implementation, the user can have the zoom only at a given set of levels.
You can check out the implementation here:
react-diagrams
not to add the default zoom action on initializationZoomAction
You can try it out here: https://renato-bohler.github.io/logossim/
@renato-bohler Really appreciate your insights - I managed to accomplish what my UI/UX designer wanted by following your guidance 👍
It would be great if we had the capability to limit how far in/out a user could zoom. Our UI/UX designer has requested this on our app which makes use of this wonderful library. He wanted to limit zooms to between 1% and 400%.