@zhuxiaozy/clipimg
TypeScript icon, indicating that this package has built-in type declarations

0.0.22 • Public • Published

new ClipImg

import ClipImg from '@zhuxiaozy/clipimg'

const clipData = new ClipImg({
    el:Element,
    reviewCall:(reviewImgUrl) => {
        console.log(reviewImgUrl)
     }
})



cliData.setImg(imgFile:File)

cliData.setSize(width:number, height:number)

cliData.getClipData(imgSize:number).then(data => {
    console.log(data.blob)
    console.log(data.url)
})

Package Sidebar

Install

npm i @zhuxiaozy/clipimg

Weekly Downloads

9

Version

0.0.22

License

MIT

Unpacked Size

74.4 kB

Total Files

25

Last publish

Collaborators

  • zhuxiaozy