Skip to content

Commit 1b06d27

Browse files
committed
pan and zoom for mermaid graphs #9
1 parent 8a53387 commit 1b06d27

File tree

5 files changed

+642
-0
lines changed

5 files changed

+642
-0
lines changed

exampleSite/content/credits.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Special thanks to [@matcornic](https://github.com/matcornic) for his work on [le
1414
* [mermaid](https://mermaid-js.github.io/mermaid) - generation of diagram and flowchart from text in a similar manner as markdown
1515
* [font awesome](http://fontawesome.io/) - the iconic font and CSS framework
1616
* [jQuery](https://jquery.com) - The Write Less, Do More, JavaScript Library
17+
* [jquery-svg-zoom-pan](https://github.com/DanielHoffmann/jquery-svg-pan-zoom) - enable pan and zoom in mermaid graphs
1718
* [lunr](https://lunrjs.com) - Lunr enables you to provide a great search experience without the need for external, server-side, search services...
1819
* [horsey](https://bevacqua.github.io/horsey/) - Progressive and customizable autocomplete component
1920
* [clipboard.js](https://zenorocha.github.io/clipboard.js) - copy text to clipboard

exampleSite/content/shortcodes/mermaid.en.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ description : "Generation of diagram and flowchart from text in a similar manner
77

88
Just insert your mermaid code in the `mermaid` shortcode and that's it.
99

10+
You can pan and zoom the generated graphs.
11+
1012
## Examples
1113

1214
### Flowchart example

layouts/partials/footer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
<script src="{{"js/perfect-scrollbar.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
6161
<script src="{{"js/perfect-scrollbar.jquery.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
6262
<script src="{{"js/jquery.sticky.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
63+
<script src="{{"js/jquery.svg.pan.zoom.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
6364
<script src="{{"js/featherlight.min.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
6465
<script src="{{"js/highlight.pack.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
6566
<script>hljs.initHighlightingOnLoad();</script>

0 commit comments

Comments
 (0)