Neighbour change api
This commit is contained in:
1 parent
e7dc79d97e
commit
cf813a58c8
4 files changed
+13
-12
No files matched your search
@@ -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