Skip to content

Commit da3f6f7

Browse files
committed
build: release 1.6.2
1 parent 388368d commit da3f6f7

File tree

12 files changed

+2190
-1839
lines changed

12 files changed

+2190
-1839
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## next
3+
## 1.6.2 (Apr 21, 2024)
44

55
- Disable touch callout on iOS webkit-based browsers (#1155).
66

dist/cropper.common.js

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
2-
* Cropper.js v1.6.1
2+
* Cropper.js v1.6.2
33
* https://fengyuanchen.github.io/cropperjs
44
*
55
* Copyright 2015-present Chen Fengyuan
66
* Released under the MIT license
77
*
8-
* Date: 2024-04-21T07:01:08.929Z
8+
* Date: 2024-04-21T07:43:05.335Z
99
*/
1010

1111
'use strict';
@@ -31,6 +31,20 @@ function _objectSpread2(e) {
3131
}
3232
return e;
3333
}
34+
function _toPrimitive(t, r) {
35+
if ("object" != typeof t || !t) return t;
36+
var e = t[Symbol.toPrimitive];
37+
if (void 0 !== e) {
38+
var i = e.call(t, r || "default");
39+
if ("object" != typeof i) return i;
40+
throw new TypeError("@@toPrimitive must return a primitive value.");
41+
}
42+
return ("string" === r ? String : Number)(t);
43+
}
44+
function _toPropertyKey(t) {
45+
var i = _toPrimitive(t, "string");
46+
return "symbol" == typeof i ? i : i + "";
47+
}
3448
function _typeof(o) {
3549
"@babel/helpers - typeof";
3650

@@ -101,20 +115,6 @@ function _arrayLikeToArray(arr, len) {
101115
function _nonIterableSpread() {
102116
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
103117
}
104-
function _toPrimitive(input, hint) {
105-
if (typeof input !== "object" || input === null) return input;
106-
var prim = input[Symbol.toPrimitive];
107-
if (prim !== undefined) {
108-
var res = prim.call(input, hint || "default");
109-
if (typeof res !== "object") return res;
110-
throw new TypeError("@@toPrimitive must return a primitive value.");
111-
}
112-
return (hint === "string" ? String : Number)(input);
113-
}
114-
function _toPropertyKey(arg) {
115-
var key = _toPrimitive(arg, "string");
116-
return typeof key === "symbol" ? key : String(key);
117-
}
118118

119119
var IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
120120
var WINDOW = IS_BROWSER ? window : {};
@@ -2914,7 +2914,7 @@ var Cropper = /*#__PURE__*/function () {
29142914
this.sizing = false;
29152915
this.init();
29162916
}
2917-
_createClass(Cropper, [{
2917+
return _createClass(Cropper, [{
29182918
key: "init",
29192919
value: function init() {
29202920
var element = this.element;
@@ -3261,7 +3261,6 @@ var Cropper = /*#__PURE__*/function () {
32613261
assign(DEFAULTS, isPlainObject(options) && options);
32623262
}
32633263
}]);
3264-
return Cropper;
32653264
}();
32663265
assign(Cropper.prototype, render, preview, events, handlers, change, methods);
32673266

dist/cropper.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
2-
* Cropper.js v1.6.1
2+
* Cropper.js v1.6.2
33
* https://fengyuanchen.github.io/cropperjs
44
*
55
* Copyright 2015-present Chen Fengyuan
66
* Released under the MIT license
77
*
8-
* Date: 2024-04-21T07:01:05.408Z
8+
* Date: 2024-04-21T07:43:02.731Z
99
*/
1010

1111
.cropper-container {

dist/cropper.esm.js

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
2-
* Cropper.js v1.6.1
2+
* Cropper.js v1.6.2
33
* https://fengyuanchen.github.io/cropperjs
44
*
55
* Copyright 2015-present Chen Fengyuan
66
* Released under the MIT license
77
*
8-
* Date: 2024-04-21T07:01:08.929Z
8+
* Date: 2024-04-21T07:43:05.335Z
99
*/
1010

1111
function ownKeys(e, r) {
@@ -29,6 +29,20 @@ function _objectSpread2(e) {
2929
}
3030
return e;
3131
}
32+
function _toPrimitive(t, r) {
33+
if ("object" != typeof t || !t) return t;
34+
var e = t[Symbol.toPrimitive];
35+
if (void 0 !== e) {
36+
var i = e.call(t, r || "default");
37+
if ("object" != typeof i) return i;
38+
throw new TypeError("@@toPrimitive must return a primitive value.");
39+
}
40+
return ("string" === r ? String : Number)(t);
41+
}
42+
function _toPropertyKey(t) {
43+
var i = _toPrimitive(t, "string");
44+
return "symbol" == typeof i ? i : i + "";
45+
}
3246
function _typeof(o) {
3347
"@babel/helpers - typeof";
3448

@@ -99,20 +113,6 @@ function _arrayLikeToArray(arr, len) {
99113
function _nonIterableSpread() {
100114
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
101115
}
102-
function _toPrimitive(input, hint) {
103-
if (typeof input !== "object" || input === null) return input;
104-
var prim = input[Symbol.toPrimitive];
105-
if (prim !== undefined) {
106-
var res = prim.call(input, hint || "default");
107-
if (typeof res !== "object") return res;
108-
throw new TypeError("@@toPrimitive must return a primitive value.");
109-
}
110-
return (hint === "string" ? String : Number)(input);
111-
}
112-
function _toPropertyKey(arg) {
113-
var key = _toPrimitive(arg, "string");
114-
return typeof key === "symbol" ? key : String(key);
115-
}
116116

117117
var IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
118118
var WINDOW = IS_BROWSER ? window : {};
@@ -2912,7 +2912,7 @@ var Cropper = /*#__PURE__*/function () {
29122912
this.sizing = false;
29132913
this.init();
29142914
}
2915-
_createClass(Cropper, [{
2915+
return _createClass(Cropper, [{
29162916
key: "init",
29172917
value: function init() {
29182918
var element = this.element;
@@ -3259,7 +3259,6 @@ var Cropper = /*#__PURE__*/function () {
32593259
assign(DEFAULTS, isPlainObject(options) && options);
32603260
}
32613261
}]);
3262-
return Cropper;
32633262
}();
32643263
assign(Cropper.prototype, render, preview, events, handlers, change, methods);
32653264

dist/cropper.js

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
2-
* Cropper.js v1.6.1
2+
* Cropper.js v1.6.2
33
* https://fengyuanchen.github.io/cropperjs
44
*
55
* Copyright 2015-present Chen Fengyuan
66
* Released under the MIT license
77
*
8-
* Date: 2024-04-21T07:01:08.929Z
8+
* Date: 2024-04-21T07:43:05.335Z
99
*/
1010

1111
(function (global, factory) {
@@ -35,6 +35,20 @@
3535
}
3636
return e;
3737
}
38+
function _toPrimitive(t, r) {
39+
if ("object" != typeof t || !t) return t;
40+
var e = t[Symbol.toPrimitive];
41+
if (void 0 !== e) {
42+
var i = e.call(t, r || "default");
43+
if ("object" != typeof i) return i;
44+
throw new TypeError("@@toPrimitive must return a primitive value.");
45+
}
46+
return ("string" === r ? String : Number)(t);
47+
}
48+
function _toPropertyKey(t) {
49+
var i = _toPrimitive(t, "string");
50+
return "symbol" == typeof i ? i : i + "";
51+
}
3852
function _typeof(o) {
3953
"@babel/helpers - typeof";
4054

@@ -105,20 +119,6 @@
105119
function _nonIterableSpread() {
106120
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
107121
}
108-
function _toPrimitive(input, hint) {
109-
if (typeof input !== "object" || input === null) return input;
110-
var prim = input[Symbol.toPrimitive];
111-
if (prim !== undefined) {
112-
var res = prim.call(input, hint || "default");
113-
if (typeof res !== "object") return res;
114-
throw new TypeError("@@toPrimitive must return a primitive value.");
115-
}
116-
return (hint === "string" ? String : Number)(input);
117-
}
118-
function _toPropertyKey(arg) {
119-
var key = _toPrimitive(arg, "string");
120-
return typeof key === "symbol" ? key : String(key);
121-
}
122122

123123
var IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
124124
var WINDOW = IS_BROWSER ? window : {};
@@ -2918,7 +2918,7 @@
29182918
this.sizing = false;
29192919
this.init();
29202920
}
2921-
_createClass(Cropper, [{
2921+
return _createClass(Cropper, [{
29222922
key: "init",
29232923
value: function init() {
29242924
var element = this.element;
@@ -3265,7 +3265,6 @@
32653265
assign(DEFAULTS, isPlainObject(options) && options);
32663266
}
32673267
}]);
3268-
return Cropper;
32693268
}();
32703269
assign(Cropper.prototype, render, preview, events, handlers, change, methods);
32713270

dist/cropper.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cropper.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/css/cropper.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
2-
* Cropper.js v1.6.1
2+
* Cropper.js v1.6.2
33
* https://fengyuanchen.github.io/cropperjs
44
*
55
* Copyright 2015-present Chen Fengyuan
66
* Released under the MIT license
77
*
8-
* Date: 2024-04-21T07:01:05.408Z
8+
* Date: 2024-04-21T07:43:02.731Z
99
*/
1010

1111
.cropper-container {

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
<div class="container">
8181
<div class="row">
8282
<div class="col-md">
83-
<h1>Cropper.js <small class="h6">v1.6.1</small></h1>
83+
<h1>Cropper.js <small class="h6">v1.6.2</small></h1>
8484
<p class="lead">JavaScript image cropper.</p>
8585
</div>
8686
<div class="col-md">

docs/js/cropper.js

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*!
2-
* Cropper.js v1.6.1
2+
* Cropper.js v1.6.2
33
* https://fengyuanchen.github.io/cropperjs
44
*
55
* Copyright 2015-present Chen Fengyuan
66
* Released under the MIT license
77
*
8-
* Date: 2024-04-21T07:01:08.929Z
8+
* Date: 2024-04-21T07:43:05.335Z
99
*/
1010

1111
(function (global, factory) {
@@ -35,6 +35,20 @@
3535
}
3636
return e;
3737
}
38+
function _toPrimitive(t, r) {
39+
if ("object" != typeof t || !t) return t;
40+
var e = t[Symbol.toPrimitive];
41+
if (void 0 !== e) {
42+
var i = e.call(t, r || "default");
43+
if ("object" != typeof i) return i;
44+
throw new TypeError("@@toPrimitive must return a primitive value.");
45+
}
46+
return ("string" === r ? String : Number)(t);
47+
}
48+
function _toPropertyKey(t) {
49+
var i = _toPrimitive(t, "string");
50+
return "symbol" == typeof i ? i : i + "";
51+
}
3852
function _typeof(o) {
3953
"@babel/helpers - typeof";
4054

@@ -105,20 +119,6 @@
105119
function _nonIterableSpread() {
106120
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
107121
}
108-
function _toPrimitive(input, hint) {
109-
if (typeof input !== "object" || input === null) return input;
110-
var prim = input[Symbol.toPrimitive];
111-
if (prim !== undefined) {
112-
var res = prim.call(input, hint || "default");
113-
if (typeof res !== "object") return res;
114-
throw new TypeError("@@toPrimitive must return a primitive value.");
115-
}
116-
return (hint === "string" ? String : Number)(input);
117-
}
118-
function _toPropertyKey(arg) {
119-
var key = _toPrimitive(arg, "string");
120-
return typeof key === "symbol" ? key : String(key);
121-
}
122122

123123
var IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
124124
var WINDOW = IS_BROWSER ? window : {};
@@ -2918,7 +2918,7 @@
29182918
this.sizing = false;
29192919
this.init();
29202920
}
2921-
_createClass(Cropper, [{
2921+
return _createClass(Cropper, [{
29222922
key: "init",
29232923
value: function init() {
29242924
var element = this.element;
@@ -3265,7 +3265,6 @@
32653265
assign(DEFAULTS, isPlainObject(options) && options);
32663266
}
32673267
}]);
3268-
return Cropper;
32693268
}();
32703269
assign(Cropper.prototype, render, preview, events, handlers, change, methods);
32713270

0 commit comments

Comments
 (0)