0.0.2 • Published 1 year ago

cropper-multiple v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Cropper Multple

usage

npm i cropper-multiple -S
<div class="cropper-container"></div>
<button id="btnGet" type="button">获取裁剪图片</button>
import CropperMultiple from 'cropper-multiple'

const cropper = new CropperMultiple({
  containerClass: '.cropper-container',
  imgUrl: './test.png'
})
console.log(cropper)

const btnGet = document.getElementById('btnGet')!
btnGet.addEventListener('click', async () => {
  const imgs = await cropper.getCropperImgs()
  console.log(imgs)
})
.cropper-container{
  width: 500px;
  height: 300px;
}
0.0.2

1 year ago

0.0.1

1 year ago