Plumb link labels through to layout

This commit is contained in:
Ian Gulliver
2019-07-10 17:17:17 +00:00
parent 75bc85919c
commit 245bbb86f4
5 changed files with 35 additions and 17 deletions

View File

@@ -7,8 +7,14 @@ class GraphLink {
this.to = nodesByLabel.get(this.toLabel);
for (let from of this.from) {
for (let to of this.to) {
from.links.push(to);
to.linksIn.push(from);
from.links.push({
to: to,
label: this.label,
});
to.linksIn.push({
from: from,
label: this.label,
});
}
}
}