@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.
@@ -14991,6 +14991,7 @@ var Shape = /** @__PURE__ @class */ (function () {
14991
14991
  var shapeChangingArgs = { cancel: false, action: 'insert', previousShapeSettings: shapeSettings,
14992
14992
  currentShapeSettings: shapeSettings };
14993
14993
  parent.trigger('shapeChanging', shapeChangingArgs);
14994
+ isSelect = isSelect ? isSelect : isSelected;
14994
14995
  this.drawShapeImageEvent(shapeChangingArgs, isSelect);
14995
14996
  if (parent.isPublicMethod && !isSelected) {
14996
14997
  parent.notify('undo-redo', { prop: 'updateUndoRedo', onPropertyChange: false });
@@ -17668,6 +17669,9 @@ var Transform = /** @__PURE__ @class */ (function () {
17668
17669
  if (x || y) {
17669
17670
  x = x ? x : 0;
17670
17671
  y = y ? y : 0;
17672
+ if (isNullOrUndefined(this.panMove)) {
17673
+ this.panMove = { x: x, y: y };
17674
+ }
17671
17675
  if (isNullOrUndefined(this.tempPanMove)) {
17672
17676
  this.tempPanMove = { x: this.panMove.x, y: this.panMove.y };
17673
17677
  }
@@ -21536,7 +21540,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
21536
21540
  this.notify('toolbar', { prop: 'destroy-qa-toolbar' });
21537
21541
  this.notify('undo-redo', { prop: 'updateCurrUrc', value: { type: 'ok' } });
21538
21542
  }
21539
- else if ((this.activeObj.activePoint.width !== 0 && this.activeObj.activePoint.height !== 0) ||
21543
+ else if ((this.activeObj.activePoint.width !== 0 || this.activeObj.activePoint.height !== 0) ||
21540
21544
  (this.activeObj.shape === 'path' && this.activeObj.pointColl.length > 0)) {
21541
21545
  if (this.activeObj.shape === 'image') {
21542
21546
  this.notify('draw', { prop: 'setImageApply', onPropertyChange: false, value: { bool: true } });
@@ -21697,6 +21701,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
21697
21701
  * An string which returns the SelectionType.
21698
21702
  */
21699
21703
  ImageEditor.prototype.getSelectionType = function (type) {
21704
+ type = type === 'crop-custom' ? 'CropCustom' : type;
21700
21705
  var typeToSelectionType = { 'CropCustom': 'Custom', 'CropSquare': 'Square', 'CropCircle': 'Circle',
21701
21706
  'Crop3:2': '3:2', 'Crop4:3': '4:3', 'Crop5:4': '5:4', 'Crop7:5': '7:5', 'Crop16:9': '16:9',
21702
21707
  'Crop2:3': '2:3', 'Crop3:4': '3:4', 'Crop4:5': '4:5', 'Crop5:7': '5:7', 'Crop9:16': '9:16' };