Neighbour change api

This commit is contained in:
Pitchaya Boonsarngsuk
2018-02-05 16:33:46 +00:00
parent e7dc79d97e
commit cf813a58c8
4 changed files with 13 additions and 12 deletions

View File

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

View File

@@ -16,7 +16,7 @@ function startNeighbourSamplingSimulation() {
return distanceFunction(s, t, props, norm);
})
.stableVelocity(0.000001) //TODO
.stableVeloHandler(ended);
.onStableVelo(ended);
simulation
.alphaDecay(0)