@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.
@@ -3399,6 +3399,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
3399
3399
  this.pointColl = [];
3400
3400
  this.freehandCounter = 0;
3401
3401
  this.objColl.push(this.currSelectionPoint);
3402
+ this.currSelectionPoint = null;
3402
3403
  this.zoomAction(this.cropObj.cropZoom);
3403
3404
  this.currSelectionPoint = extend({}, this.objColl[0], null, true);
3404
3405
  this.objColl = cropObjColl_1;
@@ -6753,7 +6754,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
6753
6754
  var x = points.x;
6754
6755
  var y = points.y;
6755
6756
  isShape = this.findTargetObj(x, y, isCropSelection);
6756
- this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6757
+ if (!isCropSelection) {
6758
+ this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6759
+ }
6757
6760
  if (isTextArea) {
6758
6761
  this.textArea.value = this.objColl[this.objColl.length - 1].keyHistory;
6759
6762
  this.textArea.style.display = 'block';
@@ -6793,7 +6796,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
6793
6796
  var x = points.x;
6794
6797
  var y = points.y;
6795
6798
  isShape = this.findTargetObj(x, y, isCropSelection);
6796
- this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6799
+ if (!isCropSelection) {
6800
+ this.upperContext.clearRect(0, 0, this.upperCanvas.width, this.upperCanvas.height);
6801
+ }
6797
6802
  if (isTextArea) {
6798
6803
  this.textArea.value = this.objColl[this.objColl.length - 1].keyHistory;
6799
6804
  this.textArea.style.display = 'block';