Class: Easing

Easing

Controls a group of easings added by Ease.add()

new Easing (element, params, options)

an easing that acts on an element or an array of elements
Name Type Description
element PIXI.DisplayObject | Array.<PIXI.DisplayObject>
params object
options object
Fires:

Extends

Classes

Easing

Members

count

number of parameters being eased

elements PIXI.DisplayObject | Array.<PIXI.DisplayObject>

element(s) being eased

Methods

emit (event)Boolean inherited overrides

Calls each of the listeners registered for a given event.
Name Type Description
event String | Symbol The event name.
Returns:
Type Description
Boolean `true` if the event had listeners, else `false`.

eventNames ()Array inherited overrides

Return an array listing the events for which the emitter has registered listeners.
Returns:
Type Description
Array

listenerCount (event)Number inherited overrides

Return the number of listeners listening to a given event.
Name Type Description
event String | Symbol The event name.
Returns:
Type Description
Number The number of listeners.

listeners (event)Array inherited overrides

Return the listeners registered for a given event.
Name Type Description
event String | Symbol The event name.
Returns:
Type Description
Array The registered listeners.

once (event, fn, context)EventEmitter inherited overrides

Add a one-time listener for a given event.
Name Type Default Description
event String | Symbol The event name.
fn function The listener function.
context * this optional The context to invoke the listener with.
Returns:
Type Description
EventEmitter `this`.

on (event, fn, context)EventEmitter inherited overrides

Add a listener for a given event.
Name Type Default Description
event String | Symbol The event name.
fn function The listener function.
context * this optional The context to invoke the listener with.
Returns:
Type Description
EventEmitter `this`.

remove (element, params)

remove all easings with matching element and params
Name Type Description
element PIXI.DisplayObject optional if not set, removes all elements in this easing
params string | Array.<string> optional if not set, removes all params for each element

removeAllListeners (event)EventEmitter inherited overrides

Remove all listeners, or those of the specified event.
Name Type Description
event String | Symbol optional The event name.
Returns:
Type Description
EventEmitter `this`.

removeListener (event, fn, context, once)EventEmitter inherited overrides

Remove the listeners of a given event.
Name Type Description
event String | Symbol The event name.
fn function Only remove the listeners that match this function.
context * Only remove the listeners that have this context.
once Boolean Only remove one-time listeners.
Returns:
Type Description
EventEmitter `this`.