Skip to content

v2.0.0-alpha

Pre-release
Pre-release
Compare
Choose a tag to compare
@fengyuanchen fengyuanchen released this 10 Mar 09:54

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.