0.0.2 • Published 5 years ago

m2-ng4-cropper v0.0.2

Weekly downloads
8
License
-
Repository
-
Last release
5 years ago

#m2-image-cropper 基于CropperJs的angular lib封装,这是angular4-5的版本

##Installation Using npm:

$ npm i m2-ng4-cropper --save 

##Usage

<m2-image-cropper [mode]="'fix'" [aspectRatio]="1/1" (imgCropperChange)="imgCroppered($event)">
</m2-image-cropper>

mode: fix或者free两种模式

aspectRatio: 如果是fix模式,必须给出横纵比

imgCropperChange: 裁剪完成后会向外抛出image的DataUrl ##License

MIT

##Dev 虚竹

0.0.2

5 years ago

0.0.1

5 years ago