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

Enabling zooming in the diagram view window #887

Closed
jpadfield opened this issue Jul 8, 2022 · 3 comments · Fixed by #957
Closed

Enabling zooming in the diagram view window #887

jpadfield opened this issue Jul 8, 2022 · 3 comments · Fixed by #957
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jpadfield
Copy link

Hi,

I have just added an old pan and zoom library to one of the projects I use mermaid in and it seemed that it might be useful to add the same functionality to the Mermaid Live editor - it would just be an issue of including the library, then getting the ID of the svg and running a refresh after each update.

The library is: https://github.com/bumbu/svg-pan-zoom (though I use a slightly altered earlier version)
The example system where I am using it with Mermaid can be seen at: https://research.ng-london.org.uk/modelling/

Thanks

Joe

@jpadfield jpadfield added the enhancement New feature or request label Jul 8, 2022
@sidharthv96
Copy link
Member

Hi @jpadfield!
It would indeed be a useful feature to have.

Two things we'll have to check:

  1. The SVG & PNG download feature isn't affected.
  2. Pan & Zoom state is retained when editing code.

@sidharthv96 sidharthv96 added good first issue Good for newcomers help wanted Extra attention is needed labels Jul 13, 2022
@sidharthv96 sidharthv96 linked a pull request Aug 12, 2022 that will close this issue
3 tasks
@sidharthv96 sidharthv96 mentioned this issue Aug 13, 2022
3 tasks
@sidharthv96
Copy link
Member

@jpadfield Pan & Zoom is currently the most used feature after render and loading sample diagrams!

image

https://plausible.io/mermaid.live

@jpadfield
Copy link
Author

@sidharthv96 thanks for letting me know, it is great that it has been useful :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants