@syncfusion/ej2-image-editor 30.1.37 → 30.2.4

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.
@@ -10524,6 +10524,9 @@ class Selection {
10524
10524
  endY = destTop + destHeight;
10525
10525
  }
10526
10526
  }
10527
+ if (actPoint.width < 0 && actPoint.height < 0 && this.isCropSelection) {
10528
+ isLimiting = true;
10529
+ }
10527
10530
  if (parent.transform.straighten !== 0) {
10528
10531
  const obj = { isIntersect: null, arr: null };
10529
10532
  parent.notify('draw', { prop: 'updateImgCanvasPoints', onPropertyChange: false });
@@ -11267,7 +11270,7 @@ class Selection {
11267
11270
  scale = Math.max(width, height);
11268
11271
  const newScale = this.getScaleRatio(scale);
11269
11272
  actPoint.endX += newScale.x;
11270
- actPoint.endY += newScale.x;
11273
+ actPoint.endY += newScale.y;
11271
11274
  if (actPoint.endX > (destLeft + destWidth) ||
11272
11275
  actPoint.endY > (destTop + destHeight)) {
11273
11276
  actPoint.endX -= newScale.x;
@@ -27959,7 +27962,17 @@ class ToolbarModule {
27959
27962
  }
27960
27963
  reset() {
27961
27964
  const parent = this.parent;
27962
- this.toolbarHeight = 46;
27965
+ if (isNullOrUndefined(parent.toolbar) || (parent.toolbar && parent.toolbar.length > 0) || parent.toolbarTemplate) {
27966
+ if (parent.toolbarTemplate) {
27967
+ this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbarArea').clientHeight;
27968
+ }
27969
+ else {
27970
+ this.toolbarHeight = 46;
27971
+ }
27972
+ }
27973
+ else {
27974
+ this.toolbarHeight = 0;
27975
+ }
27963
27976
  parent.prevCurrSelectionPoint = null;
27964
27977
  this.zoomBtnHold = null;
27965
27978
  this.currToolbar = '';