1
Vote

Animation constructor missing and need an IFrame interface

description

The Animation class should be defined like follows. The "frame" argument isn't documented but it does get passed to the callback method as an argument.

class Animation extends Container {
    constructor (callback: (frame: IFrame) =>void, node?: Node);
    start();
    stop();
}

interface IFrame {
    time: number;
    timeDiff: number;
    lastTime: Date;
    frameRate: number;
}

comments