@syncfusion/ej2-image-editor 25.1.38 → 25.1.39

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 : 25.1.38
3
+ * version : 25.1.39
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@25.1.37",
3
+ "_id": "@syncfusion/ej2-image-editor@25.1.38",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-k5viiMPSSZkFq+Ur5QJcKly3iE73p7Jew5PXHnHJR3B0lB6GBEev/A7TNwPF8+65AKjpK4NiMrdhliQptSyctg==",
5
+ "_integrity": "sha512-X2EocZP+w7YICz06hF1pi8Es3eRTIbYWVztXRVQZ49YCDZJ3E6t49d5q0oskE/0qHPuWZizMXjdG1m6YaSDALA==",
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-25.1.37.tgz",
27
- "_shasum": "25d63005eaf646b526c90f9b4edfb8213a0fe7eb",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-25.1.38.tgz",
27
+ "_shasum": "c691770cca2b120b6933b6a59a64985a5f15ae2d",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
30
30
  "author": {
@@ -33,10 +33,10 @@
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
35
  "@syncfusion/ej2-base": "~25.1.35",
36
- "@syncfusion/ej2-buttons": "~25.1.35",
36
+ "@syncfusion/ej2-buttons": "~25.1.39",
37
37
  "@syncfusion/ej2-inputs": "~25.1.38",
38
- "@syncfusion/ej2-navigations": "~25.1.38",
39
- "@syncfusion/ej2-popups": "~25.1.38",
38
+ "@syncfusion/ej2-navigations": "~25.1.39",
39
+ "@syncfusion/ej2-popups": "~25.1.39",
40
40
  "@syncfusion/ej2-splitbuttons": "~25.1.38"
41
41
  },
42
42
  "deprecated": false,
@@ -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": "25.1.38",
70
+ "version": "25.1.39",
71
71
  "sideEffects": false,
72
72
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
73
73
  }
@@ -2132,6 +2132,7 @@ var Shape = /** @class */ (function () {
2132
2132
  var shapeChangingArgs = { cancel: false, action: 'insert', previousShapeSettings: shapeSettings,
2133
2133
  currentShapeSettings: shapeSettings };
2134
2134
  parent.trigger('shapeChanging', shapeChangingArgs);
2135
+ isSelect = isSelect ? isSelect : isSelected;
2135
2136
  this.drawShapeImageEvent(shapeChangingArgs, isSelect);
2136
2137
  if (parent.isPublicMethod && !isSelected) {
2137
2138
  parent.notify('undo-redo', { prop: 'updateUndoRedo', onPropertyChange: false });
@@ -1467,6 +1467,9 @@ var Transform = /** @class */ (function () {
1467
1467
  if (x || y) {
1468
1468
  x = x ? x : 0;
1469
1469
  y = y ? y : 0;
1470
+ if (isNullOrUndefined(this.panMove)) {
1471
+ this.panMove = { x: x, y: y };
1472
+ }
1470
1473
  if (isNullOrUndefined(this.tempPanMove)) {
1471
1474
  this.tempPanMove = { x: this.panMove.x, y: this.panMove.y };
1472
1475
  }
@@ -2121,7 +2121,7 @@ var ImageEditor = /** @class */ (function (_super) {
2121
2121
  this.notify('toolbar', { prop: 'destroy-qa-toolbar' });
2122
2122
  this.notify('undo-redo', { prop: 'updateCurrUrc', value: { type: 'ok' } });
2123
2123
  }
2124
- else if ((this.activeObj.activePoint.width !== 0 && this.activeObj.activePoint.height !== 0) ||
2124
+ else if ((this.activeObj.activePoint.width !== 0 || this.activeObj.activePoint.height !== 0) ||
2125
2125
  (this.activeObj.shape === 'path' && this.activeObj.pointColl.length > 0)) {
2126
2126
  if (this.activeObj.shape === 'image') {
2127
2127
  this.notify('draw', { prop: 'setImageApply', onPropertyChange: false, value: { bool: true } });
@@ -2282,6 +2282,7 @@ var ImageEditor = /** @class */ (function (_super) {
2282
2282
  * An string which returns the SelectionType.
2283
2283
  */
2284
2284
  ImageEditor.prototype.getSelectionType = function (type) {
2285
+ type = type === 'crop-custom' ? 'CropCustom' : type;
2285
2286
  var typeToSelectionType = { 'CropCustom': 'Custom', 'CropSquare': 'Square', 'CropCircle': 'Circle',
2286
2287
  'Crop3:2': '3:2', 'Crop4:3': '4:3', 'Crop5:4': '5:4', 'Crop7:5': '7:5', 'Crop16:9': '16:9',
2287
2288
  'Crop2:3': '2:3', 'Crop3:4': '3:4', 'Crop4:5': '4:5', 'Crop5:7': '5:7', 'Crop9:16': '9:16' };