Interface Html2CanvasStatic

Index

Call signatures

Call signatures

(element: HTMLElement)

Renders an HTML element to a canvas so that a screenshot can be generated.

The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page.

Parameters

  • element: HTMLElement

    The HTML element which will be rendered to the canvas. Use the root element to render the entire window.

(element: HTMLElement, options: Html2CanvasOptions)

Renders an HTML element to a canvas so that a screenshot can be generated.

The screenshot is based on the DOM and as such may not be 100% accurate to the real representation as it does not make an actual screenshot, but builds the screenshot based on the information available on the page.

Parameters

  • element: HTMLElement

    The HTML element which will be rendered to the canvas. Use the root element to render the entire window.

  • options: Html2CanvasOptions

    The options object that controls how the element will be rendered.