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"