@syncfusion/ej2-image-editor 27.1.57 → 27.1.58

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 27.1.57
3
+ * version : 27.1.58
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.53",
3
+ "_id": "@syncfusion/ej2-image-editor@27.1.57",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ZtwLwC7Nxvln2ygYweanubDEXjvJdaJjptjZhDiCkiR5dos3rSi6rr1FLYaQ6d33cXAhQ8HFfBh2I3CPOqK4rg==",
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.53.tgz",
27
- "_shasum": "42fdf05d1d7bc703782067315784adc5bcf202bd",
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": {
@@ -33,11 +33,11 @@
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
35
  "@syncfusion/ej2-base": "~27.1.55",
36
- "@syncfusion/ej2-buttons": "~27.1.53",
37
- "@syncfusion/ej2-dropdowns": "~27.1.57",
38
- "@syncfusion/ej2-inputs": "~27.1.55",
39
- "@syncfusion/ej2-navigations": "~27.1.57",
40
- "@syncfusion/ej2-popups": "~27.1.57",
36
+ "@syncfusion/ej2-buttons": "~27.1.58",
37
+ "@syncfusion/ej2-dropdowns": "~27.1.58",
38
+ "@syncfusion/ej2-inputs": "~27.1.58",
39
+ "@syncfusion/ej2-navigations": "~27.1.58",
40
+ "@syncfusion/ej2-popups": "~27.1.58",
41
41
  "@syncfusion/ej2-splitbuttons": "~27.1.56"
42
42
  },
43
43
  "deprecated": false,
@@ -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.1.57",
71
+ "version": "27.1.58",
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
- var aspectHeight = aspectRatioHeight.value === '' ? aspectRatioHeight.placeholder : aspectRatioHeight.value;
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);