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

Releases: fengyuanchen/cropper

v2.1.0

02 Dec 07:49
Compare
Choose a tag to compare

v2.0.2

30 Nov 03:06
Compare
Choose a tag to compare
  • Fixed #476: Floor the numerical parameters for CanvasRenderingContext2D.drawImage

v2.0.1

18 Nov 03:20
Compare
Choose a tag to compare
  • Improved new crop box creating

v2.0.0

11 Nov 11:44
Compare
Choose a tag to compare

Common

  • Supports four modes
  • Supports three drag modes
  • Improved the experience of cropping
  • Makes the crop box's borders and handlers visible when overflow
  • Fixed an issue of canvas limitation
  • Fixed an issue of cropping

Options

  • Added viewMode
  • Added dragMode
  • Renamed touchDragZoom to zoomOnTouch
  • Renamed mouseWheelZoom to zoomOnWheel
  • Renamed doubleClickToggle to toggleDragModeOnDblclick
  • Renamed checkImageOrigin to checkCrossOrigin
  • Removed strict (supported by viewMode: 1)
  • Removed dragCrop (supported by dragMode: 'crop')

Methods

  • Added moveTo
  • Added zoomTo
  • Added rotateTo
  • Added scaleX
  • Added scaleY
  • Improved getCanvasData (added naturalWidth and naturalHeight)

Events

  • Improved zoom (changed event.ratio and added event.oldRatio)

v1.0.0

10 Oct 07:20
Compare
Choose a tag to compare
  • Improved canvas limitation
  • Improved preview
  • Improved test
  • Fixed an error in the clear method (missed parameters)
  • Fixed the issue of crop box limitation (#430)

v1.0.0-rc.1

05 Sep 12:35
Compare
Choose a tag to compare
  • Moved from Less to Sass
  • Fixed the issue of destroy method (#434)
  • Fixed the issue on IE8 (#319)
  • Added an example for customizing preview
  • Added download button to documentation
  • Added FAQ

v0.11.1

22 Aug 05:10
Compare
Choose a tag to compare
  • Optimize "built" and "crop" events
  • Improve the starting speed (#422)
  • Improve the building process (#428)
  • Fix event issue on IE8 (#319)

v0.11.0

10 Aug 16:12
Compare
Choose a tag to compare
  • Improve setCropBoxData method (#385)
  • Fix event issue on IE10 (#394)
  • Optimize code (use var for per variable)

Options

  • Add "scalable" option
  • Add "wheelZoomRatio" option
  • Convert "crop" option to "crop" event

Methods

  • Add "scale" method
  • Improve "move" method (the offsetY parameter is optional now)

Events

  • Rename "dragstart" to "cropstart"
  • Rename "dragmove" to "cropmove"
  • Rename "dragend" to "cropend"
  • Merge "zoomin" and "zoomout" to "zoom"
  • Merge "crop" option and "change" event to "crop" event

v0.10.1

05 Jul 13:09
Compare
Choose a tag to compare
  • Add Pointer Events support (#328)
  • Add RTL support (#342)
  • Add one new option: "center" (#367)
  • Allow cropper to grow vertically (#350)

v0.10.0

08 Jun 15:18
Compare
Choose a tag to compare
  • Add three new options: "change", "cropBoxMovable", "doubleClickToggle"
  • Change "movable" option (only for image)
  • Rename "resizable" to "cropBoxResizable"
  • Add one new event: "change.cropper"
  • Locking aspect ratio in "free mode" by holding shift key (#259)
  • Sync drag mode to crop box when it is not movable (#300)