@syncfusion/ej2-image-editor 23.2.4 → 23.2.5

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 : 23.2.4
3
+ * version : 23.2.5
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-image-editor@*",
3
- "_id": "@syncfusion/ej2-image-editor@23.1.43",
3
+ "_id": "@syncfusion/ej2-image-editor@23.2.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-5GOJdoi+vGksohDCzagLur1GQpWE6ZDNsm62D4TdX6aAltWilC1Z3BgWgOt4ZnJQka37BV8iZxb0krr05wPv0Q==",
5
+ "_integrity": "sha512-I4as+N/x0dKzKJU//hvvuAqcU1Ux9TWdDtsSEHiYqtDL4e2pmY5sF+1l+dp/ZAIy7/qVC/okaEP/i9LNDJqciQ==",
6
6
  "_location": "/@syncfusion/ej2-image-editor",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-image-editor",
24
24
  "/@syncfusion/ej2-vue-image-editor"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-23.1.43.tgz",
27
- "_shasum": "6bbaed2aa3e4311d0b039d348c6b4c4f40d011a6",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-23.2.4.tgz",
27
+ "_shasum": "8cb435fac82ccfec5a3cba0a7d86d2eaa11ef074",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
30
30
  "author": {
@@ -35,7 +35,7 @@
35
35
  "@syncfusion/ej2-base": "~23.2.4",
36
36
  "@syncfusion/ej2-buttons": "~23.2.4",
37
37
  "@syncfusion/ej2-inputs": "~23.2.4",
38
- "@syncfusion/ej2-navigations": "~23.2.4",
38
+ "@syncfusion/ej2-navigations": "~23.2.5",
39
39
  "@syncfusion/ej2-popups": "~23.2.4",
40
40
  "@syncfusion/ej2-splitbuttons": "~23.2.4"
41
41
  },
@@ -67,7 +67,7 @@
67
67
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
68
68
  },
69
69
  "typings": "index.d.ts",
70
- "version": "23.2.4",
70
+ "version": "23.2.5",
71
71
  "sideEffects": false,
72
72
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
73
73
  }
@@ -41,6 +41,7 @@ export declare class Transform {
41
41
  private updateFlipColl;
42
42
  private setDestPointsForFlipState;
43
43
  private zoomAction;
44
+ private getZoomTriggerType;
44
45
  private zoomEvent;
45
46
  private disableZoomOutBtn;
46
47
  private drawZoomImgToCanvas;
@@ -680,7 +680,9 @@ var Transform = /** @class */ (function () {
680
680
  var previousZoomFactor = parent.zoomSettings.zoomFactor - (zoomFactor * 10);
681
681
  var zoomEventArgs = { zoomPoint: zoomPoint, cancel: false, previousZoomFactor: previousZoomFactor,
682
682
  currentZoomFactor: parent.zoomSettings.zoomFactor, zoomTrigger: obj['zoomType'] };
683
- if (!parent.isCropToolbar && isBlazor() && parent.events && parent.events.zooming.hasDelegate === true) {
683
+ if (isBlazor() && !parent.isCropToolbar && parent.currentToolbar !== 'resize-toolbar' && parent.currentToolbar !== 'frame-toolbar'
684
+ && parent.events && parent.events.zooming.hasDelegate === true) {
685
+ zoomEventArgs.zoomTrigger = parseInt(this.getZoomTriggerType(zoomEventArgs.zoomTrigger));
684
686
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
685
687
  parent.dotNetRef.invokeMethodAsync('ZoomEventAsync', 'OnZoom', zoomEventArgs).then(function (args) {
686
688
  _this.zoomEvent(args, zoomFactor);
@@ -694,6 +696,18 @@ var Transform = /** @class */ (function () {
694
696
  }
695
697
  }
696
698
  };
699
+ Transform.prototype.getZoomTriggerType = function (type) {
700
+ switch (type) {
701
+ case 'MouseWheel':
702
+ return '1';
703
+ case 'Pinch':
704
+ return '2';
705
+ case 'Commands':
706
+ return '4';
707
+ default:
708
+ return '8';
709
+ }
710
+ };
697
711
  Transform.prototype.zoomEvent = function (zoomEventArgs, zoomFactor) {
698
712
  var parent = this.parent;
699
713
  if (zoomEventArgs.cancel) {
@@ -2175,7 +2189,9 @@ var Transform = /** @class */ (function () {
2175
2189
  Transform.prototype.resizeEventHandler = function (args) {
2176
2190
  var parent = this.parent;
2177
2191
  var isRotate;
2192
+ var aspectRatioWidth = parent.element.querySelector('#' + parent.element.id + '_resizeWidth');
2178
2193
  var aspectRatioHeight = parent.element.querySelector('#' + parent.element.id + '_resizeHeight');
2194
+ var widthElem = parent.element.querySelector(".e-ie-toolbar-e-resize-width-input .e-numerictextbox");
2179
2195
  var heightElem = parent.element.querySelector(".e-ie-toolbar-e-resize-height-input .e-numerictextbox");
2180
2196
  if (args.isAspectRatio) {
2181
2197
  if (this.resizedImgAngle == null || this.resizedImgAngle !== parent.transform.degree) {
@@ -2188,10 +2204,19 @@ var Transform = /** @class */ (function () {
2188
2204
  getComponent(aspectRatioHeight, 'numerictextbox').value = Math.floor(parent.img.destHeight);
2189
2205
  aspectRatioHeight.value = Math.floor(parent.img.destHeight).toString() + ' px';
2190
2206
  parent.aspectHeight = Math.floor(parent.img.destHeight);
2207
+ if (aspectRatioWidth && aspectRatioWidth.value === '') {
2208
+ getComponent(aspectRatioWidth, 'numerictextbox').value = Math.floor(parent.img.destWidth);
2209
+ aspectRatioWidth.value = Math.floor(parent.img.destWidth).toString() + ' px';
2210
+ parent.aspectWidth = Math.floor(parent.img.destWidth);
2211
+ }
2191
2212
  }
2192
2213
  else if (heightElem) {
2193
2214
  heightElem.value = Math.floor(parent.img.destHeight).toString();
2194
2215
  parent.aspectHeight = Math.floor(parent.img.destHeight);
2216
+ if (widthElem && widthElem.value === '') {
2217
+ widthElem.value = Math.floor(parent.img.destWidth).toString();
2218
+ parent.aspectWidth = Math.floor(parent.img.destWidth);
2219
+ }
2195
2220
  }
2196
2221
  }
2197
2222
  else {