UNPKG

523 BTypeScriptView Raw
1import { CloneOptions, WindowOptions } from './dom/document-cloner';
2import { RenderOptions } from './render/canvas/canvas-renderer';
3import { ContextOptions } from './core/context';
4export declare type Options = CloneOptions & WindowOptions & RenderOptions & ContextOptions & {
5 backgroundColor: string | null;
6 foreignObjectRendering: boolean;
7 removeContainer?: boolean;
8};
9declare const html2canvas: (element: HTMLElement, options?: Partial<Options>) => Promise<HTMLCanvasElement>;
10export default html2canvas;