@graphty/layout / index / SpringElectricalOptions
Interface: SpringElectricalOptions
Defined in: simulation/types.ts:57
Design 9.3 SpringElectricalOptions (ngraph's names and defaults, design 7.20); no CPU simulation in v1.
Extends
Properties
center?
readonlyoptionalcenter?:ArrayLike<number>
Defined in: simulation/types.ts:7
Inherited from
dim?
readonlyoptionaldim?:2|3
Defined in: simulation/types.ts:5
Inherited from
dragCoefficient?
readonlyoptionaldragCoefficient?:number
Defined in: simulation/types.ts:63
gravity?
readonlyoptionalgravity?:number|null
Defined in: simulation/types.ts:62
ngraph's Coulomb constant (negative repels); null or absent: ngraph's -12 scaled down the same way.
iterationsPerStep?
readonlyoptionaliterationsPerStep?:number
Defined in: simulation/types.ts:17
Iterations per step() call; default 1; the element passes its stepMultiplier (design 9.4 item 4).
Inherited from
SimulationOptions.iterationsPerStep
maxInFlight?
readonlyoptionalmaxInFlight?:number
Defined in: simulation/types.ts:19
GPU simulations only (design 7.19); default 2.
Inherited from
scale?
readonlyoptionalscale?:number
Defined in: simulation/types.ts:6
Inherited from
seed?
readonlyoptionalseed?:number|null
Defined in: simulation/types.ts:8
Inherited from
settleThreshold?
readonlyoptionalsettleThreshold?:number
Defined in: simulation/types.ts:14
Settle when the mean per-node displacement stays below settleThreshold * rmsRadius for settleWindow iterations (design 7.17).
Inherited from
SimulationOptions.settleThreshold
settleWindow?
readonlyoptionalsettleWindow?:number
Defined in: simulation/types.ts:15
Inherited from
SimulationOptions.settleWindow
springCoefficient?
readonlyoptionalspringCoefficient?:number|null
Defined in: simulation/types.ts:60
Hooke's constant; null or absent: ngraph's 0.8 scaled down on graphs over a few hundred nodes (the GPU simulation's size rule).
springLength?
readonlyoptionalspringLength?:number
Defined in: simulation/types.ts:58
timeStep?
readonlyoptionaltimeStep?:number
Defined in: simulation/types.ts:64