@syncfusion/ej2-image-editor 21.2.3 → 21.2.6

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.
@@ -3360,6 +3360,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
3360
3360
  this.pointColl = [];
3361
3361
  this.freehandCounter = 0;
3362
3362
  this.objColl.push(this.currSelectionPoint);
3363
+ this.currSelectionPoint = null;
3363
3364
  this.zoomAction(this.cropObj.cropZoom);
3364
3365
  this.currSelectionPoint = extend({}, this.objColl[0], null, true);
3365
3366
  this.objColl = cropObjColl;
@@ -6708,7 +6709,9 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
6708
6709
  const x = points.x;
6709
6710
  const y = points.y;
6710
6711
  isShape = this.findTargetObj(x, y, isCropSelection);
6711
- this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6712
+ if (!isCropSelection) {
6713
+ this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6714
+ }
6712
6715
  if (isTextArea) {
6713
6716
  this.textArea.value = this.objColl[this.objColl.length - 1].keyHistory;
6714
6717
  this.textArea.style.display = 'block';
@@ -6748,7 +6751,9 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
6748
6751
  const x = points.x;
6749
6752
  const y = points.y;
6750
6753
  isShape = this.findTargetObj(x, y, isCropSelection);
6751
- this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6754
+ if (!isCropSelection) {
6755
+ this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6756
+ }
6752
6757
  if (isTextArea) {
6753
6758
  this.textArea.value = this.objColl[this.objColl.length - 1].keyHistory;
6754
6759
  this.textArea.style.display = 'block';