interface domtoimage { toBlob(node: Node,
options?: Options): Promise<Blob>; toJpeg(node: Node,
options?: Options): Promise<string>; toPixelData(node: Node,
options?: Options): Promise<Uint8ClampedArray>; toPng(node: Node,
options?: Options): Promise<string>; toSvg(node: Node,
options?: Options): Promise<string>; } Methods
toBlob
- toBlob(node, options?): Promise<Blob>
Parameters
- node: Node
Optional
options: Options
Returns Promise<Blob>
toJpeg
- toJpeg(node, options?): Promise<string>
Parameters
- node: Node
Optional
options: Options
Returns Promise<string>
toPixelData
- toPixelData(node, options?): Promise<Uint8ClampedArray>
Parameters
- node: Node
Optional
options: Options
Returns Promise<Uint8ClampedArray>
toPng
- toPng(node, options?): Promise<string>
Parameters
- node: Node
Optional
options: Options
Returns Promise<string>
toSvg
- toSvg(node, options?): Promise<string>
Parameters
- node: Node
Optional
options: Options
Returns Promise<string>