html2canvas-pro
Version:
Screenshots with JavaScript. Next generation!
16 lines (15 loc) • 653 B
TypeScript
import { CloneOptions, WindowOptions } from './dom/document-cloner';
import { RenderOptions } from './render/canvas/canvas-renderer';
import { ContextOptions } from './core/context';
export type Options = CloneOptions & WindowOptions & RenderOptions & ContextOptions & {
backgroundColor: string | null;
foreignObjectRendering: boolean;
removeContainer?: boolean;
};
declare const setCspNonce: (nonce: string) => void;
declare const html2canvas: {
(element: HTMLElement, options?: Partial<Options>): Promise<HTMLCanvasElement>;
setCspNonce: (nonce: string) => void;
};
export default html2canvas;
export { html2canvas, setCspNonce };