@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 30.1.37
3
+ * version : 30.1.38
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-image-editor",
3
- "version": "30.1.37",
3
+ "version": "30.1.38",
4
4
  "description": "Essential JS 2 ImageEditor",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,10 +8,10 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-image-editor.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~30.1.37",
11
+ "@syncfusion/ej2-base": "~30.1.38",
12
12
  "@syncfusion/ej2-buttons": "~30.1.37",
13
13
  "@syncfusion/ej2-dropdowns": "~30.1.37",
14
- "@syncfusion/ej2-inputs": "~30.1.37",
14
+ "@syncfusion/ej2-inputs": "~30.1.38",
15
15
  "@syncfusion/ej2-navigations": "~30.1.37",
16
16
  "@syncfusion/ej2-popups": "~30.1.37",
17
17
  "@syncfusion/ej2-splitbuttons": "~30.1.37"
@@ -1605,6 +1605,9 @@ var Selection = /** @class */ (function () {
1605
1605
  endY = destTop + destHeight;
1606
1606
  }
1607
1607
  }
1608
+ if (actPoint.width < 0 && actPoint.height < 0 && this.isCropSelection) {
1609
+ isLimiting = true;
1610
+ }
1608
1611
  if (parent.transform.straighten !== 0) {
1609
1612
  var obj = { isIntersect: null, arr: null };
1610
1613
  parent.notify('draw', { prop: 'updateImgCanvasPoints', onPropertyChange: false });
@@ -2348,7 +2351,7 @@ var Selection = /** @class */ (function () {
2348
2351
  scale = Math.max(width, height);
2349
2352
  var newScale = this.getScaleRatio(scale);
2350
2353
  actPoint.endX += newScale.x;
2351
- actPoint.endY += newScale.x;
2354
+ actPoint.endY += newScale.y;
2352
2355
  if (actPoint.endX > (destLeft + destWidth) ||
2353
2356
  actPoint.endY > (destTop + destHeight)) {
2354
2357
  actPoint.endX -= newScale.x;
@@ -425,7 +425,17 @@ var ToolbarModule = /** @class */ (function () {
425
425
  };
426
426
  ToolbarModule.prototype.reset = function () {
427
427
  var parent = this.parent;
428
- this.toolbarHeight = 46;
428
+ if (isNullOrUndefined(parent.toolbar) || (parent.toolbar && parent.toolbar.length > 0) || parent.toolbarTemplate) {
429
+ if (parent.toolbarTemplate) {
430
+ this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbarArea').clientHeight;
431
+ }
432
+ else {
433
+ this.toolbarHeight = 46;
434
+ }
435
+ }
436
+ else {
437
+ this.toolbarHeight = 0;
438
+ }
429
439
  parent.prevCurrSelectionPoint = null;
430
440
  this.zoomBtnHold = null;
431
441
  this.currToolbar = '';
@@ -417,7 +417,7 @@
417
417
  height: 54px !important; /* stylelint-disable-line declaration-no-important */
418
418
  }
419
419
  .e-image-editor .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn, .e-image-editor .e-blr-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn {
420
- padding: 2px 17px;
420
+ padding: 2px 15px;
421
421
  }
422
422
 
423
423
  .e-ie-straighten-value-span,
@@ -417,7 +417,7 @@
417
417
  height: 54px !important; /* stylelint-disable-line declaration-no-important */
418
418
  }
419
419
  .e-image-editor .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn, .e-image-editor .e-blr-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn {
420
- padding: 2px 17px;
420
+ padding: 2px 15px;
421
421
  }
422
422
 
423
423
  .e-ie-straighten-value-span,
@@ -853,7 +853,7 @@
853
853
  .e-bigger .e-image-editor .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn, .e-bigger .e-image-editor .e-blr-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn,
854
854
  .e-image-editor.e-bigger .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn,
855
855
  .e-image-editor.e-bigger .e-blr-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn {
856
- padding: 3px 14px;
856
+ padding: 3px 10px;
857
857
  }
858
858
  .e-bigger .e-straighten .e-control-wrapper.e-slider-container .e-slider .e-handle {
859
859
  top: calc(50% - 8px) !important; /* stylelint-disable-line declaration-no-important */
@@ -140,7 +140,7 @@
140
140
  padding: 10px;
141
141
  }
142
142
  @if $skin-name == 'highcontrast' {
143
- padding: 3px 14px;
143
+ padding: 3px 10px;
144
144
  }
145
145
  @if $skin-name == 'FluentUI' {
146
146
  padding: 7px 14px;
@@ -178,6 +178,9 @@
178
178
  padding-top: 7.5px;
179
179
  padding-bottom: 7.5px;
180
180
  }
181
+ @if $skin-name == 'Material3' {
182
+ padding: 8px 16px;
183
+ }
181
184
  }
182
185
  }
183
186
  }
@@ -394,7 +397,7 @@
394
397
  padding: 8px 13px;
395
398
  }
396
399
  @if $skin-name == 'highcontrast' {
397
- padding: 2px 17px;
400
+ padding: 2px 15px;
398
401
  }
399
402
  }
400
403
 
@@ -417,7 +417,7 @@
417
417
  height: 54px !important; /* stylelint-disable-line declaration-no-important */
418
418
  }
419
419
  .e-image-editor .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn, .e-image-editor .e-blr-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn {
420
- padding: 2px 17px;
420
+ padding: 2px 15px;
421
421
  }
422
422
 
423
423
  .e-ie-straighten-value-span,
@@ -853,7 +853,7 @@
853
853
  .e-bigger .e-image-editor .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn, .e-bigger .e-image-editor .e-blr-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn,
854
854
  .e-image-editor.e-bigger .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn,
855
855
  .e-image-editor.e-bigger .e-blr-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn {
856
- padding: 3px 14px;
856
+ padding: 3px 10px;
857
857
  }
858
858
  .e-bigger .e-straighten .e-control-wrapper.e-slider-container .e-slider .e-handle {
859
859
  top: calc(50% - 8px) !important; /* stylelint-disable-line declaration-no-important */
@@ -310,6 +310,9 @@
310
310
  .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn .e-icons.e-btn-icon {
311
311
  font-size: 16px;
312
312
  }
313
+ .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-dropdown-btn.e-btn.e-icon-btn {
314
+ padding: 8px 16px;
315
+ }
313
316
  .e-image-editor .e-toolbar .e-toolbar-items .e-upload {
314
317
  border: none;
315
318
  }
@@ -312,6 +312,9 @@
312
312
  .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn .e-icons.e-btn-icon {
313
313
  font-size: 16px;
314
314
  }
315
+ .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-dropdown-btn.e-btn.e-icon-btn {
316
+ padding: 8px 16px;
317
+ }
315
318
  .e-image-editor .e-toolbar .e-toolbar-items .e-upload {
316
319
  border: none;
317
320
  }
@@ -310,6 +310,9 @@
310
310
  .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn .e-icons.e-btn-icon {
311
311
  font-size: 16px;
312
312
  }
313
+ .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-dropdown-btn.e-btn.e-icon-btn {
314
+ padding: 8px 16px;
315
+ }
313
316
  .e-image-editor .e-toolbar .e-toolbar-items .e-upload {
314
317
  border: none;
315
318
  }
@@ -310,6 +310,9 @@
310
310
  .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn .e-icons.e-btn-icon {
311
311
  font-size: 16px;
312
312
  }
313
+ .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-dropdown-btn.e-btn.e-icon-btn {
314
+ padding: 8px 16px;
315
+ }
313
316
  .e-image-editor .e-toolbar .e-toolbar-items .e-upload {
314
317
  border: none;
315
318
  }
@@ -312,6 +312,9 @@
312
312
  .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn .e-icons.e-btn-icon {
313
313
  font-size: 16px;
314
314
  }
315
+ .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-dropdown-btn.e-btn.e-icon-btn {
316
+ padding: 8px 16px;
317
+ }
315
318
  .e-image-editor .e-toolbar .e-toolbar-items .e-upload {
316
319
  border: none;
317
320
  }
@@ -312,6 +312,9 @@
312
312
  .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn .e-icons.e-btn-icon {
313
313
  font-size: 16px;
314
314
  }
315
+ .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-dropdown-btn.e-btn.e-icon-btn {
316
+ padding: 8px 16px;
317
+ }
315
318
  .e-image-editor .e-toolbar .e-toolbar-items .e-upload {
316
319
  border: none;
317
320
  }