Only iterate/reorigin on structure changes

This commit is contained in:
Ian Gulliver
2019-07-01 23:02:45 +00:00
parent 067b9c39fe
commit e685b85b18

View File

@@ -170,6 +170,10 @@ class Architype {
this.bucketBySubgraph(graph);
this.setInitialPositions(graph);
this.setAffinity(graph);
while (this.iterate(graph));
this.fixOrigin(graph);
return graph;
}
@@ -439,10 +443,6 @@ class Architype {
}
buildGrid(graph) {
while (this.iterate(graph));
this.fixOrigin(graph);
this.grid_.innerHTML = '';
this.grid_.style.gridTemplateColumns =