cropper v0.9.0 Release Notes

Release Date: 2015-03-15 // about 9 years ago
    • Wraps image with a virtual canvas (for zooming and rotating).
    • Limits image position and size in strict mode.
    • ๐Ÿ‘Œ Supports multiple global croppers by default.
    • Outputs cropped canvas for display or get Data URL or get Blob
    • Identifies drag events with "event.dragType" property
    • โž• Added zoom events for controlling the canvas (image) size.
    • ๐Ÿ‘Œ Improved responsiveness for window resizing.

    Options

    • ๐Ÿ”„ Change "minContainerWidth" (default value: 300 -> 200)
    • ๐Ÿ”„ Change "minContainerHeight" (default value: 150 -> 100)
    • โž• Add "strict"
    • โž• Add "zoomin"
    • โž• Add "zoomout"
    • โœ‚ remove "global"

    Methods

    • ๐Ÿ”„ Change "replace" (not to change the original image any more)
    • ๐Ÿ”„ Change "getImageData" (move rotation-related properties to canvas data)
    • โž• Add "getContainerData"
    • โž• Add "getCanvasData"
    • โž• Add "setCanvasData"
    • โž• Add "getCroppedCanvas"
    • โœ‚ Remove "setImageData" (replace with "getCanvasData")
    • โœ‚ Remove "getDataURL" (replace with "getCroppedCanvas")

    Events

    • โž• Add "event.dragType" property to drag events
    • โž• Add "zoomin.cropper"
    • โž• Add "zoomout.cropper"