Rename function

This commit is contained in:
Pitchaya Boonsarngsuk
2018-03-21 16:28:58 +00:00
parent a253fc54e1
commit e122b0e8ce
3 changed files with 3 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ function startHybridSimulation() {
let forceFull = d3.forceNeighbourSampling()
.neighbourSize(FULL_NEIGHBOUR_SIZE)
.sampleSize(FULL_SAMPLE_SIZE)
.stableVelocity(0) // Change here
.distance(distance)
let hybridSimulation = d3.hybridSimulation(simulation, forceSample, forceFull)

View File

@@ -11,7 +11,7 @@ function startLinkSimulation() {
let links = [], force;
if (tweakedVerOfLink) {
force = d3.forceLinkFullyConnected()
force = d3.forceLinkCompleteGraph()
.distance(function (n, m) {
return distanceFunction(n, m, props, norm);
})

View File

@@ -7,7 +7,7 @@ export { default as forceBarnesHut}
export { default as tSNE}
from "./src/t-sne";
export { default as forceLinkFullyConnected}
export { default as forceLinkCompleteGraph}
from "./src/link";
export { default as hybridSimulation}