Hybrid change API
This commit is contained in:
1 parent
cf813a58c8
commit
31c1a2ab65
2 files changed
+9
-18
No files matched your search
@@ -27,8 +27,7 @@ function startHybridSimulation() {
|
||||
let hybridSimulation = d3.hybridSimulation(simulation, forceSample, forceFull)
|
||||
.sampleIterations(ITERATIONS)
|
||||
.fullIterations(FULL_ITERATIONS)
|
||||
.pivots(PIVOTS)
|
||||
.numPivots(NUM_PIVOTS)
|
||||
.numPivots(PIVOTS ? NUM_PIVOTS:-1)
|
||||
.interpFindTuneIts(INTERP_ENDING_ITS)
|
||||
.interpDistanceFn(distance)
|
||||
.on("sampleTick", ticked)
|
||||
@@ -36,7 +35,7 @@ function startHybridSimulation() {
|
||||
.on("startInterp", startedFull)
|
||||
.on("end", ended);
|
||||
|
||||
let sample = hybridSimulation.sample();
|
||||
let sample = hybridSimulation.subSet();
|
||||
addNodesToDOM(sample);
|
||||
|
||||
hybridSimulation.restart();
|
||||
|
||||
Reference in new issue
Block a user