interface _CanvasAnimationData {
    fn: Function;
    time: number;
    attributes: CanvasAnimationAttribute[];
    state: number;
    promise: Promise<any>;
    resolve: Function;
    reject: Function;
}

Properties

fn: Function

The animation function being executed each frame

time: number

The current time of the animation, in milliseconds

The attributes being animated

state: number

The current state of the animation (see CanvasAnimation.STATES)

promise: Promise<any>

A Promise which resolves once the animation is complete

resolve: Function

The resolution function, allowing animation to be ended early

reject: Function

The rejection function, allowing animation to be ended early