@syncfusion/ej2-image-editor 30.1.37 → 30.1.38

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.
@@ -10596,6 +10596,9 @@ var Selection = /** @__PURE__ @class */ (function () {
10596
10596
  endY = destTop + destHeight;
10597
10597
  }
10598
10598
  }
10599
+ if (actPoint.width < 0 && actPoint.height < 0 && this.isCropSelection) {
10600
+ isLimiting = true;
10601
+ }
10599
10602
  if (parent.transform.straighten !== 0) {
10600
10603
  var obj = { isIntersect: null, arr: null };
10601
10604
  parent.notify('draw', { prop: 'updateImgCanvasPoints', onPropertyChange: false });
@@ -11339,7 +11342,7 @@ var Selection = /** @__PURE__ @class */ (function () {
11339
11342
  scale = Math.max(width, height);
11340
11343
  var newScale = this.getScaleRatio(scale);
11341
11344
  actPoint.endX += newScale.x;
11342
- actPoint.endY += newScale.x;
11345
+ actPoint.endY += newScale.y;
11343
11346
  if (actPoint.endX > (destLeft + destWidth) ||
11344
11347
  actPoint.endY > (destTop + destHeight)) {
11345
11348
  actPoint.endX -= newScale.x;
@@ -28088,7 +28091,17 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
28088
28091
  };
28089
28092
  ToolbarModule.prototype.reset = function () {
28090
28093
  var parent = this.parent;
28091
- this.toolbarHeight = 46;
28094
+ if (isNullOrUndefined(parent.toolbar) || (parent.toolbar && parent.toolbar.length > 0) || parent.toolbarTemplate) {
28095
+ if (parent.toolbarTemplate) {
28096
+ this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbarArea').clientHeight;
28097
+ }
28098
+ else {
28099
+ this.toolbarHeight = 46;
28100
+ }
28101
+ }
28102
+ else {
28103
+ this.toolbarHeight = 0;
28104
+ }
28092
28105
  parent.prevCurrSelectionPoint = null;
28093
28106
  this.zoomBtnHold = null;
28094
28107
  this.currToolbar = '';