element2image
v0.0.9
Published
Util tool that expands on html2canvas.<br/> By default, this will capture an entire content of the html element regardless of the visible area.<br/>
Downloads
6
Readme
Element2image
Util tool that expands on html2canvas. By default, this will capture an entire content of the html element regardless of the visible area.
Usage
npm install -S html2canvas npm install -S element2image
Available methods
or
let canvas = await html2image.getImageAsCanvas(htmlelement); document.body.appendChild(canvas);
Options
- will download a screencapture of htmlelement as myCapturedImage.png