Zooming of Mermaid content? #7199
Unanswered
bschollnick
asked this question in
Q&A
Replies: 3 comments 11 replies
-
The small example is this:
|
Beta Was this translation helpful? Give feedback.
4 replies
-
Hi all This bothered me for too long so I made my own plugin. You can check it out here. Let me know if anything doesn't work. Note: This plugin is still in beta! Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
-
What about clickable mermaid elements? Have not been able to get it to work. I recon it's not integrated? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Folks,
I have some very large mermaid diagrams, that I'd like to be able to zoom & preferably drag 'n move around the file.
Now, I've seen that github will natively add zoom & pan'n scan features to a mermaid diagram... But I haven't seen anything that'll work with mkdocs / mkdocs Material?
I did find this very small javascript at - https://jsfiddle.net/zu_min_com/2agy5ehm/26/, which uses the D3 javascript library.
I've attempted to make it work under mkdocs Material, and failed.
This is the reduced example where it works, stand-alone.
small_raw_example.txt
But If I try to add it to mkdocs, it doesn't work. I believe it's because the native mkdocs mermaid isn't being seen?
I tried loading the cdn version of mermaid as well, but that conflicted with the built-in mermaid. (It was worth a try!)
Anyone have any suggestions? Is there a way to make this work? I don't need this for every diagram....
Beta Was this translation helpful? Give feedback.
All reactions