lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
10 lines (9 loc) • 451 B
TypeScript
import { type BackingMediaEventType } from './BackingMediaEventType.js';
import { Notifier } from './Notifier.js';
export type FastCanvasImageSource = ImageBitmap | VideoFrame;
export declare abstract class AsyncMedia extends Notifier<BackingMediaEventType> {
abstract readonly width: number;
abstract readonly height: number;
abstract readonly currentFrame: FastCanvasImageSource | null;
abstract readonly presentationHash: number;
}