Class Animator

Index

Properties

Methods

Properties

public static self: IClass

[Property] (Ext.Class)

Methods

public static add(animation?: any)

[Method] Adds an animated object to the animation pool

Parameters

  • animation?: any optional

    Object The animation descriptor to add to the pool.

public static addFrameCallback(callback?: any, scope?: any): string

[Method] Register a recursive callback that will be called at every frame

Parameters

  • callback?: any optional

    Function

  • scope?: any optional

    Object

Returns

string

String

public static animationTime(): number

[Method] Cross platform animationTime implementation

Returns

number

Number

public static callOverridden(args?: any): any

[Method] Call the original method that was previously overridden with override This method is deprecated as callParent does

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callOverridden(arguments)

Returns

any

Object Returns the result of calling the overridden method

public static callParent(args?: any): any

[Method] Call the parent method of the current method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callParent(arguments)

Returns

any

Object Returns the result of calling the parent method

public static callSuper(args?: any): any

[Method] This method is used by an override to call the superclass method but bypass any overridden method

Parameters

  • args?: any optional

    Array/Arguments The arguments, either an array or the arguments object from the current method, for example: this.callSuper(arguments)

Returns

any

Object Returns the result of calling the superclass method

public static cancel(id?: string)

[Method] Cancel a registered one time callback

Parameters

  • id?: string optional

    String

public static contains(animation?: any): boolean

[Method] Returns true or false whether it contains the given animation or not

Parameters

  • animation?: any optional

    Object The animation to check for.

Returns

boolean

Boolean

public static destroy()

[Method]

public static empty(): boolean

[Method] Returns true or false whether the pool is empty or not

Returns

boolean

Boolean

public static getInitialConfig(name?: string): any

[Method] Returns the initial configuration passed to constructor

Parameters

  • name?: string optional

    String When supplied, value for particular configuration option is returned, otherwise the full config object is returned.

Returns

any

Object/Mixed

public static initConfig(instanceConfig?: any): any

[Method] Initialize configuration for this class

Parameters

  • instanceConfig?: any optional

    Object

Returns

any

Object mixins The mixin prototypes as key - value pairs

public static remove(animation?: any)

[Method] Removes an animation from the pool

Parameters

  • animation?: any optional

    Object The animation to remove from the pool.

public static removeFrameCallback(id?: string)

[Method] Unregister a recursive callback

Parameters

  • id?: string optional

    String

public static schedule(callback?: any, scope?: any): string

[Method] Register an one time callback that will be called at the next frame

Parameters

  • callback?: any optional

    Function

  • scope?: any optional

    Object

Returns

string

String

public static statics(): IClass

[Method] Get the reference to the class from which this object was instantiated

Returns

IClass

Ext.Class

public static step(frameTime?: number)

[Method] Given a frame time it will filter out finished animations from the pool

Parameters

  • frameTime?: number optional

    Number The frame's start time, in milliseconds.