Fix for issue #70
This commit is contained in:
parent
83d9a3269e
commit
385e823c17
|
@ -13358,10 +13358,12 @@ exports.draw = function (text, id,isDot) {
|
||||||
|
|
||||||
// Run the renderer. This is what draws the final graph.
|
// Run the renderer. This is what draws the final graph.
|
||||||
render(d3.select("#" + id + " g"), g);
|
render(d3.select("#" + id + " g"), g);
|
||||||
|
var svgb = document.querySelector('#mermaidChart0');
|
||||||
|
|
||||||
// Center the graph
|
// Center the graph
|
||||||
svg.attr("height", g.graph().height );
|
svg.attr("height", g.graph().height );
|
||||||
svg.attr("width", g.graph().width );
|
svg.attr("width", g.graph().width );
|
||||||
|
svg.attr("viewBox", svgb.getBBox().x + ' 0 '+ g.graph().width+' '+ g.graph().height);
|
||||||
};
|
};
|
||||||
},{"./graphDb":104,"./parser/dot":105,"./parser/flow":106,"dagre-d3":1}],104:[function(require,module,exports){
|
},{"./graphDb":104,"./parser/dot":105,"./parser/flow":106,"dagre-d3":1}],104:[function(require,module,exports){
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13326,10 +13326,12 @@ exports.draw = function (text, id,isDot) {
|
||||||
|
|
||||||
// Run the renderer. This is what draws the final graph.
|
// Run the renderer. This is what draws the final graph.
|
||||||
render(d3.select("#" + id + " g"), g);
|
render(d3.select("#" + id + " g"), g);
|
||||||
|
var svgb = document.querySelector('#mermaidChart0');
|
||||||
|
|
||||||
// Center the graph
|
// Center the graph
|
||||||
svg.attr("height", g.graph().height );
|
svg.attr("height", g.graph().height );
|
||||||
svg.attr("width", g.graph().width );
|
svg.attr("width", g.graph().width );
|
||||||
|
svg.attr("viewBox", svgb.getBBox().x + ' 0 '+ g.graph().width+' '+ g.graph().height);
|
||||||
};
|
};
|
||||||
},{"./graphDb":104,"./parser/dot":105,"./parser/flow":106,"dagre-d3":1}],104:[function(require,module,exports){
|
},{"./graphDb":104,"./parser/dot":105,"./parser/flow":106,"dagre-d3":1}],104:[function(require,module,exports){
|
||||||
/**
|
/**
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -284,8 +284,10 @@ exports.draw = function (text, id,isDot) {
|
||||||
|
|
||||||
// Run the renderer. This is what draws the final graph.
|
// Run the renderer. This is what draws the final graph.
|
||||||
render(d3.select("#" + id + " g"), g);
|
render(d3.select("#" + id + " g"), g);
|
||||||
|
var svgb = document.querySelector('#mermaidChart0');
|
||||||
|
|
||||||
// Center the graph
|
// Center the graph
|
||||||
svg.attr("height", g.graph().height );
|
svg.attr("height", g.graph().height );
|
||||||
svg.attr("width", g.graph().width );
|
svg.attr("width", g.graph().width );
|
||||||
|
svg.attr("viewBox", svgb.getBBox().x + ' 0 '+ g.graph().width+' '+ g.graph().height);
|
||||||
};
|
};
|
Loading…
Reference in New Issue