17 lines
603 B
TypeScript
17 lines
603 B
TypeScript
declare module 'dom-to-image-more' {
|
|
export interface Options {
|
|
quality?: number
|
|
width?: number
|
|
height?: number
|
|
style?: Record<string, string>
|
|
bgcolor?: string
|
|
filter?: (node: Node) => boolean
|
|
}
|
|
|
|
export function toPng(node: Node, options?: Options): Promise<string>
|
|
export function toJpeg(node: Node, options?: Options): Promise<string>
|
|
export function toBlob(node: Node, options?: Options): Promise<Blob>
|
|
export function toPixelData(node: Node, options?: Options): Promise<Uint8ClampedArray>
|
|
export function toSvg(node: Node, options?: Options): Promise<string>
|
|
}
|