Skip to content

Releases: fengyuanchen/cropperjs

v2.0.0-alpha

10 Mar 09:54
Compare
Choose a tag to compare
v2.0.0-alpha Pre-release
Pre-release

Breaking changes

  • Integrate the canvas and the crop box for better user experience.
  • Change the properties of the zoom event:
    • event.detail.ratio => event.detail.scale
    • event.detail.oldRatio => event.detail.oldScale

Features

  • Support to create crop box by dragging from left to right, right to left, top to bottom and bottom to top.
  • Add 4 new options: maxCanvasWidth, maxCanvasHeight, maxCropBoxWidth and maxCropBoxHeight.
  • Add 2 new properties to the getCropBoxData method: naturalWidth and naturalHeight.

v1.5.1

10 Mar 09:59
Compare
Choose a tag to compare
  • Revert the minimum container width from 300 to 200.
  • Revert the minimum container height from 150 to 100.

v1.5.0

10 Mar 09:13
Compare
Choose a tag to compare
  • Add passive: false and capture: true to wheel event for better performance.
  • Improve touch event binding.
  • Ignore the pointer events are not triggered by the primary button.
  • Fix typed array spreading error in IE or Safari 9.
  • Fix the RegExp for the Safari browser detecting to ignore Chrome (#478).

v1.4.3

24 Oct 13:09
Compare
Choose a tag to compare
  • Ignore range error when the image does not have correct Exif information

v1.4.2

15 Oct 13:29
Compare
Choose a tag to compare
  • Read orientation only when it is a JPEG image.
  • Improve cropper instance storage to avoid side effect (#394).
  • Fix parameter error of Object.assign in iOS devices (#432).
  • Improve typed array loop for better performance (#435).

v1.4.1

15 Jul 10:25
Compare
Choose a tag to compare
  • Not to restrict the canvas position when it is not cropped.
  • Fix wrong crop box size when view mode 1 and 2 (#381).

v1.4.0

01 Jun 15:35
Compare
Choose a tag to compare
  • Added 1 new option: initialAspectRatio.
  • Improve the smoothness of crop box resizing.

v1.3.6

20 May 08:05
Compare
Choose a tag to compare
  • Check orientation only when both the rotatable and scalable options are set to true.
  • In case rounding off leads to extra 1px in right or bottom border we should round the top-left corner and the dimension (#343).

v1.3.5

15 Apr 07:07
Compare
Choose a tag to compare
  • Ensure the cloned image loads completely before trigger the ready event to avoid side effect (#303).
  • Add namespace to data attribute names (from data-* to data-cropper-*) to avoid side effect (#319).

v1.3.4

31 Mar 06:51
Compare
Choose a tag to compare
  • Compute destination sizes with image's aspect ratio when draw image (#326)