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 to zoomOnTouch
    • ๐Ÿ“‡ Renamed mouseWheelZoom to zoomOnWheel
    • ๐Ÿ“‡ Renamed doubleClickToggle to toggleDragModeOnDblclick
    • ๐Ÿ“‡ Renamed checkImageOrigin to checkCrossOrigin
    • โœ‚ Removed strict (supported by viewMode: 1)
    • โœ‚ Removed dragCrop (supported by dragMode: 'crop')

    Methods

    • โž• Added moveTo
    • โž• Added zoomTo
    • โž• Added rotateTo
    • โž• Added scaleX
    • โž• Added scaleY
    • ๐Ÿ‘Œ Improved getCanvasData (added naturalWidth and naturalHeight)

    Events

    • ๐Ÿ‘Œ Improved zoom (changed event.ratio and added event.oldRatio)