Class type Ticker-PIXI._t

method autoStart#=: Js.Internal.meth([ `Arity_1(bool) ], unit)

Whether or not this ticker should invoke the method PIXI.Ticker#start automatically when a listener is added. @default: false

method autoStart: bool

Whether or not this ticker should invoke the method PIXI.Ticker#start automatically when a listener is added. @default: false

method count: int

Counts the number of listeners on this ticker.

method deltaMS: float

Scaler time elapsed in milliseconds from last frame to this frame. This value is capped by setting PIXI.Ticker#minFPS and is scaled with PIXI.Ticker#speed. Note: The cap may be exceeded by scaling. If the platform supports DOMHighResTimeStamp, this value will have a precision of 1 µs. @default: 16.66

method deltaTime: float

Scalar time value from last frame to this frame. This value is capped by setting PIXI.Ticker#minFPS and is scaled with PIXI.Ticker#speed. Note: The cap may be exceeded by scaling. @default: 1

method elapsedMS: float

Time elapsed in milliseconds from last frame to this frame. Opposed to what the scalar PIXI.Ticker#deltaTime is based, this value is neither capped nor scaled. If the platform supports DOMHighResTimeStamp, this value will have a precision of 1 µs. @default: 16.66

method lastTime: float

The last time PIXI.Ticker#update was invoked. This value is also reset internally outside of invoking update, but only when a new animation frame is requested. If the platform supports DOMHighResTimeStamp, this value will have a precision of 1 µs. @default: -1

method maxFPS#=: Js.Internal.meth([ `Arity_1(float) ], unit)

Manages the minimum amount of milliseconds required to elapse between invoking PIXI.Ticker#update. This will effect the measured value of PIXI.Ticker#FPS. If it is set to 0, then there is no limit; PixiJS will render as many frames as it can. Otherwise it will be at least minFPS @default: 0

method maxFPS: float

Manages the minimum amount of milliseconds required to elapse between invoking PIXI.Ticker#update. This will effect the measured value of PIXI.Ticker#FPS. If it is set to 0, then there is no limit; PixiJS will render as many frames as it can. Otherwise it will be at least minFPS @default: 0

method minFPS#=: Js.Internal.meth([ `Arity_1(float) ], unit)

Manages the maximum amount of milliseconds allowed to elapse between invoking PIXI.Ticker#update. This value is used to cap PIXI.Ticker#deltaTime, but does not effect the measured value of PIXI.Ticker#FPS. When setting this property it is clamped to a value between 0 and PIXI.settings.TARGET_FPMS * 1000. @default: 10

method minFPS: float

Manages the maximum amount of milliseconds allowed to elapse between invoking PIXI.Ticker#update. This value is used to cap PIXI.Ticker#deltaTime, but does not effect the measured value of PIXI.Ticker#FPS. When setting this property it is clamped to a value between 0 and PIXI.settings.TARGET_FPMS * 1000. @default: 10

method speed#=: Js.Internal.meth([ `Arity_1(float) ], unit)

Factor of current PIXI.Ticker#deltaTime. @default: 1

method speed: float

Factor of current PIXI.Ticker#deltaTime. @default: 1

method started: bool

Whether or not this ticker has been started. true if PIXI.Ticker#start has been called. false if PIXI.Ticker#stop has been called. While false, this value may change to true in the event of PIXI.Ticker#autoStart being true and a listener is added. @default: false

method add: Js.Internal.meth([ `Arity_3(((float => unit), Js.Undefined.t('context), Js.Undefined.t(PIXI.UPDATE_PRIORITY.t))) ], Js.t(_t))

Register a handler for tick events. Calls continuously unless it is removed or the ticker is stopped.

method addOnce: Js.Internal.meth([ `Arity_3(((float => unit), Js.Undefined.t('context), Js.Undefined.t(PIXI.UPDATE_PRIORITY.t))) ], Js.t(_t))

Add a handler for the tick event which is only execute once.

method destroy: Js.Internal.meth([ `Arity_0 ], unit)

Destroy the ticker and don't use after this. Calling this method removes all references to internal events.

method remove: Js.Internal.meth([ `Arity_2(((float => unit), Js.Undefined.t('context))) ], Js.t(_t))

Removes any handlers matching the function and context parameters. If no handlers are left after removing, then it cancels the animation frame.

method start: Js.Internal.meth([ `Arity_0 ], unit)

Starts the ticker. If the ticker has listeners a new animation frame is requested at this point.

method stop: Js.Internal.meth([ `Arity_0 ], unit)

Stops the ticker. If the ticker has requested an animation frame it is canceled at this point.

method update: Js.Internal.meth([ `Arity_1(Js.Undefined.t(float)) ], unit)

Triggers an update. An update entails setting the current PIXI.Ticker#elapsedMS, the current PIXI.Ticker#deltaTime, invoking all listeners with current deltaTime, and then finally setting PIXI.Ticker#lastTime with the value of currentTime that was provided. This method will be called automatically by animation frame callbacks if the ticker instance has been started and listeners are added.