mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-20 07:49:43 +02:00
Better margin calclulation when there are several diagrams on one page.
This commit is contained in:
4
dist/mermaid.full.js
vendored
4
dist/mermaid.full.js
vendored
@@ -23395,7 +23395,7 @@ exports.draw = function (text, id,isDot) {
|
||||
|
||||
// Run the renderer. This is what draws the final graph.
|
||||
render(d3.select("#" + id + " g"), g);
|
||||
var svgb = document.querySelector('#mermaidChart0');
|
||||
var svgb = document.querySelector("#" + id);
|
||||
|
||||
/*
|
||||
var xPos = document.querySelectorAll('.clusters rect')[0].x.baseVal.value;
|
||||
@@ -23439,7 +23439,7 @@ exports.draw = function (text, id,isDot) {
|
||||
}
|
||||
i = i + 1;
|
||||
});
|
||||
},200);
|
||||
},20);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user