@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.
@@ -4500,7 +4500,16 @@ class Draw {
4500
4500
  y: parent.panPoint.currentPannedPoint.y, panRegion: '' } });
4501
4501
  }
4502
4502
  this.adjustPanning(activeObj);
4503
- parent.activeObj = activeObj;
4503
+ let isActObj = false;
4504
+ for (let i = 0; i < parent.objColl.length; i++) {
4505
+ if (JSON.stringify(activeObj.activePoint) === JSON.stringify(parent.objColl[i].activePoint)) {
4506
+ isActObj = true;
4507
+ break;
4508
+ }
4509
+ }
4510
+ if (!isActObj) {
4511
+ parent.activeObj = activeObj;
4512
+ }
4504
4513
  if (parent.activeObj.activePoint.width !== 0 && parent.activeObj.activePoint.height !== 0) {
4505
4514
  this.drawObject('duplicate', null, null, null, true);
4506
4515
  }
@@ -11913,7 +11922,7 @@ class Selection {
11913
11922
  parent.objColl.splice(index, 1);
11914
11923
  }
11915
11924
  }
11916
- else if (!isShape && activeObj.shape) {
11925
+ else if (!isShape && activeObj.shape && (activeObj.activePoint.width !== 0 || activeObj.activePoint.height != 0)) {
11917
11926
  parent.activeObj = activeObj;
11918
11927
  const index = this.getCurrentIndex();
11919
11928
  if (!isCropSelection) {
@@ -12125,10 +12134,10 @@ class Selection {
12125
12134
  this.panDown = null;
12126
12135
  parent.notify('transform', { prop: 'setPanMove', onPropertyChange: false,
12127
12136
  value: { point: null } });
12128
- parent.notify('transform', { prop: 'setTempPanMove', onPropertyChange: false,
12129
- value: { point: null } });
12130
12137
  }
12131
12138
  }
12139
+ parent.notify('transform', { prop: 'setTempPanMove', onPropertyChange: false,
12140
+ value: { point: null } });
12132
12141
  if (this.currentDrawingShape !== 'path') {
12133
12142
  parent.currObjType.isDragging = false;
12134
12143
  }
@@ -13897,7 +13906,9 @@ class Shape {
13897
13906
  const fontSizeInd = String(parent.fontSizeColl.findIndex((item) => item.text === String(parent.activeObj.textSettings.fontSize)) + 1);
13898
13907
  parent.noPushUndo = true;
13899
13908
  parent.updateFontSize('5');
13900
- parent.updateFontSize(fontSizeInd);
13909
+ if (parseInt(fontSizeInd, 10) > 0) {
13910
+ parent.updateFontSize(fontSizeInd);
13911
+ }
13901
13912
  parent.noPushUndo = false;
13902
13913
  }
13903
13914
  if (parent.isPublicMethod && !isSelected) {
@@ -26051,7 +26062,7 @@ class ToolbarModule {
26051
26062
  }
26052
26063
  const fileObj = { fileName: '', fileType: '' };
26053
26064
  parent.notify('draw', { prop: 'getFileName', onPropertyChange: false, value: { obj: fileObj } });
26054
- this.fileType = fileObj['fileType'];
26065
+ this.fileType = fileObj['fileType'] ? fileObj['fileType'] : 'JPEG';
26055
26066
  parent.notify('export', { prop: 'exportToCanvas', value: { object: obj } });
26056
26067
  const tempCanvas = obj['canvas'];
26057
26068
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
@@ -26063,7 +26074,7 @@ class ToolbarModule {
26063
26074
  const ddbElem = document.getElementById(id + '_saveDropdownbtn');
26064
26075
  if (ddbElem) {
26065
26076
  const spanElem = document.createElement('span');
26066
- spanElem.innerHTML = fileObj['fileType'].toUpperCase();
26077
+ spanElem.innerHTML = this.fileType.toUpperCase();
26067
26078
  if (ddbElem) {
26068
26079
  ddbElem.appendChild(spanElem);
26069
26080
  }