|
1 |
| -// flowchart, v1.2.3 |
| 1 | +// flowchart, v1.2.4 |
2 | 2 | // Copyright (c)2013 Adriano Raiano (adrai).
|
3 | 3 | // Distributed under MIT license
|
4 | 4 | // http://adrai.github.io/flowchart.js
|
|
503 | 503 | };
|
504 | 504 |
|
505 | 505 | Symbol.prototype.drawLineTo = function(symbol, text, origin) {
|
506 |
| - if (this.connectedTo.indexOf(symbol) >= 0) { |
507 |
| - return; |
| 506 | + if (this.connectedTo.indexOf(symbol) < 0) { |
| 507 | + this.connectedTo.push(symbol); |
508 | 508 | }
|
509 | 509 |
|
510 |
| - this.connectedTo.push(symbol); |
511 |
| - |
512 | 510 | var x = this.getCenter().x,
|
513 | 511 | y = this.getCenter().y,
|
514 | 512 | top = this.getTop(),
|
|
558 | 556 | this.rightStart = true;
|
559 | 557 | symbol.topEnd = true;
|
560 | 558 | maxX = right.x + this.chart.options['line-length']/2;
|
| 559 | + } else if ((!origin || origin === 'right') && isOnSameColumn && isUnder) { |
| 560 | + line = drawLine(this.chart, right, [ |
| 561 | + {x: right.x + this.chart.options['line-length']/2, y: right.y}, |
| 562 | + {x: right.x + this.chart.options['line-length']/2, y: symbolTop.y - this.chart.options['line-length']/2}, |
| 563 | + {x: symbolTop.x, y: symbolTop.y - this.chart.options['line-length']/2}, |
| 564 | + {x: symbolTop.x, y: symbolTop.y} |
| 565 | + ], text); |
| 566 | + this.rightStart = true; |
| 567 | + symbol.topEnd = true; |
| 568 | + maxX = right.x + this.chart.options['line-length']/2; |
561 | 569 | } else if ((!origin || origin === 'bottom') && isLeft) {
|
562 | 570 | if (this.leftEnd && isUpper) {
|
563 | 571 | line = drawLine(this.chart, bottom, [
|
|
1006 | 1014 | if (prevDisp instanceof(Condition)) {
|
1007 | 1015 | if (prev.yes === s) {
|
1008 | 1016 | prevDisp.yes(dispSymb);
|
1009 |
| - } else if (prev.no === s) { |
| 1017 | + } |
| 1018 | + if (prev.no === s) { |
1010 | 1019 | prevDisp.no(dispSymb);
|
1011 | 1020 | }
|
1012 | 1021 | } else {
|
|
0 commit comments