From f72218a7783f143887d5b5d37f5d46e9bc74dda0 Mon Sep 17 00:00:00 2001 From: Pitchaya Boonsarngsuk Date: Wed, 14 Mar 2018 15:26:07 +0000 Subject: [PATCH] Set default stable velo to 0 --- examples/js/algos/hybrid.js | 2 +- examples/js/algos/linkForce.js | 2 +- examples/js/algos/neighbourSampling.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/js/algos/hybrid.js b/examples/js/algos/hybrid.js index c42113d..f0c782f 100644 --- a/examples/js/algos/hybrid.js +++ b/examples/js/algos/hybrid.js @@ -16,7 +16,7 @@ function startHybridSimulation() { let forceSample = d3.forceNeighbourSampling() .neighbourSize(NEIGHBOUR_SIZE) .sampleSize(SAMPLE_SIZE) - .stableVelocity(0) + .stableVelocity(0) // Change here .distance(distance) let forceFull = d3.forceNeighbourSampling() diff --git a/examples/js/algos/linkForce.js b/examples/js/algos/linkForce.js index ec541d1..f861913 100644 --- a/examples/js/algos/linkForce.js +++ b/examples/js/algos/linkForce.js @@ -15,7 +15,7 @@ function startLinkSimulation() { .distance(function (n, m) { return distanceFunction(n, m, props, norm); }) - .stableVelocity(0) //TODO + .stableVelocity(0) // Change here .onStableVelo(ended); } else { diff --git a/examples/js/algos/neighbourSampling.js b/examples/js/algos/neighbourSampling.js index ee11d4e..0299fd7 100644 --- a/examples/js/algos/neighbourSampling.js +++ b/examples/js/algos/neighbourSampling.js @@ -15,7 +15,7 @@ function startNeighbourSamplingSimulation() { .distance(function (s, t) { return distanceFunction(s, t, props, norm); }) - .stableVelocity(0.000001) //TODO + .stableVelocity(0) // Change here .onStableVelo(ended); simulation