UNPKG

modern-canvas

Version:

A JavaScript WebGL rendering engine. only the ESM.

19 lines (18 loc) 795 B
import type { AnimationItem } from 'lottie-web'; import type { Node } from '../main'; import type { TextureRect2DProperties } from './TextureRect2D'; import { CanvasTexture } from '../resources'; import { TextureRect2D } from './TextureRect2D'; export interface Lottie2DProperties extends TextureRect2DProperties { src: string; } export declare class Lottie2D extends TextureRect2D { src: string; readonly texture: CanvasTexture; animation?: AnimationItem; constructor(properties?: Partial<Lottie2DProperties>, children?: Node[]); protected _updateProperty(key: string, value: any, oldValue: any): void; protected _updateStyleProperty(key: string, value: any, oldValue: any): void; protected _load(): Promise<void>; protected _process(delta: number): void; }