mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-20 15:50:30 +00:00
pan and zoom for mermaid graphs #9
This commit is contained in:
parent
8a53387a81
commit
1b06d27608
5 changed files with 642 additions and 0 deletions
static/js
|
@ -107,6 +107,7 @@ function initMermaid() {
|
|||
if (mermaid) {
|
||||
mermaid.mermaidAPI.initialize( Object.assign( {}, mermaid.mermaidAPI.getSiteConfig(), { startOnLoad: true } ) );
|
||||
mermaid.contentLoaded();
|
||||
$(".mermaid svg").svgPanZoom({})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue