This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
Releases: fengyuanchen/cropper
Releases · fengyuanchen/cropper
v2.1.0
- Added new
restore
option. Usage examples:
v2.0.2
v2.0.1
- Improved new crop box creating
v2.0.0
Common
- Supports four modes
- Supports three drag modes
- Improved the experience of cropping
- Makes the crop box's borders and handlers visible when overflow
- Fixed an issue of canvas limitation
- Fixed an issue of cropping
Options
- Added
viewMode
- Added
dragMode
- Renamed
touchDragZoom
tozoomOnTouch
- Renamed
mouseWheelZoom
tozoomOnWheel
- Renamed
doubleClickToggle
totoggleDragModeOnDblclick
- Renamed
checkImageOrigin
tocheckCrossOrigin
- Removed
strict
(supported byviewMode: 1
) - Removed
dragCrop
(supported bydragMode: 'crop'
)
Methods
- Added
moveTo
- Added
zoomTo
- Added
rotateTo
- Added
scaleX
- Added
scaleY
- Improved
getCanvasData
(addednaturalWidth
andnaturalHeight
)
Events
- Improved
zoom
(changedevent.ratio
and addedevent.oldRatio
)
v1.0.0
v1.0.0-rc.1
v0.11.1
v0.11.0
- Improve
setCropBoxData
method (#385) - Fix event issue on IE10 (#394)
- Optimize code (use
var
for per variable)
Options
- Add "scalable" option
- Add "wheelZoomRatio" option
- Convert "crop" option to "crop" event
Methods
- Add "scale" method
- Improve "move" method (the
offsetY
parameter is optional now)
Events
- Rename "dragstart" to "cropstart"
- Rename "dragmove" to "cropmove"
- Rename "dragend" to "cropend"
- Merge "zoomin" and "zoomout" to "zoom"
- Merge "crop" option and "change" event to "crop" event
v0.10.1
v0.10.0
- Add three new options: "change", "cropBoxMovable", "doubleClickToggle"
- Change "movable" option (only for image)
- Rename "resizable" to "cropBoxResizable"
- Add one new event: "change.cropper"
- Locking aspect ratio in "free mode" by holding shift key (#259)
- Sync drag mode to crop box when it is not movable (#300)