Interface: SimulationConfig
Extended by
Properties
simulationDecay?
optionalsimulationDecay:number
Decay coefficient. Use bigger values if you want the simulation to “cool down” slower.
Default value: 5000
simulationGravity?
optionalsimulationGravity:number
Gravity force coefficient.
Default value: 0.25
simulationCenter?
optionalsimulationCenter:number
Centering to center mass force coefficient.
Default value: 0
simulationRepulsion?
optionalsimulationRepulsion:number
Repulsion force coefficient.
Default value: 1.0
simulationRepulsionTheta?
optionalsimulationRepulsionTheta:number
Decreases / increases the detalization of the Many-Body force calculations.
When useClassicQuadtree is set to true, this property corresponds to the Barnes–Hut approximation criterion.
Default value: 1.15
simulationRepulsionQuadtreeLevels?
optionalsimulationRepulsionQuadtreeLevels:number
Barnes–Hut approximation depth.
Can only be used when useClassicQuadtree is set true.
Default value: 12
simulationLinkSpring?
optionalsimulationLinkSpring:number
Link spring force coefficient.
Default value: 1
simulationLinkDistance?
optionalsimulationLinkDistance:number
Minimum link distance.
Default value: 10
simulationLinkDistRandomVariationRange?
optionalsimulationLinkDistRandomVariationRange:number[]
Range of random link distance values.
Default value: [1, 1.2]
simulationRepulsionFromMouse?
optionalsimulationRepulsionFromMouse:number
Repulsion coefficient from mouse position.
The repulsion force is activated by pressing the right mouse button.
Default value: 2
simulationFriction?
optionalsimulationFriction:number
Friction coefficient.
Default value: 0.85
simulationImpulse?
optionalsimulationImpulse:number
Coefficient of simulation impulse from 0 to 1. If undefined, the graph will not apply a new impulse to the renders during adding or removing data items, but instead will use the current simulation impulse value from the graph. Has no impact if enableSimulation is false.
Default value: undefined.