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

@@ -10,8 +10,11 @@ class LayoutNode {
resolveLinks(nodesByGraphNode) {
this.links = [];
for (let to of this.graphNode_.links) {
this.links.push(nodesByGraphNode.get(to));
for (let link of this.graphNode_.links) {
this.links.push({
to: nodesByGraphNode.get(link.to),
label: link.label,
});
}
}