html2canvas

  • Version 1.4.1
  • Published
  • 3.38 MB
  • 2 dependencies
  • MIT license

Install

npm i html2canvas
yarn add html2canvas
pnpm add html2canvas

Overview

Screenshots with JavaScript

Index

Functions

Type Aliases

Functions

function html2canvas

html2canvas: (
element: HTMLElement,
options?: Partial<Options>
) => Promise<HTMLCanvasElement>;

    Type Aliases

    type Options

    type Options = CloneOptions &
    WindowOptions &
    RenderOptions &
    ContextOptions & {
    backgroundColor: string | null;
    foreignObjectRendering: boolean;
    removeContainer?: boolean;
    };

      Package Files (1)

      Dependencies (2)

      Dev Dependencies (72)

      Peer Dependencies (0)

      No peer dependencies.

      Badge

      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/html2canvas.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/html2canvas)
      • HTML
        <a href="https://www.jsdocs.io/package/html2canvas"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>