UNPKG

modern-canvas

Version:

A JavaScript WebGL rendering engine. only the ESM.

26 lines (25 loc) 1.6 kB
export declare const SUPPORTS_WEBGL2: boolean; export declare const SUPPORTS_IMAGE_BITMAP: boolean; export declare const SUPPORTS_RESIZE_OBSERVER: boolean; export declare const SUPPORTS_POINTER_EVENTS: boolean; export declare const SUPPORTS_WHEEL_EVENTS: boolean; export declare const SUPPORTS_MOUSE_EVENTS: boolean; export declare const SUPPORTS_TOUCH_EVENTS: boolean; export declare const SUPPORTS_CLICK_EVENTS: boolean; export declare const SUPPORTS_CREATE_IMAGE_BITMAP: boolean; export declare const SUPPORTS_AUDIO_CONTEXT: boolean; export declare const SUPPORTS_WEBKIT_AUDIO_CONTEXT: boolean; export declare const SUPPORTS_OFFLINE_AUDIO_CONTEXT: boolean; export declare const SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT: boolean; export declare const SUPPORTS_WEB_AUDIO: boolean; export declare const IN_BROWSER: boolean; export declare const IN_MAC_OS: boolean; export declare const DEVICE_PIXEL_RATIO: number; export declare const isElementNode: (node: unknown) => node is Element; export declare const isVideoElement: (node: unknown) => node is HTMLVideoElement; export declare const isImageElement: (node: unknown) => node is HTMLImageElement; export declare function isCanvasElement(node: unknown): node is HTMLCanvasElement; export declare function isWebgl2(gl: unknown): gl is WebGL2RenderingContext; export declare function createHTMLCanvas(): HTMLCanvasElement | undefined; export declare function determineCrossOrigin(url: string, loc?: Location): string; export declare function crossOrigin(element: HTMLImageElement | HTMLVideoElement, url: string, crossorigin: boolean | string | null): void;