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

@@ -9,11 +9,13 @@ class GraphLink {
for (let to of this.to) {
from.links.push({
to: to,
id: this.id,
label: this.label,
highlight: this.highlight,
});
to.linksIn.push({
from: from,
id: this.id,
label: this.label,
highlight: this.highlight,
});
@@ -29,6 +31,7 @@ class GraphLink {
static process(item) {
let link = new GraphLink();
link.id = item.id;
link.label = item.label;
link.fromLabel = item.from.label;
link.toLabel = item.to.label;