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

Commit

Permalink
build: release 4.0.0-alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Mar 1, 2018
1 parent 4450b93 commit e5c8ccc
Show file tree
Hide file tree
Showing 52 changed files with 14,896 additions and 14,099 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# Changelog

## 4.0.0-alpha (Mar 1, 2018)

- The core code of Cropper is replaced with [Cropper.js](https://github.com/fengyuanchen/cropperjs) now.
- Migration from Cropper 3.x:
- **Before:**
```js
$().cropper({
crop(event) {
console.log(
event.x,
event.y,
event.width,
event.height,
event.rotate,
event.scaleX,
event.scaleY,
);
},
});
```
- **After:**
```js
$().cropper({
crop(event) {
console.log(
event.detail.x,
event.detail.y,
event.detail.width,
event.detail.height,
event.detail.rotate,
event.detail.scaleX,
event.detail.scaleY,
);
},
});
```

## 3.1.6 (Mar 1, 2018)

- Fixed a bug of incorrect behavior of `viewMode: 2`.
Expand Down
Loading

0 comments on commit e5c8ccc

Please sign in to comment.