- Issue created by @swirt
- πΊπΈUnited States swirt Florida
It looks like there is a library or a custom approach
This version is very simple. scroll wheel to zoom and click and drag to pan.
https://jsfiddle.net/zu_min_com/2agy5ehm/26/
Or a library
https://github.com/mermaid-js/mermaid-live-editor/issues/887 using https://github.com/bumbu/svg-pan-zoom - πΊπΈUnited States beeyayjay
This patch looks promising: https://github.com/mgaitan/sphinxcontrib-mermaid/pull/117. It uses d3's native zoom, similar to the jsfiddle @swirt referenced in #2.
- πΊπΈUnited States beeyayjay
Just realized that PR isn't for Mermaid itself, but an offshoot. I assume the solution would work for vanilla Mermaid too though.
- Status changed to Closed: won't fix
about 1 year ago 9:23pm 10 October 2023 - πΊπΈUnited States swirt Florida
Closing this because it is now moved to the Mermaid Diagram Field module β¨ Add pan and zoom controls. Active