UNPKG

699 BTypeScriptView Raw
1import { DOMParser } from './types';
2interface IConfig {
3 /**
4 * XML/HTML parser from string into DOM Document.
5 */
6 DOMParser?: DOMParser;
7}
8/**
9 * Options preset for `OffscreenCanvas`.
10 * @param config - Preset requirements.
11 * @param config.DOMParser - XML/HTML parser from string into DOM Document.
12 * @returns Preset object.
13 */
14export declare function offscreen({ DOMParser: DOMParserFallback }?: IConfig): {
15 window: any;
16 ignoreAnimation: boolean;
17 ignoreMouse: boolean;
18 DOMParser: DOMParser;
19 createCanvas(width: number, height: number): OffscreenCanvas;
20 createImage(url: string): Promise<ImageBitmap>;
21};
22export {};
23//# sourceMappingURL=offscreen.d.ts.map
\No newline at end of file