Skip to content

Commit 257b5e3

Browse files
committed
change: recursively build graph from ann input
to fix: link height calculation
1 parent 121260c commit 257b5e3

File tree

4 files changed

+36163
-255
lines changed

4 files changed

+36163
-255
lines changed

dist/tag/js/tag.min.js

Lines changed: 35963 additions & 1 deletion
Large diffs are not rendered by default.

src/js/components/link.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ class Link {
3939
}
4040

4141
init(svg) {
42+
this.arguments.sort((a,b) => a.anchor.idx - b.anchor.idx);
43+
4244
this.mainSVG = svg;
4345
this.svg = svg.group().addClass(this.top ? 'link' : 'link syntax-link');
4446
if (!this.visible) { this.svg.hide(); }

0 commit comments

Comments
 (0)