This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
Releases: fengyuanchen/cropper
Releases · fengyuanchen/cropper
v3.1.0
- Added 4 new options to
getCroppedCanvas
method:minWidth
,minHeight
,maxWidth
andmaxHeight
. - Enhanced image scaling: the
scaleX
andscaleY
values should only be1
or-1
before, but now they can be any numbers. - Improved crop box resizing behaviour in the northeast, northwest, southeast and southwest directions.
v3.0.0
- Improve crop box resizing behaviour.
v3.0.0-rc.3
- Added two new options (
imageSmoothingEnabled
andimageSmoothingQuality
) togetCroppedCanvas
method.
v3.0.0-rc.2
v3.0.0-rc.1
- Use
window.jQuery
instead ofwindow.$
for browser side usage (#876). - Change the
main
field value fromdist/cropper.js
(UMD) todist/cropper.common.js
(CommonJS). - Added
module
andbrowser
fields topackage.json
.
v3.0.0-rc
- Clear cached pointers correctly to avoid touch zoom problem.
- Improve the
responsive
option (only available when the container width/height great than the minContainerWidth/Height) - Improve the
toggleDragModeOnDblclick
option (only available when thedragMode
option is set tocrop
ormove
)
v3.0.0-beta
- Fixed the bug of rotate square image lead image shrink.
- Improved RegExps for DataURL processing.
v3.0.0-alpha.1
- Use CSS3 2D Transforms instead of
left
andtop
for better performance. - Set
withCredentials
attribute when read the image data by XMLHttpRequest.
v3.0.0-alpha
-
Removed
build
event. -
Renamed
built
event toready
. -
Removed event namespace.
// Before $('img').on('zoom.cropper', handler) // After $('img').on('zoom', handler)
-
Ported code to ECMAScript 6.
-
Dropped IE8 support.
-
Improved event handler for Pointer Events (#824).
-
Improved setCropBoxData method.
-
Fixed a bug of auto crop when replace the image.
v2.3.4
- Fixed a bug of cropping in view mode 1 and 2.
- Fixed a bug of calling
ready
event twice when callreplace
method. - Fixed dependencies problem in the package.json file.