UNPKG

html-to-image

Version:

Generates an image from a DOM node using HTML5 canvas and SVG.

6 lines (5 loc) 454 B
import { Options } from './types'; export declare function parseURLs(cssText: string): string[]; export declare function embed(cssText: string, resourceURL: string, baseURL: string | null, options: Options, getContentFromUrl?: (url: string) => Promise<string>): Promise<string>; export declare function shouldEmbed(url: string): boolean; export declare function embedResources(cssText: string, baseUrl: string | null, options: Options): Promise<string>;