Releases: fengyuanchen/cropperjs
Releases · fengyuanchen/cropperjs
v2.0.0-alpha
Breaking changes
- Integrate the canvas and the crop box for better user experience.
- Change the properties of the
zoom
event:event.detail.ratio
=>event.detail.scale
event.detail.oldRatio
=>event.detail.oldScale
Features
- Support to create crop box by dragging from left to right, right to left, top to bottom and bottom to top.
- Add 4 new options:
maxCanvasWidth
,maxCanvasHeight
,maxCropBoxWidth
andmaxCropBoxHeight
. - Add 2 new properties to the
getCropBoxData
method:naturalWidth
andnaturalHeight
.
v1.5.1
- Revert the minimum container width from
300
to200
. - Revert the minimum container height from
150
to100
.
v1.5.0
- Add
passive: false
andcapture: true
to wheel event for better performance. - Improve touch event binding.
- Ignore the pointer events are not triggered by the primary button.
- Fix typed array spreading error in IE or Safari 9.
- Fix the RegExp for the Safari browser detecting to ignore Chrome (#478).
v1.4.3
- Ignore range error when the image does not have correct Exif information
v1.4.2
v1.4.1
v1.4.0
- Added 1 new option:
initialAspectRatio
. - Improve the smoothness of crop box resizing.