We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e1e3eb + a5f2119 commit aa6cf63Copy full SHA for aa6cf63
src/flowchart.chart.js
@@ -60,7 +60,8 @@ FlowChart.prototype.render = function() {
60
len = 0,
61
maxX = 0,
62
maxY = 0,
63
- symbol;
+ symbol,
64
+ line;
65
66
for (i = 0, len = this.symbols.length; i < len; i++) {
67
symbol = this.symbols[i];
@@ -102,6 +103,18 @@ FlowChart.prototype.render = function() {
102
103
maxY = y;
104
}
105
106
+
107
+ for (i = 0, len = this.lines.length; i < len; i++) {
108
+ line = this.lines[i].getBBox();
109
+ var x = line.x2;
110
+ var y = line.y2;
111
+ if (x > maxX) {
112
+ maxX = x;
113
+ }
114
+ if (y > maxY) {
115
+ maxY = y;
116
117
118
119
var scale = this.options['scale'];
120
var lineWidth = this.options['line-width'];
0 commit comments