@syncfusion/ej2-image-editor 27.1.57 → 27.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-image-editor.umd.min.js +2 -2
- package/dist/ej2-image-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-image-editor.es2015.js +8 -2
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +8 -2
- package/dist/es6/ej2-image-editor.es5.js.map +1 -1
- package/dist/global/ej2-image-editor.min.js +2 -2
- package/dist/global/ej2-image-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/image-editor/action/transform.js +8 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 27.
|
|
3
|
+
* version : 27.2.2
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-image-editor@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-image-editor@27.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-image-editor@27.1.57",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-WzSJDFg8fD2CBvt7/D/aVhqIsDv1ZWa37++ruPZXM+zLM8CEFyq9QnkhUg5UZO7M69vGy5e17jDjaBmDqX2yEg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-image-editor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-image-editor",
|
|
24
24
|
"/@syncfusion/ej2-vue-image-editor"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-27.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-27.1.57.tgz",
|
|
27
|
+
"_shasum": "7752944d8e6078004d132dfdeee981c1951d5fb4",
|
|
28
28
|
"_spec": "@syncfusion/ej2-image-editor@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
},
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@syncfusion/ej2-base": "~27.
|
|
36
|
-
"@syncfusion/ej2-buttons": "~27.
|
|
37
|
-
"@syncfusion/ej2-dropdowns": "~27.
|
|
38
|
-
"@syncfusion/ej2-inputs": "~27.
|
|
39
|
-
"@syncfusion/ej2-navigations": "~27.
|
|
40
|
-
"@syncfusion/ej2-popups": "~27.
|
|
41
|
-
"@syncfusion/ej2-splitbuttons": "~27.
|
|
35
|
+
"@syncfusion/ej2-base": "~27.2.2",
|
|
36
|
+
"@syncfusion/ej2-buttons": "~27.2.2",
|
|
37
|
+
"@syncfusion/ej2-dropdowns": "~27.2.2",
|
|
38
|
+
"@syncfusion/ej2-inputs": "~27.2.2",
|
|
39
|
+
"@syncfusion/ej2-navigations": "~27.2.2",
|
|
40
|
+
"@syncfusion/ej2-popups": "~27.2.2",
|
|
41
|
+
"@syncfusion/ej2-splitbuttons": "~27.2.2"
|
|
42
42
|
},
|
|
43
43
|
"deprecated": false,
|
|
44
44
|
"description": "Essential JS 2 ImageEditor",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
|
|
69
69
|
},
|
|
70
70
|
"typings": "index.d.ts",
|
|
71
|
-
"version": "27.
|
|
71
|
+
"version": "27.2.2",
|
|
72
72
|
"sideEffects": false,
|
|
73
73
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
74
74
|
}
|
|
@@ -2097,6 +2097,7 @@ var Transform = /** @class */ (function () {
|
|
|
2097
2097
|
};
|
|
2098
2098
|
Transform.prototype.resize = function (width, height, isAspectRatio) {
|
|
2099
2099
|
var parent = this.parent;
|
|
2100
|
+
var aspectHeight;
|
|
2100
2101
|
parent.isResize = true;
|
|
2101
2102
|
if (isNullOrUndefined(parent.prevCropObj) && isNullOrUndefined(parent.prevObj)) {
|
|
2102
2103
|
parent.notify('transform', { prop: 'updateResize', value: { bool: false } });
|
|
@@ -2110,7 +2111,12 @@ var Transform = /** @class */ (function () {
|
|
|
2110
2111
|
}
|
|
2111
2112
|
}
|
|
2112
2113
|
var aspectRatioHeight = parent.element.querySelector('#' + parent.element.id + '_resizeHeight');
|
|
2113
|
-
|
|
2114
|
+
if (aspectRatioHeight) {
|
|
2115
|
+
aspectHeight = aspectRatioHeight.value === '' ? aspectRatioHeight.placeholder : aspectRatioHeight.value;
|
|
2116
|
+
}
|
|
2117
|
+
else {
|
|
2118
|
+
aspectHeight = height + 'px';
|
|
2119
|
+
}
|
|
2114
2120
|
var resizeEventArgs = { cancel: false, previousWidth: Math.ceil(parent.img.destWidth),
|
|
2115
2121
|
previousHeight: Math.ceil(parent.img.destHeight), width: Math.ceil(width), height: height && height !== 0 ? Math.ceil(height) :
|
|
2116
2122
|
(isAspectRatio ? Math.ceil(parseFloat(aspectHeight)) : Math.ceil(parent.img.destHeight)),
|
|
@@ -2140,8 +2146,8 @@ var Transform = /** @class */ (function () {
|
|
|
2140
2146
|
var originalWidth = parent.img.destWidth;
|
|
2141
2147
|
var originalHeight = parent.img.destHeight;
|
|
2142
2148
|
var aspectRatioWidthValue = void 0;
|
|
2143
|
-
aspectRatioWidthValue = parseFloat(aspectRatioWidth.value === '' ? aspectRatioWidth.placeholder : aspectRatioWidth.value);
|
|
2144
2149
|
if (aspectRatioHeight) {
|
|
2150
|
+
aspectRatioWidthValue = parseFloat(aspectRatioWidth.value === '' ? aspectRatioWidth.placeholder : aspectRatioWidth.value);
|
|
2145
2151
|
var value = aspectRatioWidthValue / (originalWidth / originalHeight);
|
|
2146
2152
|
// eslint-disable-next-line max-len
|
|
2147
2153
|
var height = value % 1 >= 0.5 || value % 1 <= -0.5 ? Math.round(value) : (value < 0) ? Math.ceil(value) : Math.floor(value);
|