Actually draw!

This commit is contained in:
Ian Gulliver
2019-07-03 18:35:24 +00:00
parent dcc8981693
commit b4316a1eb5
2 changed files with 2 additions and 2 deletions

View File

@@ -99,8 +99,6 @@ class Architype {
}
draw(steps) {
console.log(steps);
this.grid_.innerHTML = '';
this.gridNodes_ = [];
@@ -133,6 +131,7 @@ class Architype {
node.innerText = label;
node.style.gridColumn = pos[0] + 1;
node.style.gridRow = pos[1] + 1;
this.gridNodes_.push(node);
}
fixSizes() {

View File

@@ -90,6 +90,7 @@ class Layout {
}
obj.savePos();
obj.moveBy(offset);
this.setTension(objects);
let testTension = this.getTotalTension(objects);
obj.restorePos();
if (testTension < newTension) {