Interface: SimulationEventConfig
Extended by
Properties
onSimulationStart()?
optionalonSimulationStart: () =>void
Callback function that will be called when the simulation starts.
Returns
void
onSimulationEnd()?
optionalonSimulationEnd: () =>void
Callback function that will be called when the simulation stops.
Returns
void
onSimulationPause()?
optionalonSimulationPause: () =>void
Callback function that will be called when the simulation is paused.
Returns
void
onSimulationUnpause()?
optionalonSimulationUnpause: () =>void
Callback function that will be called when the simulation is unpaused.
Returns
void
onSimulationRestart()?
optionalonSimulationRestart: () =>void
Returns
void
Deprecated
Use onSimulationUnpause instead.
onSimulationTick()?
optionalonSimulationTick: (alpha,hoveredIndex?,pointPosition?) =>void
Callback function that will be called on every tick of the simulation.
Parameters
| Parameter | Type |
|---|---|
alpha | number |
hoveredIndex? | number |
pointPosition? | [number, number] |
Returns
void