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

@@ -1,9 +1,11 @@
class LayoutLink {
constructor(from, to, id, label, nodesByPos, linksByPos, labelsByPos) {
constructor(from, to, id, label, labelId, nodesByPos, linksByPos,
labelsByPos) {
this.from_ = from;
this.to_ = to;
this.id_ = id;
this.label_ = label;
this.labelId_ = labelId;
this.nodesByPos_ = nodesByPos;
this.linksByPos_ = linksByPos;
this.labelsByPos_ = labelsByPos;
@@ -261,7 +263,7 @@ class LayoutLink {
if (this.labelPos_) {
steps.push({
type: 'linkLabel',
id: this.id_,
id: this.labelId_,
pos: this.labelPos_,
label: this.label_,
});