Neighbour change api
This commit is contained in:
@@ -16,6 +16,7 @@ function startHybridSimulation() {
|
||||
let forceSample = d3.forceNeighbourSampling()
|
||||
.neighbourSize(NEIGHBOUR_SIZE)
|
||||
.sampleSize(SAMPLE_SIZE)
|
||||
.stableVelocity(0)
|
||||
.distance(distance)
|
||||
|
||||
let forceFull = d3.forceNeighbourSampling()
|
||||
|
||||
@@ -16,7 +16,7 @@ function startNeighbourSamplingSimulation() {
|
||||
return distanceFunction(s, t, props, norm);
|
||||
})
|
||||
.stableVelocity(0.000001) //TODO
|
||||
.stableVeloHandler(ended);
|
||||
.onStableVelo(ended);
|
||||
|
||||
simulation
|
||||
.alphaDecay(0)
|
||||
|
||||
Reference in New Issue
Block a user