@lightningtv/renderer
Version:
Lightning 3 Renderer
27 lines (26 loc) • 1.06 kB
TypeScript
import type { AnimationControllerState, IAnimationController } from '../../common/IAnimationController.js';
import type { AnimationManager } from './AnimationManager.js';
import type { CoreAnimation } from './CoreAnimation.js';
import { EventEmitter } from '../../common/EventEmitter.js';
export declare class CoreAnimationController extends EventEmitter implements IAnimationController {
private manager;
private animation;
stoppedPromise: Promise<void>;
/**
* If this is null, then the animation is in a finished / stopped state.
*/
stoppedResolve: (() => void) | null;
state: AnimationControllerState;
constructor(manager: AnimationManager, animation: CoreAnimation);
start(): IAnimationController;
stop(): IAnimationController;
pause(): IAnimationController;
restore(): IAnimationController;
waitUntilStopped(): Promise<void>;
private registerAnimation;
private unregisterAnimation;
private makeStoppedPromise;
private onFinished;
private onAnimating;
private onTick;
}