Link force add end condition

This commit is contained in:
Pitchaya Boonsarngsuk committed 2018-02-06 13:19:39 +00:00
1 parent 3bbd39f04d
commit 4243cc0f9c
2 files changed
+36 -2

No files matched your search

@@ -14,7 +14,9 @@ function startLinkSimulation() {
force = d3.forceLinkFullyConnected()
.distance(function (n, m) {
return distanceFunction(n, m, props, norm);
});
})
.stableVelocity(0.000001) //TODO
.onStableVelo(ended);
}
else {
for (i = nodes.length-1; i >= 1; i--) {