1 | import { Animation } from './Animation';
|
2 | import type { KeyframeEffect } from './KeyframeEffect';
|
3 | import type { Document } from './Document';
|
4 | export declare function compareAnimations(leftAnimation: Animation, rightAnimation: Animation): number;
|
5 |
|
6 |
|
7 |
|
8 | export declare class AnimationTimeline implements AnimationTimeline {
|
9 | private document;
|
10 | |
11 |
|
12 |
|
13 | animations: Animation[];
|
14 | private ticking;
|
15 | private timelineTicking;
|
16 | private hasRestartedThisFrame;
|
17 | animationsWithPromises: Animation[];
|
18 | private inTick;
|
19 | private pendingEffects;
|
20 | currentTime: number | null;
|
21 | private rafId;
|
22 | private rafCallbacks;
|
23 | private frameId;
|
24 | constructor(document: Document);
|
25 | getAnimations(): Animation[];
|
26 | isTicking(): boolean;
|
27 | play(effect: KeyframeEffect): Animation;
|
28 | applyDirtiedAnimation(animation: Animation): void;
|
29 | restart(): boolean;
|
30 | destroy(): void;
|
31 | applyPendingEffects(): void;
|
32 | private updateAnimationsPromises;
|
33 | private discardAnimations;
|
34 | private restartWebAnimationsNextTick;
|
35 | private webAnimationsNextTick;
|
36 | private processRafCallbacks;
|
37 | private rAF;
|
38 | private requestAnimationFrame;
|
39 | tick(t: number, isAnimationFrame: boolean, updatingAnimations: Animation[]): Animation[][];
|
40 | }
|