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
onSimulationRestart()?
optionalonSimulationRestart: () =>void
Callback function that will be called when the simulation is restarted.
Returns
void
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