lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
26 lines • 1.43 kB
JavaScript
export var BackingMediaSourceType;
(function (BackingMediaSourceType) {
/** A HTMLImageElement. */
BackingMediaSourceType[BackingMediaSourceType["HTMLImageElement"] = 0] = "HTMLImageElement";
/** A HTMLVideoElement. */
BackingMediaSourceType[BackingMediaSourceType["HTMLVideoElement"] = 1] = "HTMLVideoElement";
/** A SVGImageElement. */
BackingMediaSourceType[BackingMediaSourceType["SVGImageElement"] = 2] = "SVGImageElement";
/** A VideoFrame. */
BackingMediaSourceType[BackingMediaSourceType["VideoFrame"] = 3] = "VideoFrame";
/** A lazy-widgets AsyncMedia */
BackingMediaSourceType[BackingMediaSourceType["AsyncMedia"] = 4] = "AsyncMedia";
/** An ImageBitmap */
BackingMediaSourceType[BackingMediaSourceType["ImageBitmap"] = 5] = "ImageBitmap";
/**
* 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.
*/
BackingMediaSourceType[BackingMediaSourceType["Immediate"] = 6] = "Immediate";
})(BackingMediaSourceType || (BackingMediaSourceType = {}));
//# sourceMappingURL=BackingMediaSourceType.js.map