@wfkit/elshot
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@wfkit/elshot

Installation

pnpm i @wfkit/elshot

Usage

import { createElShot, ElShot } from '@wfkit/elshot'

// defautl
const shot = createElShot({
  name: 'html-to-image',
  url: `https://www.unpkg.com/html2canvas`,
})

// or html2canvas
const shot = createElShot({
  name: 'html2canvas',
  url: `https://www.unpkg.com/html-to-image`,
})

// or custom
const shot = createElShot({
  name: '<provider name>',
  url: `<provider script url>`,
  toCanvas: (el, options) => {
    // ...
  },
})

// or
shot.toCanvas(el, options)

License

MIT © YDWF.COM

Readme

Keywords

none

Package Sidebar

Install

npm i @wfkit/elshot

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

16.9 kB

Total Files

9

Last publish

Collaborators

  • ydwf52