1.0.7 • Published 5 years ago
@wakuwaku/cropper-js v1.0.7
1PACVietnam Cropper js
Purpose
- Custom croppie. and fix rotate image when loaded.
- Using self-coding to mapping with out project.
- Seperate code making project minimal.
Dependencies
Usage
Structure html must follow
Install @wakuwaku/cropper-js
npm install @wakuwaku/cropper-js
- Usage
import 'Cropper' from '@wakuwaku/cropper-js'
const formAvatar = document.querySelector('.js-input-avatar')
if (formAvatar) new Cropper()._initCroppie()
- Default options
For further information about these options. Visit here.