load orgchart
This commit is contained in:
parent
85337f2112
commit
f78be174c9
4 changed files with 193 additions and 18 deletions
36
src/types/dom-to-image-more.d.ts
vendored
Normal file
36
src/types/dom-to-image-more.d.ts
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
declare module "dom-to-image-more" {
|
||||
export interface Options {
|
||||
filter?: (node: Node) => boolean;
|
||||
bgcolor?: string;
|
||||
width?: number;
|
||||
height?: number;
|
||||
style?: any;
|
||||
quality?: number;
|
||||
imagePlaceholder?: string;
|
||||
cacheBust?: boolean;
|
||||
}
|
||||
|
||||
export function toPng(node: HTMLElement, options?: Options): Promise<string>;
|
||||
export function toJpeg(node: HTMLElement, options?: Options): Promise<string>;
|
||||
export function toSvg(node: HTMLElement, options?: Options): Promise<string>;
|
||||
export function toPixelData(
|
||||
node: HTMLElement,
|
||||
options?: Options
|
||||
): Promise<Uint8ClampedArray>;
|
||||
export function toCanvas(
|
||||
node: HTMLElement,
|
||||
options?: Options
|
||||
): Promise<HTMLCanvasElement>;
|
||||
export function toBlob(node: HTMLElement, options?: Options): Promise<Blob>;
|
||||
|
||||
const domtoimage: {
|
||||
toPng: typeof toPng;
|
||||
toJpeg: typeof toJpeg;
|
||||
toSvg: typeof toSvg;
|
||||
toPixelData: typeof toPixelData;
|
||||
toCanvas: typeof toCanvas;
|
||||
toBlob: typeof toBlob;
|
||||
};
|
||||
|
||||
export default domtoimage;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue