@syncfusion/ej2-image-editor 31.1.21 → 31.1.22

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.
@@ -24396,7 +24396,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
24396
24396
  * @returns {void}.
24397
24397
  */
24398
24398
  undo() {
24399
- this.manageActiveAction();
24399
+ this.handlePenActiveState();
24400
24400
  this.notify('undo-redo', { prop: 'undo', onPropertyChange: false });
24401
24401
  this.notify('draw', { prop: 'redrawDownScale' });
24402
24402
  }
@@ -24408,7 +24408,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
24408
24408
  * @returns {void}.
24409
24409
  */
24410
24410
  redo() {
24411
- this.manageActiveAction();
24411
+ this.handlePenActiveState();
24412
24412
  this.notify('undo-redo', { prop: 'redo', onPropertyChange: false });
24413
24413
  this.notify('draw', { prop: 'redrawDownScale' });
24414
24414
  }
@@ -27174,6 +27174,13 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
27174
27174
  }
27175
27175
  return isRedact;
27176
27176
  }
27177
+ handlePenActiveState() {
27178
+ const freehandDrawObj = { freehandDrawSelectedId: null };
27179
+ this.notify('freehand-draw', { prop: 'getFreehandDrawSelectedId', onPropertyChange: false, value: { obj: freehandDrawObj } });
27180
+ if (isNullOrUndefined(freehandDrawObj['freehandDrawSelectedId'])) {
27181
+ this.manageActiveAction();
27182
+ }
27183
+ }
27177
27184
  };
27178
27185
  __decorate([
27179
27186
  Property('')