Skip to content
  • Clone the image's crossOrigin attribute always even though the checkCrossOrigin is set to false (#535).
  • Improve browser environment detecting (#554).
Assets 2

@fengyuanchen fengyuanchen released this Jul 20, 2019 · 3 commits to master since this release

  • Avoid removing the events of the original image.
  • Avoid requesting any Data URLs by XMLHttpRequest for better performance (#526).
  • Add an alt attribute to all internal images for better accessibility (#548).
  • Transform enums to types from the definition files for TypeScript (#550).
Assets 2

@fengyuanchen fengyuanchen released this Jul 10, 2019 · 9 commits to master since this release

  • Compute the size of the image for all browsers that use WebKit as the layout engine in iOS devices, such as Safari and in-app browsers (#544).
Assets 2

@fengyuanchen fengyuanchen released this Jun 30, 2019 · 16 commits to master since this release

  • Alway add a timestamp to the URL of a cross-origin image (#519).
Assets 2
Pre-release

@fengyuanchen fengyuanchen released this Mar 10, 2019 · 23 commits to master since this 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.
Assets 2

@fengyuanchen fengyuanchen released this Mar 10, 2019 · 22 commits to master since this release

  • Revert the minimum container width from 300 to 200.
  • Revert the minimum container height from 150 to 100.
Assets 2

@fengyuanchen fengyuanchen released this Mar 10, 2019 · 25 commits to master since this release

  • 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).
Assets 2

@fengyuanchen fengyuanchen released this Oct 24, 2018 · 51 commits to master since this release

  • Ignore range error when the image does not have correct Exif information
Assets 2

@fengyuanchen fengyuanchen released this Oct 15, 2018 · 55 commits to master since this release

  • 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).
Assets 2

@fengyuanchen fengyuanchen released this Jul 15, 2018 · 78 commits to master since this release

  • Not to restrict the canvas position when it is not cropped.
  • Fix wrong crop box size when view mode 1 and 2 (#381).
Assets 2
You can’t perform that action at this time.