@syncfusion/ej2-image-editor 26.2.5 → 26.2.9

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 : 26.2.5
3
+ * version : 26.2.9
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@26.2.4",
3
+ "_id": "@syncfusion/ej2-image-editor@26.2.8",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-qP15xeRZJ0LuRT3Na9Sa/tWg3mYzNzYlBzPuPod6ILfk4WEbo8/tH7JV5cipBpyXrsdHBd9fXZ+0nOpWEW0Tfg==",
5
+ "_integrity": "sha512-rMtjggthbe8FQ3smsn4GBIqTHdLGzQKSmwE82hBc9URl2rdsm7pXZRVQ141bARrmMUL0JbU+niF/OZISz+cG/A==",
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-26.2.4.tgz",
27
- "_shasum": "ac77b28875b507241c3f70bfc279d5debb727a84",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-26.2.8.tgz",
27
+ "_shasum": "ef7283f2cee45e8ef9bca50f901dcaef2042db58",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
30
30
  "author": {
@@ -33,11 +33,11 @@
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
35
  "@syncfusion/ej2-base": "~26.2.5",
36
- "@syncfusion/ej2-buttons": "~26.2.5",
37
- "@syncfusion/ej2-dropdowns": "~26.2.5",
36
+ "@syncfusion/ej2-buttons": "~26.2.9",
37
+ "@syncfusion/ej2-dropdowns": "~26.2.9",
38
38
  "@syncfusion/ej2-inputs": "~26.2.5",
39
- "@syncfusion/ej2-navigations": "~26.2.5",
40
- "@syncfusion/ej2-popups": "~26.2.5",
39
+ "@syncfusion/ej2-navigations": "~26.2.8",
40
+ "@syncfusion/ej2-popups": "~26.2.8",
41
41
  "@syncfusion/ej2-splitbuttons": "~26.2.5"
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": "26.2.5",
71
+ "version": "26.2.9",
72
72
  "sideEffects": false,
73
73
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
74
74
  }
@@ -3596,7 +3596,16 @@ var Draw = /** @class */ (function () {
3596
3596
  y: parent.panPoint.currentPannedPoint.y, panRegion: '' } });
3597
3597
  }
3598
3598
  this.adjustPanning(activeObj);
3599
- parent.activeObj = activeObj;
3599
+ var isActObj = false;
3600
+ for (var i = 0; i < parent.objColl.length; i++) {
3601
+ if (JSON.stringify(activeObj.activePoint) === JSON.stringify(parent.objColl[i].activePoint)) {
3602
+ isActObj = true;
3603
+ break;
3604
+ }
3605
+ }
3606
+ if (!isActObj) {
3607
+ parent.activeObj = activeObj;
3608
+ }
3600
3609
  if (parent.activeObj.activePoint.width !== 0 && parent.activeObj.activePoint.height !== 0) {
3601
3610
  this.drawObject('duplicate', null, null, null, true);
3602
3611
  }
@@ -3816,7 +3816,7 @@ var Selection = /** @class */ (function () {
3816
3816
  parent.objColl.splice(index, 1);
3817
3817
  }
3818
3818
  }
3819
- else if (!isShape && activeObj.shape) {
3819
+ else if (!isShape && activeObj.shape && (activeObj.activePoint.width !== 0 || activeObj.activePoint.height != 0)) {
3820
3820
  parent.activeObj = activeObj;
3821
3821
  var index = this.getCurrentIndex();
3822
3822
  if (!isCropSelection) {
@@ -566,7 +566,9 @@ var Shape = /** @class */ (function () {
566
566
  var fontSizeInd = String(parent.fontSizeColl.findIndex(function (item) { return item.text === String(parent.activeObj.textSettings.fontSize); }) + 1);
567
567
  parent.noPushUndo = true;
568
568
  parent.updateFontSize('5');
569
- parent.updateFontSize(fontSizeInd);
569
+ if (parseInt(fontSizeInd, 10) > 0) {
570
+ parent.updateFontSize(fontSizeInd);
571
+ }
570
572
  parent.noPushUndo = false;
571
573
  }
572
574
  if (parent.isPublicMethod && !isSelected) {
@@ -1712,7 +1712,7 @@ var ToolbarModule = /** @class */ (function () {
1712
1712
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
1713
1713
  var imgName = document.getElementById(id + '_imgNametext');
1714
1714
  imgName.value = this.fileName ? this.fileName : fileObj['fileName'];
1715
- if (fileObj['fileType'].toUpperCase() !== 'JPEG') {
1715
+ if (fileObj['fileType'] && fileObj['fileType'].toUpperCase() !== 'JPEG') {
1716
1716
  qualityContainer.style.display = 'none';
1717
1717
  qualitySliderValue.style.display = 'none';
1718
1718
  }