@syncfusion/ej2-image-editor 26.2.4 → 26.2.8

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.4
3
+ * version : 26.2.8
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.1.41",
3
+ "_id": "@syncfusion/ej2-image-editor@26.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-zZXE7n9Ic961tD024D+IHoiqYTDcOMCUuZpX2OGtor7T/IE1dreqOsTWvAQwLE8KXjjLMw7L7xg2z7q8R+vYJw==",
5
+ "_integrity": "sha512-Fw3cPnhbyLx/ENrcxuhvIPTuiJamVk/HX7V6La+fREnYNOv/VDiACO63xn/BzuazobRLuQZb6MocNKGL2npqjg==",
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.1.41.tgz",
27
- "_shasum": "6d79b44758b74b906e47f94e827eedd7def4b8b1",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-26.2.5.tgz",
27
+ "_shasum": "f7c4aa2094144aa2a92266b3a2d68b64b64a7f4c",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
30
30
  "author": {
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
- "@syncfusion/ej2-base": "~26.2.4",
36
- "@syncfusion/ej2-buttons": "~26.2.4",
37
- "@syncfusion/ej2-dropdowns": "~26.2.4",
38
- "@syncfusion/ej2-inputs": "~26.2.4",
39
- "@syncfusion/ej2-navigations": "~26.2.4",
40
- "@syncfusion/ej2-popups": "~26.2.4",
41
- "@syncfusion/ej2-splitbuttons": "~26.2.4"
35
+ "@syncfusion/ej2-base": "~26.2.5",
36
+ "@syncfusion/ej2-buttons": "~26.2.8",
37
+ "@syncfusion/ej2-dropdowns": "~26.2.8",
38
+ "@syncfusion/ej2-inputs": "~26.2.5",
39
+ "@syncfusion/ej2-navigations": "~26.2.8",
40
+ "@syncfusion/ej2-popups": "~26.2.8",
41
+ "@syncfusion/ej2-splitbuttons": "~26.2.5"
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": "26.2.4",
71
+ "version": "26.2.8",
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) {
@@ -4028,10 +4028,10 @@ var Selection = /** @class */ (function () {
4028
4028
  this.panDown = null;
4029
4029
  parent.notify('transform', { prop: 'setPanMove', onPropertyChange: false,
4030
4030
  value: { point: null } });
4031
- parent.notify('transform', { prop: 'setTempPanMove', onPropertyChange: false,
4032
- value: { point: null } });
4033
4031
  }
4034
4032
  }
4033
+ parent.notify('transform', { prop: 'setTempPanMove', onPropertyChange: false,
4034
+ value: { point: null } });
4035
4035
  if (this.currentDrawingShape !== 'path') {
4036
4036
  parent.currObjType.isDragging = false;
4037
4037
  }
@@ -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) {
@@ -1649,7 +1649,7 @@ var ToolbarModule = /** @class */ (function () {
1649
1649
  }
1650
1650
  var fileObj = { fileName: '', fileType: '' };
1651
1651
  parent.notify('draw', { prop: 'getFileName', onPropertyChange: false, value: { obj: fileObj } });
1652
- this.fileType = fileObj['fileType'];
1652
+ this.fileType = fileObj['fileType'] ? fileObj['fileType'] : 'JPEG';
1653
1653
  parent.notify('export', { prop: 'exportToCanvas', value: { object: obj } });
1654
1654
  var tempCanvas = obj['canvas'];
1655
1655
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
@@ -1661,7 +1661,7 @@ var ToolbarModule = /** @class */ (function () {
1661
1661
  var ddbElem = document.getElementById(id + '_saveDropdownbtn');
1662
1662
  if (ddbElem) {
1663
1663
  var spanElem_1 = document.createElement('span');
1664
- spanElem_1.innerHTML = fileObj['fileType'].toUpperCase();
1664
+ spanElem_1.innerHTML = this.fileType.toUpperCase();
1665
1665
  if (ddbElem) {
1666
1666
  ddbElem.appendChild(spanElem_1);
1667
1667
  }