Interface: SimulationEventConfig
Extended by
Properties
onSimulationStart()?
optional
onSimulationStart: () =>void
Callback function that will be called when the simulation starts.
Returns
void
onSimulationEnd()?
optional
onSimulationEnd: () =>void
Callback function that will be called when the simulation stops.
Returns
void
onSimulationPause()?
optional
onSimulationPause: () =>void
Callback function that will be called when the simulation is paused.
Returns
void
onSimulationRestart()?
optional
onSimulationRestart: () =>void
Callback function that will be called when the simulation is restarted.
Returns
void
onSimulationTick()?
optional
onSimulationTick: (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