Optimize setTension() CPU usage

This commit is contained in:
Ian Gulliver
2019-07-03 20:00:05 +00:00
parent b066001423
commit 27411817b1
5 changed files with 14 additions and 9 deletions

View File

@@ -9,7 +9,6 @@ class LayoutGroup {
// tension
this.vec = [0, 0];
for (let node of this.nodes.values()) {
node.setTension();
for (let i of [0, 1]) {
this.vec[i] += node.vec[i];
};