Make nodes selectable from the grid

This commit is contained in:
Ian Gulliver
2019-07-11 05:12:08 +00:00
parent 15ad72dc0a
commit ea5e3cb7e1
15 changed files with 50 additions and 4 deletions

View File

@@ -225,6 +225,7 @@ class Layout {
links.push({
from: from,
to: link.to,
id: link.id,
label: link.label,
highlight: link.highlight,
});
@@ -238,7 +239,8 @@ class Layout {
for (let link of links) {
this.links_.push(
new LayoutLink(link.from, link.to, link.label, link.highlight,
new LayoutLink(link.from, link.to, link.id, link.label,
link.highlight,
this.nodesByPos_, this.linksByPos_,
this.labelsByPos_));
}