@syncfusion/ej2-image-editor 26.2.9 → 26.2.14

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.
@@ -11974,7 +11974,7 @@ var Selection = /** @__PURE__ @class */ (function () {
11974
11974
  parent.objColl.splice(index, 1);
11975
11975
  }
11976
11976
  }
11977
- else if (!isShape && activeObj.shape && (activeObj.activePoint.width !== 0 || activeObj.activePoint.height != 0)) {
11977
+ else if (!isShape && activeObj.shape && (activeObj.activePoint.width !== 0 || activeObj.activePoint.height !== 0)) {
11978
11978
  parent.activeObj = activeObj;
11979
11979
  var index = this.getCurrentIndex();
11980
11980
  if (!isCropSelection) {
@@ -22676,7 +22676,12 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
22676
22676
  shapeSettings.type = ShapeType.FreehandDraw;
22677
22677
  }
22678
22678
  var shapeChangedArgs = { action: 'apply', currentShapeSettings: extend({}, shapeSettings, {}, true) };
22679
- this.trigger('shapeChange', shapeChangedArgs);
22679
+ if (isFinalApply || this.isShapeDrawing) {
22680
+ if (this.isShapeDrawing) {
22681
+ shapeChangedArgs.action = 'draw-end';
22682
+ }
22683
+ this.trigger('shapeChange', shapeChangedArgs);
22684
+ }
22680
22685
  }
22681
22686
  if (aspectIcon || nonAspectIcon) {
22682
22687
  var obj_2 = { width: null, height: null };