open-index/open-npm huggingface dataset:
npm package: @stonemaker/js-printer
Description: By passing in the DOM element, you can print the content of the response DOM element after the DOM is loaded.
Author: stonemaker
Latest version: 1.0.0

# Instruction
Based on HTML 2 canvas, PNG pictures can be generated by printing the specified DOM area by passing in the DOM element. Support for rendering img elements in DOM after they are fully loaded.

基于html2canvas，通过传入dom元素，可实现对指定的dom区域打印生成png图片。支持对dom中的img元素完全载入后进行渲染。

## Install
```
npm i @stonemaker/js-printer -S
```

## Usage

```js
import jsPrinter from '@stonemaker/js-printer'

// ES6
let el = document.getElementById('el')
let picUrl = await jsPrinter.print(el)
```