cropper v2.0.0 Release Notes
Release Date: 2015-11-11 // over 8 years ago-
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
)