Complete affinity migration from Graph to Layout

Fixes #6
This commit is contained in:
Ian Gulliver
2019-07-13 03:46:54 +00:00
parent aa9035749f
commit 45bf2d689c
4 changed files with 21 additions and 53 deletions

View File

@@ -12,7 +12,7 @@ class Layout {
this.setInitialPositions();
this.resolveGroups();
this.resolveLinks();
this.resolveAffinity();
this.setAffinity();
while (this.iterate());
this.addGroupPos();
this.drawLinks();
@@ -74,9 +74,9 @@ class Layout {
}
}
resolveAffinity() {
setAffinity() {
for (let node of this.nodes_) {
node.resolveAffinity(this.nodesByGraphNode_);
node.setAffinity(this.nodesByGraphNode_);
}
}