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

[QUESTION] Is it possible to have limits for zooming on SVGView? #755

Open
berkdilek opened this issue Apr 25, 2021 · 1 comment
Open

[QUESTION] Is it possible to have limits for zooming on SVGView? #755

berkdilek opened this issue Apr 25, 2021 · 1 comment

Comments

@berkdilek
Copy link

Hi,

I have an SVGView that works as expected. Renders perfectly, nodes created as expected.

When I enable zoom with svgView.zoom.enable(), it is possible to zoom in and zoom out. I've been looking for a way to set a limit to how much a user can zoom.

For example, I don't want users to zoom out more than SVGView's original size. Similarly, zooming in extremely does break the user experience.

Is there a way to set zoom limits for SVGView?

Thanks

@berkdilek berkdilek changed the title [Question] Is it possible to have limits for zooming on SVGView? [QUESTION] Is it possible to have limits for zooming on SVGView? Apr 25, 2021
@ystrot
Copy link
Member

ystrot commented Apr 30, 2021

Hi @berkdilek,

Currently it's not supported, but good idea to add this.

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