@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.
@@ -6708,7 +6708,9 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
6708
6708
  const x = points.x;
6709
6709
  const y = points.y;
6710
6710
  isShape = this.findTargetObj(x, y, isCropSelection);
6711
- this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6711
+ if (!isCropSelection) {
6712
+ this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6713
+ }
6712
6714
  if (isTextArea) {
6713
6715
  this.textArea.value = this.objColl[this.objColl.length - 1].keyHistory;
6714
6716
  this.textArea.style.display = 'block';
@@ -6748,7 +6750,9 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
6748
6750
  const x = points.x;
6749
6751
  const y = points.y;
6750
6752
  isShape = this.findTargetObj(x, y, isCropSelection);
6751
- this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6753
+ if (!isCropSelection) {
6754
+ this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6755
+ }
6752
6756
  if (isTextArea) {
6753
6757
  this.textArea.value = this.objColl[this.objColl.length - 1].keyHistory;
6754
6758
  this.textArea.style.display = 'block';