1.5.8 • Published 11 months ago

html2canvas-pro v1.5.8

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Why html2canvas-pro?

html2canvas-pro is a fork of niklasvh/html2canvas that includes various fixes and new features. It offers several advantages over the original html2canvas, such as:

  • support color function color() (including relative colors)
  • support color function lab()
  • support color function lch()
  • support color function oklab()
  • support color function oklch()
  • Support object-fit of <img/>
  • Fixed some issues

If you found this helpful, don't forget to leave a star 🌟.

Installation

npm install html2canvas-pro
pnpm / yarn add html2canvas-pro

Usage

import html2canvas from 'html2canvas-pro';

To render an element with html2canvas-pro with some (optional) options, simply call html2canvas(element, options);

html2canvas(document.body).then(function(canvas) {
    document.body.appendChild(canvas);
});

Contribution

If you want to add some features, feel free to submit PR.

License

MIT.

1.5.8

11 months ago

1.5.7

11 months ago

1.5.6

11 months ago

1.5.5

11 months ago

1.5.4

11 months ago

1.5.3

12 months ago

1.5.2

12 months ago

1.5.1

12 months ago

1.5.0

1 year ago

1.4.3

1 year ago