Skip to content

Commit

Permalink
build: release 1.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Sep 10, 2020
1 parent af90e6c commit 31d2dae
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 46 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## next
## 1.5.9 (Sep 10, 2020)

- Fix the issue of fail to zoom out on touch device (#726).
- Add TypeScript declarations for the events.
Expand Down
6 changes: 3 additions & 3 deletions dist/cropper.common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.8
* Cropper.js v1.5.9
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2020-09-05T09:47:28.489Z
* Date: 2020-09-10T13:16:26.743Z
*/

'use strict';
Expand Down Expand Up @@ -814,7 +814,7 @@ function getMaxZoomRatio(pointers) {
var z2 = Math.sqrt(x2 * x2 + y2 * y2);
var ratio = (z2 - z1) / z1;

if (ratio > maxRatio) {
if (Math.abs(ratio) > Math.abs(maxRatio)) {
maxRatio = ratio;
}
});
Expand Down
4 changes: 2 additions & 2 deletions dist/cropper.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.8
* Cropper.js v1.5.9
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2020-09-05T09:47:25.587Z
* Date: 2020-09-10T13:16:21.689Z
*/

.cropper-container {
Expand Down
6 changes: 3 additions & 3 deletions dist/cropper.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.8
* Cropper.js v1.5.9
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2020-09-05T09:47:28.489Z
* Date: 2020-09-10T13:16:26.743Z
*/

function _typeof(obj) {
Expand Down Expand Up @@ -812,7 +812,7 @@ function getMaxZoomRatio(pointers) {
var z2 = Math.sqrt(x2 * x2 + y2 * y2);
var ratio = (z2 - z1) / z1;

if (ratio > maxRatio) {
if (Math.abs(ratio) > Math.abs(maxRatio)) {
maxRatio = ratio;
}
});
Expand Down
6 changes: 3 additions & 3 deletions dist/cropper.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.8
* Cropper.js v1.5.9
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2020-09-05T09:47:28.489Z
* Date: 2020-09-10T13:16:26.743Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -818,7 +818,7 @@
var z2 = Math.sqrt(x2 * x2 + y2 * y2);
var ratio = (z2 - z1) / z1;

if (ratio > maxRatio) {
if (Math.abs(ratio) > Math.abs(maxRatio)) {
maxRatio = ratio;
}
});
Expand Down
4 changes: 2 additions & 2 deletions dist/cropper.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/cropper.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/css/cropper.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.8
* Cropper.js v1.5.9
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2020-09-05T09:47:25.587Z
* Date: 2020-09-10T13:16:21.689Z
*/

.cropper-container {
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<div class="container">
<div class="row">
<div class="col-md">
<h1>Cropper.js <small class="h6">v1.5.8</small></h1>
<h1>Cropper.js <small class="h6">v1.5.9</small></h1>
<p class="lead">JavaScript image cropper.</p>
</div>
<div class="col-md">
Expand Down
6 changes: 3 additions & 3 deletions docs/js/cropper.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.8
* Cropper.js v1.5.9
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2020-09-05T09:47:28.489Z
* Date: 2020-09-10T13:16:26.743Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -818,7 +818,7 @@
var z2 = Math.sqrt(x2 * x2 + y2 * y2);
var ratio = (z2 - z1) / z1;

if (ratio > maxRatio) {
if (Math.abs(ratio) > Math.abs(maxRatio)) {
maxRatio = ratio;
}
});
Expand Down
49 changes: 31 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cropperjs",
"description": "JavaScript image cropper.",
"version": "1.5.8",
"version": "1.5.9",
"main": "dist/cropper.common.js",
"module": "dist/cropper.esm.js",
"browser": "dist/cropper.js",
Expand Down Expand Up @@ -77,8 +77,8 @@
"eslint": "^7.8.1",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-plugin-import": "^2.22.0",
"husky": "^4.2.5",
"karma": "^5.2.1",
"husky": "^4.3.0",
"karma": "^5.2.2",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage-istanbul-reporter": "^3.0.3",
Expand All @@ -94,12 +94,12 @@
"postcss-preset-env": "^6.7.0",
"postcss-url": "^8.0.0",
"puppeteer": "^5.2.1",
"rollup": "^2.26.10",
"rollup": "^2.26.11",
"rollup-plugin-babel": "^4.4.0",
"stylelint": "^13.7.0",
"stylelint-config-standard": "^20.0.0",
"stylelint-order": "^4.1.0",
"uglify-js": "^3.10.3"
"uglify-js": "^3.10.4"
},
"browserslist": [
"last 2 versions",
Expand Down

0 comments on commit 31d2dae

Please sign in to comment.