AnimationCallback

Module: TSUI.Animation
Extends: None
Implements: None
Exported: Yes

Associated source files:

Description

A callback for animation rendering when requestAnimationFrame is answered.

Constructors

constructor(callback: (TotalElapsedTime: number) => void, context: any, single?: boolean)
Creates a new Animation Callback.
  • callback: (TotalElapsedTime: number) => void - The function to call when requestAnimationFrame is answered.
  • context: any - The context to use when calling callback (sets the value of "this" in callback).
  • OPTIONAL single: boolean - Indicates whether the callback should occur once or should repeat.


Public Properties

AnimationStartTime: number;
The time at which animation began i.e. the time at which the first invoke of the callback occurred.
callback: (TotalElapsedTime: number) => void;
The function to call when requestAnimationFrame is answered.
context: any;
The context to use when calling callback (sets the value of "this" in callback).
single: boolean;
Indicates whether the callback should occur once or should repeat.


Last edited Aug 24, 2013 at 6:10 PM by EdwardNutting, version 5

Comments

No comments yet.