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

  • Parameters

    • node: Node
    • Optionaloptions: Options

    Returns Promise<Blob>

  • Parameters

    • node: Node
    • Optionaloptions: Options

    Returns Promise<string>

  • Parameters

    • node: Node
    • Optionaloptions: Options

    Returns Promise<Uint8ClampedArray>

  • Parameters

    • node: Node
    • Optionaloptions: Options

    Returns Promise<string>

  • Parameters

    • node: Node
    • Optionaloptions: Options

    Returns Promise<string>