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

Add min/max scal factor for zoom #937

Open
JensWinkler91 opened this issue Mar 29, 2023 · 3 comments
Open

Add min/max scal factor for zoom #937

JensWinkler91 opened this issue Mar 29, 2023 · 3 comments

Comments

@JensWinkler91
Copy link

What problem does this feature solve?

Zooming is restricted to a min scale factor of 0.25.
In my case i can't see all my nodes because of this restricition.

It would be great if we could set a min or max zoom factor.

Thanks in advance.

@noonnightstorm
Copy link
Collaborator

Sorry,We have no support plan at the moment.

@JensWinkler91
Copy link
Author

Hi,

thanks for your response.

It would be especially helpful when taking a picture of the current diagram.
With a correct zoom level the diagram wouldn't cutted of when we call focusCenterWithAnimate before.

Is there any future plan that contains this feature?
Otherwise is there any possibility to save the whole diagram as an image?

Thanks in advance.

@JensWinkler91
Copy link
Author

Btw. to change the min/max zoom level i figured out that the if-clauses this._zoomData < 0.25 und this._zoomData > 5 in baseCanvas.js have to be changed. 0.25 and 5 could be parameters, like minZoomLevel and maxZoomLevel.

The values should be also adapted in the zoom function.

Any chance to get this feature in v5?

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