Link force add end condition

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

View File

@@ -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--) {