mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-07-09 00:50:30 +00:00
mermaid: make zoom configurable #144
This commit is contained in:
parent
98f5959a33
commit
a046b9300f
7 changed files with 38 additions and 10 deletions
static/js
|
@ -227,7 +227,7 @@ function initMermaid( update, attrs ) {
|
|||
mermaid.init();
|
||||
// zoom for Mermaid
|
||||
// https://github.com/mermaid-js/mermaid/issues/1860#issuecomment-1345440607
|
||||
var svgs = d3.selectAll( '.mermaid svg' );
|
||||
var svgs = d3.selectAll( '.mermaid.zoom svg' );
|
||||
svgs.each( function(){
|
||||
var svg = d3.select( this );
|
||||
svg.html( '<g>' + svg.html() + '</g>' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue