Set default stable velo to 0
This commit is contained in:
@@ -16,7 +16,7 @@ function startHybridSimulation() {
|
|||||||
let forceSample = d3.forceNeighbourSampling()
|
let forceSample = d3.forceNeighbourSampling()
|
||||||
.neighbourSize(NEIGHBOUR_SIZE)
|
.neighbourSize(NEIGHBOUR_SIZE)
|
||||||
.sampleSize(SAMPLE_SIZE)
|
.sampleSize(SAMPLE_SIZE)
|
||||||
.stableVelocity(0)
|
.stableVelocity(0) // Change here
|
||||||
.distance(distance)
|
.distance(distance)
|
||||||
|
|
||||||
let forceFull = d3.forceNeighbourSampling()
|
let forceFull = d3.forceNeighbourSampling()
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ function startLinkSimulation() {
|
|||||||
.distance(function (n, m) {
|
.distance(function (n, m) {
|
||||||
return distanceFunction(n, m, props, norm);
|
return distanceFunction(n, m, props, norm);
|
||||||
})
|
})
|
||||||
.stableVelocity(0) //TODO
|
.stableVelocity(0) // Change here
|
||||||
.onStableVelo(ended);
|
.onStableVelo(ended);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ function startNeighbourSamplingSimulation() {
|
|||||||
.distance(function (s, t) {
|
.distance(function (s, t) {
|
||||||
return distanceFunction(s, t, props, norm);
|
return distanceFunction(s, t, props, norm);
|
||||||
})
|
})
|
||||||
.stableVelocity(0.000001) //TODO
|
.stableVelocity(0) // Change here
|
||||||
.onStableVelo(ended);
|
.onStableVelo(ended);
|
||||||
|
|
||||||
simulation
|
simulation
|
||||||
|
|||||||
Reference in New Issue
Block a user