@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.
@@ -24521,7 +24521,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
24521
24521
  * @returns {void}.
24522
24522
  */
24523
24523
  ImageEditor.prototype.undo = function () {
24524
- this.manageActiveAction();
24524
+ this.handlePenActiveState();
24525
24525
  this.notify('undo-redo', { prop: 'undo', onPropertyChange: false });
24526
24526
  this.notify('draw', { prop: 'redrawDownScale' });
24527
24527
  };
@@ -24533,7 +24533,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
24533
24533
  * @returns {void}.
24534
24534
  */
24535
24535
  ImageEditor.prototype.redo = function () {
24536
- this.manageActiveAction();
24536
+ this.handlePenActiveState();
24537
24537
  this.notify('undo-redo', { prop: 'redo', onPropertyChange: false });
24538
24538
  this.notify('draw', { prop: 'redrawDownScale' });
24539
24539
  };
@@ -27301,6 +27301,13 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
27301
27301
  }
27302
27302
  return isRedact;
27303
27303
  };
27304
+ ImageEditor.prototype.handlePenActiveState = function () {
27305
+ var freehandDrawObj = { freehandDrawSelectedId: null };
27306
+ this.notify('freehand-draw', { prop: 'getFreehandDrawSelectedId', onPropertyChange: false, value: { obj: freehandDrawObj } });
27307
+ if (isNullOrUndefined(freehandDrawObj['freehandDrawSelectedId'])) {
27308
+ this.manageActiveAction();
27309
+ }
27310
+ };
27304
27311
  var ImageEditor_1;
27305
27312
  __decorate([
27306
27313
  Property('')