@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.
@@ -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
  }
@@ -19990,7 +19994,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
19990
19994
  var content = '';
19991
19995
  this.element.querySelector('#' + this.element.id + '_dialog').style.display = 'block';
19992
19996
  var headerObj;
19993
- var okObj = { key: 'OK' };
19997
+ var okObj = { key: 'DlgOK' };
19994
19998
  this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: okObj } });
19995
19999
  if (type === 'multi-select-image') {
19996
20000
  headerObj = { key: 'ImageErrorDialogHeader' };
@@ -20019,7 +20023,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20019
20023
  close: this.dlgCloseBtnClick.bind(this),
20020
20024
  buttons: [
20021
20025
  { click: this.dlgCloseBtnClick.bind(this),
20022
- buttonModel: { content: okObj['value'], iconCss: 'e-icons e-close' }
20026
+ buttonModel: { content: okObj['value'] }
20023
20027
  }
20024
20028
  ]
20025
20029
  });
@@ -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' };
@@ -23287,13 +23292,14 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
23287
23292
  ConfirmDialogHeader: 'Confirm Save Changes',
23288
23293
  ConfirmDialogContent: 'Do you want to save the changes you made to the image?',
23289
23294
  AlertDialogHeader: 'Unsupported file',
23290
- AlertDialogContent: 'The dropped file is unsupported.',
23295
+ AlertDialogContent: 'The selected file is unsupported.',
23291
23296
  Yes: 'Yes',
23292
23297
  No: 'No',
23293
23298
  ImageErrorDialogHeader: 'Image Selection Error',
23294
23299
  ImageErrorDialogContent: 'Please select only one image to open.',
23295
23300
  Straighten: 'Straighten',
23296
23301
  NoOutline: 'No outline',
23302
+ DlgOK: 'OK'
23297
23303
  };
23298
23304
  this.l10n = new L10n('image-editor', this.defaultLocale, this.parent.locale);
23299
23305
  };