Highlight links

This commit is contained in:
Ian Gulliver
2019-07-10 23:41:41 +00:00
parent 0aa272c224
commit dda2102f99
7 changed files with 47 additions and 6 deletions

View File

@@ -10,10 +10,12 @@ class GraphLink {
from.links.push({
to: to,
label: this.label,
highlight: this.highlight,
});
to.linksIn.push({
from: from,
label: this.label,
highlight: this.highlight,
});
}
}
@@ -30,6 +32,7 @@ class GraphLink {
link.label = item.label;
link.fromLabel = item.from.label;
link.toLabel = item.to.label;
link.highlight = item.highlight;
if (link.fromLabel == '' || link.toLabel == '') {
return null;
}