@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.
@@ -11922,7 +11922,7 @@ class Selection {
11922
11922
  parent.objColl.splice(index, 1);
11923
11923
  }
11924
11924
  }
11925
- else if (!isShape && activeObj.shape && (activeObj.activePoint.width !== 0 || activeObj.activePoint.height != 0)) {
11925
+ else if (!isShape && activeObj.shape && (activeObj.activePoint.width !== 0 || activeObj.activePoint.height !== 0)) {
11926
11926
  parent.activeObj = activeObj;
11927
11927
  const index = this.getCurrentIndex();
11928
11928
  if (!isCropSelection) {
@@ -22580,7 +22580,12 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
22580
22580
  shapeSettings.type = ShapeType.FreehandDraw;
22581
22581
  }
22582
22582
  const shapeChangedArgs = { action: 'apply', currentShapeSettings: extend({}, shapeSettings, {}, true) };
22583
- this.trigger('shapeChange', shapeChangedArgs);
22583
+ if (isFinalApply || this.isShapeDrawing) {
22584
+ if (this.isShapeDrawing) {
22585
+ shapeChangedArgs.action = 'draw-end';
22586
+ }
22587
+ this.trigger('shapeChange', shapeChangedArgs);
22588
+ }
22584
22589
  }
22585
22590
  if (aspectIcon || nonAspectIcon) {
22586
22591
  const obj = { width: null, height: null };