UNPKG

lazy-widgets

Version:

Typescript retained mode GUI for the HTML canvas API

19 lines (18 loc) 581 B
export declare const enum BackingMediaSourceType { /** A HTMLImageElement. */ HTMLImageElement = 0, /** A HTMLVideoElement. */ HTMLVideoElement = 1, /** A SVGImageElement. */ SVGImageElement = 2, /** A VideoFrame. */ VideoFrame = 3, /** A lazy-widgets AsyncImageBitmap */ AsyncImageBitmap = 4, /** * Anything else that can be painted immediately and has size information * (HTMLCanvasElement, ImageBitmap, OffscreenCanvas). Note that this will be * the assumed type for invalid media and null. */ Immediate = 5 }