Set default stable velo to 0
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user