npm cropperjs 2.0.0-alpha
v2.0.0-alpha

latest releases: 2.0.0-rc.2, 2.0.0-rc.1, 2.0.0-rc.0...
5 years ago

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.

Don't miss a new cropperjs release

NewReleases is sending notifications on new releases.