@syncfusion/ej2-image-editor 21.2.3 → 21.2.5

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.
@@ -6753,7 +6753,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
6753
6753
  var x = points.x;
6754
6754
  var y = points.y;
6755
6755
  isShape = this.findTargetObj(x, y, isCropSelection);
6756
- this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6756
+ if (!isCropSelection) {
6757
+ this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6758
+ }
6757
6759
  if (isTextArea) {
6758
6760
  this.textArea.value = this.objColl[this.objColl.length - 1].keyHistory;
6759
6761
  this.textArea.style.display = 'block';
@@ -6793,7 +6795,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
6793
6795
  var x = points.x;
6794
6796
  var y = points.y;
6795
6797
  isShape = this.findTargetObj(x, y, isCropSelection);
6796
- this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6798
+ if (!isCropSelection) {
6799
+ this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6800
+ }
6797
6801
  if (isTextArea) {
6798
6802
  this.textArea.value = this.objColl[this.objColl.length - 1].keyHistory;
6799
6803
  this.textArea.style.display = 'block';