Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Releases: fengyuanchen/cropper

v0.9.3

10 May 07:54
Compare
Choose a tag to compare
  • Add one new option: "data"
  • Add two new methods: "setData" (#290, #296), "crop" (#275)
  • Fix incorrect minWidth/Height size of canvas (#295)
  • Fix the strict mode bug (#280)
  • Fix the crop box resizing bug (#277)

v0.9.2

18 Apr 04:54
Compare
Choose a tag to compare
  • Improve strict mode to show full image
  • Add two new options: "minCanvasWidth" and "minCanvasHeight"
  • Reverse mouse wheeling zoom
  • Fix incorrect cursor in disabled state

v0.9.1

21 Mar 05:04
Compare
Choose a tag to compare
  • Fix the touch zoom issue (#206)
  • Fix the reset issue (#246)

v0.9.0

15 Mar 09:03
Compare
Choose a tag to compare
  • 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"

v0.8.0

19 Feb 12:23
Compare
Choose a tag to compare
  • Refactored source code.
  • Compiles CSS with Less CSS preprocessors.
  • Supports fixed container.
  • Supports rotation with CSS3 Transform3d.

Options:

  • Change the default value of "aspectRatio"
  • Rename "done" to "crop"
  • Rename "dashed" to "guides"
  • Rename "multiple" to "global"
  • Add "background"
  • Add "highlight"
  • Add "responsive"
  • Add "mouseWheelZoom"
  • Add "touchDragZoom"
  • Add "minCropBoxWidth"
  • Add "minCropBoxHeight"
  • Add "minContainerWidth"
  • Add "minContainerHeight"
  • Remove "data"
  • Remove "minWidth"
  • Remove "minHeight"
  • Remove "maxWidth"
  • Remove "maxHeight"

Methods:

  • Change "reset"
  • Add "setImageData"
  • Add "getCropBoxData"
  • Add "setCropBoxData"
  • Add "move"
  • Remove "setData"

v0.7.9

19 Feb 05:10
Compare
Choose a tag to compare
  • Improve preview.
  • Improve rotation.
  • Improve responsiveness (#157).
  • Enable to move the image when the size of the crop box is the same as the container's (#186).

v0.7.8

09 Feb 02:17
Compare
Choose a tag to compare
  • Add two new options: "minContainerWidth" and "minContainerHeight".
  • Improve three methods: "setAspectRatio", "destroy" and "disable".
  • Improve mouse wheel zoom.
  • Improve drag resizing.

v0.7.7

10 Jan 09:28
Compare
Choose a tag to compare
  • Fix a bug of "dragCrop" option.
  • Add a timestamp to the url to bust cache when it's a cross-origin image (#148).
  • Fix the issue of "autoCropArea" option (#144).

v0.7.6

20 Dec 12:08
Compare
Choose a tag to compare
  • Fix events binding bugs.
  • Change the "done" option and the "getData" method (returns floating-point number) (#130).
  • Fix the rotation issue after replace the image (#139).

v0.7.5

06 Dec 07:42
Compare
Choose a tag to compare
  • Reset the ratio when replace the image.
  • Add a new option: "checkImageOrigin" (#119).
  • Prevent to call the "done" option when it's disabled (#107).
  • Improve the preview (#95).