@syncfusion/ej2-image-editor 25.1.38 → 25.1.40

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
  }
@@ -19930,7 +19934,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
19930
19934
  let content = '';
19931
19935
  this.element.querySelector('#' + this.element.id + '_dialog').style.display = 'block';
19932
19936
  let headerObj;
19933
- const okObj = { key: 'OK' };
19937
+ const okObj = { key: 'DlgOK' };
19934
19938
  this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: okObj } });
19935
19939
  if (type === 'multi-select-image') {
19936
19940
  headerObj = { key: 'ImageErrorDialogHeader' };
@@ -19959,7 +19963,7 @@ let ImageEditor = ImageEditor_1 = class ImageEditor extends Component {
19959
19963
  close: this.dlgCloseBtnClick.bind(this),
19960
19964
  buttons: [
19961
19965
  { click: this.dlgCloseBtnClick.bind(this),
19962
- buttonModel: { content: okObj['value'], iconCss: 'e-icons e-close' }
19966
+ buttonModel: { content: okObj['value'] }
19963
19967
  }
19964
19968
  ]
19965
19969
  });
@@ -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' };
@@ -23225,13 +23230,14 @@ class ToolbarModule {
23225
23230
  ConfirmDialogHeader: 'Confirm Save Changes',
23226
23231
  ConfirmDialogContent: 'Do you want to save the changes you made to the image?',
23227
23232
  AlertDialogHeader: 'Unsupported file',
23228
- AlertDialogContent: 'The dropped file is unsupported.',
23233
+ AlertDialogContent: 'The selected file is unsupported.',
23229
23234
  Yes: 'Yes',
23230
23235
  No: 'No',
23231
23236
  ImageErrorDialogHeader: 'Image Selection Error',
23232
23237
  ImageErrorDialogContent: 'Please select only one image to open.',
23233
23238
  Straighten: 'Straighten',
23234
23239
  NoOutline: 'No outline',
23240
+ DlgOK: 'OK'
23235
23241
  };
23236
23242
  this.l10n = new L10n('image-editor', this.defaultLocale, this.parent.locale);
23237
23243
  }