@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.
@@ -14974,6 +14974,7 @@ class Shape {
14974
14974
  const shapeChangingArgs = { cancel: false, action: 'insert', previousShapeSettings: shapeSettings,
14975
14975
  currentShapeSettings: shapeSettings };
14976
14976
  parent.trigger('shapeChanging', shapeChangingArgs);
14977
+ isSelect = isSelect ? isSelect : isSelected;
14977
14978
  this.drawShapeImageEvent(shapeChangingArgs, isSelect);
14978
14979
  if (parent.isPublicMethod && !isSelected) {
14979
14980
  parent.notify('undo-redo', { prop: 'updateUndoRedo', onPropertyChange: false });
@@ -17648,6 +17649,9 @@ class Transform {
17648
17649
  if (x || y) {
17649
17650
  x = x ? x : 0;
17650
17651
  y = y ? y : 0;
17652
+ if (isNullOrUndefined(this.panMove)) {
17653
+ this.panMove = { x: x, y: y };
17654
+ }
17651
17655
  if (isNullOrUndefined(this.tempPanMove)) {
17652
17656
  this.tempPanMove = { x: this.panMove.x, y: this.panMove.y };
17653
17657
  }
@@ -21476,7 +21480,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
21476
21480
  this.notify('toolbar', { prop: 'destroy-qa-toolbar' });
21477
21481
  this.notify('undo-redo', { prop: 'updateCurrUrc', value: { type: 'ok' } });
21478
21482
  }
21479
- else if ((this.activeObj.activePoint.width !== 0 && this.activeObj.activePoint.height !== 0) ||
21483
+ else if ((this.activeObj.activePoint.width !== 0 || this.activeObj.activePoint.height !== 0) ||
21480
21484
  (this.activeObj.shape === 'path' && this.activeObj.pointColl.length > 0)) {
21481
21485
  if (this.activeObj.shape === 'image') {
21482
21486
  this.notify('draw', { prop: 'setImageApply', onPropertyChange: false, value: { bool: true } });
@@ -21637,6 +21641,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
21637
21641
  * An string which returns the SelectionType.
21638
21642
  */
21639
21643
  getSelectionType(type) {
21644
+ type = type === 'crop-custom' ? 'CropCustom' : type;
21640
21645
  const typeToSelectionType = { 'CropCustom': 'Custom', 'CropSquare': 'Square', 'CropCircle': 'Circle',
21641
21646
  'Crop3:2': '3:2', 'Crop4:3': '4:3', 'Crop5:4': '5:4', 'Crop7:5': '7:5', 'Crop16:9': '16:9',
21642
21647
  'Crop2:3': '2:3', 'Crop3:4': '3:4', 'Crop4:5': '4:5', 'Crop5:7': '5:7', 'Crop9:16': '9:16' };