@syncfusion/ej2-image-editor 26.2.5 → 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.
@@ -4530,7 +4530,16 @@ var Draw = /** @__PURE__ @class */ (function () {
4530
4530
  y: parent.panPoint.currentPannedPoint.y, panRegion: '' } });
4531
4531
  }
4532
4532
  this.adjustPanning(activeObj);
4533
- parent.activeObj = activeObj;
4533
+ var isActObj = false;
4534
+ for (var i = 0; i < parent.objColl.length; i++) {
4535
+ if (JSON.stringify(activeObj.activePoint) === JSON.stringify(parent.objColl[i].activePoint)) {
4536
+ isActObj = true;
4537
+ break;
4538
+ }
4539
+ }
4540
+ if (!isActObj) {
4541
+ parent.activeObj = activeObj;
4542
+ }
4534
4543
  if (parent.activeObj.activePoint.width !== 0 && parent.activeObj.activePoint.height !== 0) {
4535
4544
  this.drawObject('duplicate', null, null, null, true);
4536
4545
  }
@@ -11965,7 +11974,7 @@ var Selection = /** @__PURE__ @class */ (function () {
11965
11974
  parent.objColl.splice(index, 1);
11966
11975
  }
11967
11976
  }
11968
- else if (!isShape && activeObj.shape) {
11977
+ else if (!isShape && activeObj.shape && (activeObj.activePoint.width !== 0 || activeObj.activePoint.height != 0)) {
11969
11978
  parent.activeObj = activeObj;
11970
11979
  var index = this.getCurrentIndex();
11971
11980
  if (!isCropSelection) {
@@ -13950,7 +13959,9 @@ var Shape = /** @__PURE__ @class */ (function () {
13950
13959
  var fontSizeInd = String(parent.fontSizeColl.findIndex(function (item) { return item.text === String(parent.activeObj.textSettings.fontSize); }) + 1);
13951
13960
  parent.noPushUndo = true;
13952
13961
  parent.updateFontSize('5');
13953
- parent.updateFontSize(fontSizeInd);
13962
+ if (parseInt(fontSizeInd, 10) > 0) {
13963
+ parent.updateFontSize(fontSizeInd);
13964
+ }
13954
13965
  parent.noPushUndo = false;
13955
13966
  }
13956
13967
  if (parent.isPublicMethod && !isSelected) {