Rename function
This commit is contained in:
@@ -22,6 +22,7 @@ function startHybridSimulation() {
|
|||||||
let forceFull = d3.forceNeighbourSampling()
|
let forceFull = d3.forceNeighbourSampling()
|
||||||
.neighbourSize(FULL_NEIGHBOUR_SIZE)
|
.neighbourSize(FULL_NEIGHBOUR_SIZE)
|
||||||
.sampleSize(FULL_SAMPLE_SIZE)
|
.sampleSize(FULL_SAMPLE_SIZE)
|
||||||
|
.stableVelocity(0) // Change here
|
||||||
.distance(distance)
|
.distance(distance)
|
||||||
|
|
||||||
let hybridSimulation = d3.hybridSimulation(simulation, forceSample, forceFull)
|
let hybridSimulation = d3.hybridSimulation(simulation, forceSample, forceFull)
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ function startLinkSimulation() {
|
|||||||
let links = [], force;
|
let links = [], force;
|
||||||
|
|
||||||
if (tweakedVerOfLink) {
|
if (tweakedVerOfLink) {
|
||||||
force = d3.forceLinkFullyConnected()
|
force = d3.forceLinkCompleteGraph()
|
||||||
.distance(function (n, m) {
|
.distance(function (n, m) {
|
||||||
return distanceFunction(n, m, props, norm);
|
return distanceFunction(n, m, props, norm);
|
||||||
})
|
})
|
||||||
|
|||||||
2
index.js
2
index.js
@@ -7,7 +7,7 @@ export { default as forceBarnesHut}
|
|||||||
export { default as tSNE}
|
export { default as tSNE}
|
||||||
from "./src/t-sne";
|
from "./src/t-sne";
|
||||||
|
|
||||||
export { default as forceLinkFullyConnected}
|
export { default as forceLinkCompleteGraph}
|
||||||
from "./src/link";
|
from "./src/link";
|
||||||
|
|
||||||
export { default as hybridSimulation}
|
export { default as hybridSimulation}
|
||||||
|
|||||||
Reference in New Issue
Block a user