Interval in ms
Private__Private__Speed multiplier for delta time (for slow-motion / fast-forward).
Whether the ticker is using requestAnimationFrame (RAF) mode.
Tick interval in milliseconds.
Infinity = RAF / variable timestepRegisters a one-time listener for the specified event.
The listener is automatically removed after the first invocation.
Event name
This emitter for chaining
Emits an event, invoking all registered listeners with the provided arguments.
If the event is "error" and no listeners are registered, the first argument (the error)
will be thrown.
Event name
true if any listeners were invoked, false otherwise
Removes all listeners for the specified event, or all listeners if no event is provided.
Event name
Optionalevent: KOptional event name to clear listeners for
This emitter for chaining
Returns the number of listeners registered for the specified event.
Event name
The event to count listeners for
The number of registered listeners
Current time in milliseconds (monotonic).
Private__Starts the ticker loop.
Stops the ticker loop.
Fixed or variable timestep ticker that emits a
"tick"event with delta time (seconds).Supports RAF mode (
tickInterval = Infinity) or fixed interval.Example