@syncfusion/ej2-image-editor 21.1.37 → 21.1.39

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.
@@ -5139,6 +5139,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
5139
5139
  this.activeObj.activePoint.height = this.activeObj.activePoint.endY - this.activeObj.activePoint.startY;
5140
5140
  this.updateActiveObject(this.activeObj.activePoint, this.activeObj);
5141
5141
  }
5142
+ this.updateSelectionInsert();
5142
5143
  this.drawObject('duplicate', this.activeObj, null, null, true);
5143
5144
  };
5144
5145
  ImageEditor.prototype.clearOuterCanvas = function (context) {
@@ -12839,6 +12840,13 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
12839
12840
  width: width, height: width };
12840
12841
  }
12841
12842
  this.activeObj.shape = cropShape.toLowerCase();
12843
+ this.updateSelectionInsert();
12844
+ if (this.activeObj.activePoint.startX !== 0 || this.activeObj.activePoint.startY !== 0 ||
12845
+ this.activeObj.activePoint.width !== 0 || this.activeObj.activePoint.height !== 0) {
12846
+ points = { startX: this.activeObj.activePoint.startX, startY: this.activeObj.activePoint.startY,
12847
+ endX: this.activeObj.activePoint.endX, endY: this.activeObj.activePoint.endY,
12848
+ width: this.activeObj.activePoint.width, height: this.activeObj.activePoint.height };
12849
+ }
12842
12850
  this.drawObject('duplicate', null, true, points);
12843
12851
  }
12844
12852
  };
@@ -13643,6 +13651,13 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
13643
13651
  }
13644
13652
  }
13645
13653
  };
13654
+ ImageEditor.prototype.updateSelectionInsert = function () {
13655
+ var shapeSettings = this.updatePreviousShapeSettings();
13656
+ var shapeChangingArgs = { action: 'insert', previousShapeSettings: shapeSettings,
13657
+ currentShapeSettings: shapeSettings };
13658
+ this.trigger('shapeChanging', shapeChangingArgs);
13659
+ this.updateShapeChangeEventArgs(shapeChangingArgs.currentShapeSettings);
13660
+ };
13646
13661
  /**
13647
13662
  * Enable or disable a freehand drawing option in an Image Editor.
13648
13663
  *