Set default stable velo to 0

This commit is contained in:
2018-03-14 15:26:07 +00:00
parent 7a267d0de2
commit f72218a778
3 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ function startHybridSimulation() {
let forceSample = d3.forceNeighbourSampling()
.neighbourSize(NEIGHBOUR_SIZE)
.sampleSize(SAMPLE_SIZE)
.stableVelocity(0)
.stableVelocity(0) // Change here
.distance(distance)
let forceFull = d3.forceNeighbourSampling()

View File

@@ -15,7 +15,7 @@ function startLinkSimulation() {
.distance(function (n, m) {
return distanceFunction(n, m, props, norm);
})
.stableVelocity(0) //TODO
.stableVelocity(0) // Change here
.onStableVelo(ended);
}
else {

View File

@@ -15,7 +15,7 @@ function startNeighbourSamplingSimulation() {
.distance(function (s, t) {
return distanceFunction(s, t, props, norm);
})
.stableVelocity(0.000001) //TODO
.stableVelocity(0) // Change here
.onStableVelo(ended);
simulation