Better margin calculation when there are several diagrams on one page.
This commit is contained in:
parent
910b90b79c
commit
4562a811fc
|
@ -378,7 +378,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;
|
||||
|
@ -422,6 +422,6 @@ exports.draw = function (text, id,isDot) {
|
|||
}
|
||||
i = i + 1;
|
||||
});
|
||||
},200);
|
||||
},20);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue