source: imaps-frontend/node_modules/canvg/lib/presets/offscreen.d.ts@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 722 bytes
RevLine 
[79a0317]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: null;
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
Note: See TracBrowser for help on using the repository browser.