lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
25 lines (24 loc) • 823 B
TypeScript
export declare enum BackingMediaSourceType {
/** A HTMLImageElement. */
HTMLImageElement = 0,
/** A HTMLVideoElement. */
HTMLVideoElement = 1,
/** A SVGImageElement. */
SVGImageElement = 2,
/** A VideoFrame. */
VideoFrame = 3,
/** A lazy-widgets AsyncMedia */
AsyncMedia = 4,
/** An ImageBitmap */
ImageBitmap = 5,
/**
* Anything else that can be painted immediately and has size information
* (HTMLCanvasElement, OffscreenCanvas). Note that this will be the assumed
* type for invalid media and null.
*
* Note that this source type is assumed to never change. If you are using
* a canvas that could change, then you need to make an AsyncMedia-backed by
* that canvas, so that you can dispatch dirty events.
*/
Immediate = 6
}