Individual highlighting for link and group labels

This commit is contained in:
Ian Gulliver
2019-07-14 03:19:15 +00:00
parent f3823812c7
commit 3bdb240987
11 changed files with 95 additions and 52 deletions

View File

@@ -227,6 +227,7 @@ class Layout {
to: link.to,
id: link.id,
label: link.label,
labelId: link.labelId,
});
}
}
@@ -238,7 +239,7 @@ class Layout {
for (let link of links) {
this.links_.push(
new LayoutLink(link.from, link.to, link.id, link.label,
new LayoutLink(link.from, link.to, link.id, link.label, link.labelId,
this.nodesByPos_, this.linksByPos_,
this.labelsByPos_));
}
@@ -283,10 +284,7 @@ class Layout {
}
for (let group of this.groups_) {
let step = group.getStep();
if (step) {
steps.push(step);
}
steps.push(...group.getSteps());
}
for (let link of this.links_) {