Skip to content

Commit d39bca4

Browse files
josephtocciadrai
authored andcommitted
Add arrow-text attribute to symbols (adrai#141)
1 parent 5f8d95b commit d39bca4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flowchart.symbol.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ Symbol.prototype.render = function() {
214214
Symbol.prototype.renderLines = function() {
215215
if (this.next) {
216216
if (this.next_direction) {
217-
this.drawLineTo(this.next, '', this.next_direction);
217+
this.drawLineTo(this.next, this.getAttr('arrow-text') || '', this.next_direction);
218218
} else {
219-
this.drawLineTo(this.next);
219+
this.drawLineTo(this.next, this.getAttr('arrow-text') || '');
220220
}
221221
}
222222
};

0 commit comments

Comments
 (0)