@syncfusion/ej2-image-editor 23.1.36 → 23.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/ej2-image-editor.umd.min.js +3 -3
  3. package/dist/ej2-image-editor.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-image-editor.es2015.js +249 -31
  5. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  6. package/dist/es6/ej2-image-editor.es5.js +266 -48
  7. package/dist/es6/ej2-image-editor.es5.js.map +1 -1
  8. package/dist/global/ej2-image-editor.min.js +3 -3
  9. package/dist/global/ej2-image-editor.min.js.map +1 -1
  10. package/dist/global/index.d.ts +2 -2
  11. package/package.json +10 -10
  12. package/src/image-editor/action/draw.js +5 -1
  13. package/src/image-editor/action/freehand-draw.d.ts +1 -0
  14. package/src/image-editor/action/freehand-draw.js +53 -26
  15. package/src/image-editor/action/selection.js +38 -3
  16. package/src/image-editor/action/shape.js +33 -16
  17. package/src/image-editor/base/enum.d.ts +28 -1
  18. package/src/image-editor/base/enum.js +27 -0
  19. package/src/image-editor/base/image-editor-model.d.ts +1 -1
  20. package/src/image-editor/base/image-editor.d.ts +8 -0
  21. package/src/image-editor/base/image-editor.js +110 -3
  22. package/src/image-editor/renderer/toolbar.js +1 -0
  23. package/styles/bootstrap-dark.css +5 -0
  24. package/styles/bootstrap.css +5 -0
  25. package/styles/bootstrap4.css +5 -0
  26. package/styles/bootstrap5-dark.css +5 -0
  27. package/styles/bootstrap5.css +5 -0
  28. package/styles/fabric-dark.css +5 -0
  29. package/styles/fabric.css +5 -0
  30. package/styles/fluent-dark.css +5 -0
  31. package/styles/fluent.css +5 -0
  32. package/styles/highcontrast-light.css +5 -0
  33. package/styles/highcontrast.css +5 -0
  34. package/styles/image-editor/_layout.scss +6 -0
  35. package/styles/image-editor/bootstrap-dark.css +5 -0
  36. package/styles/image-editor/bootstrap.css +5 -0
  37. package/styles/image-editor/bootstrap4.css +5 -0
  38. package/styles/image-editor/bootstrap5-dark.css +5 -0
  39. package/styles/image-editor/bootstrap5.css +5 -0
  40. package/styles/image-editor/fabric-dark.css +5 -0
  41. package/styles/image-editor/fabric.css +5 -0
  42. package/styles/image-editor/fluent-dark.css +5 -0
  43. package/styles/image-editor/fluent.css +5 -0
  44. package/styles/image-editor/highcontrast-light.css +5 -0
  45. package/styles/image-editor/highcontrast.css +5 -0
  46. package/styles/image-editor/material-dark.css +5 -0
  47. package/styles/image-editor/material.css +5 -0
  48. package/styles/image-editor/material3-dark.css +5 -0
  49. package/styles/image-editor/material3.css +5 -0
  50. package/styles/image-editor/tailwind-dark.css +5 -0
  51. package/styles/image-editor/tailwind.css +5 -0
  52. package/styles/material-dark.css +5 -0
  53. package/styles/material.css +5 -0
  54. package/styles/material3-dark.css +5 -0
  55. package/styles/material3.css +5 -0
  56. package/styles/tailwind-dark.css +5 -0
  57. package/styles/tailwind.css +5 -0
@@ -4292,7 +4292,11 @@ var Draw = /** @__PURE__ @class */ (function () {
4292
4292
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
4293
4293
  filesData = fileData = args.filesData[0].rawFile;
4294
4294
  }
4295
- var fileExtension = fileData.name && fileData.name.split('.')[1].toLowerCase();
4295
+ var fileExtension = void 0;
4296
+ if (fileData.name) {
4297
+ var fileExtensionArray = fileData.name.split('.');
4298
+ fileExtension = fileExtensionArray[fileExtensionArray.length - 1].toLowerCase();
4299
+ }
4296
4300
  if (fileExtension && ['jpg', 'jpeg', 'png', 'svg'].indexOf(fileExtension) === -1) {
4297
4301
  this.errorLoading();
4298
4302
  return;
@@ -6264,6 +6268,13 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
6264
6268
  }
6265
6269
  this.isFreehandPointMoved = false;
6266
6270
  EventHandler.add(canvas, 'mousemove touchmove', this.freehandMoveHandler, this);
6271
+ var shapeSettings = { id: 'pen_' + (this.currFHDIdx + 1), type: ShapeType.FreehandDraw,
6272
+ startX: this.freehandDownPoint.x, startY: this.freehandDownPoint.y,
6273
+ strokeColor: this.parent.activeObj.strokeSettings.strokeColor, strokeWidth: this.penStrokeWidth,
6274
+ points: null };
6275
+ var shapeChangingArgs = { action: 'draw-start', previousShapeSettings: shapeSettings,
6276
+ currentShapeSettings: shapeSettings };
6277
+ this.triggerShapeChanging(shapeChangingArgs);
6267
6278
  };
6268
6279
  FreehandDrawing.prototype.freehandUpHandler = function (e, canvas, context) {
6269
6280
  var rect = canvas.getBoundingClientRect();
@@ -6308,13 +6319,20 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
6308
6319
  this.selPoints = [];
6309
6320
  this.pointCounter = 0;
6310
6321
  parent.freehandCounter++;
6311
- this.currFHDIdx++;
6312
6322
  this.isFreehandDrawing = false;
6313
6323
  parent.notify('undo-redo', { prop: 'updateUndoRedoColl', onPropertyChange: false,
6314
6324
  value: { operation: 'freehand-draw', previousObj: prevObj, previousObjColl: prevObj.objColl,
6315
6325
  previousPointColl: prevObj.pointColl, previousSelPointColl: prevObj.selPointColl,
6316
6326
  previousCropObj: prevCropObj, previousText: null,
6317
6327
  currentText: null, previousFilter: null, isCircleCrop: null } });
6328
+ var shapeSettings = { id: 'pen_' + (this.currFHDIdx + 1), type: ShapeType.FreehandDraw,
6329
+ startX: this.freehandDownPoint.x, startY: this.freehandDownPoint.y,
6330
+ strokeColor: this.parent.activeObj.strokeSettings.strokeColor, strokeWidth: this.penStrokeWidth,
6331
+ points: this.parent.pointColl[this.currFHDIdx].points };
6332
+ var shapeChangingArgs = { action: 'draw-end', previousShapeSettings: shapeSettings,
6333
+ currentShapeSettings: shapeSettings };
6334
+ this.triggerShapeChanging(shapeChangingArgs);
6335
+ this.currFHDIdx++;
6318
6336
  };
6319
6337
  FreehandDrawing.prototype.freehandMoveHandler = function (e) {
6320
6338
  this.isFreehandPointMoved = true;
@@ -6330,6 +6348,7 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
6330
6348
  y = e.touches[0].clientY - rect.top;
6331
6349
  }
6332
6350
  if (this.isFreehandDrawing) {
6351
+ this.upperContext.fillStyle = this.parent.activeObj.strokeSettings.strokeColor;
6333
6352
  this.processPoint(x, y, false, this.upperContext);
6334
6353
  }
6335
6354
  };
@@ -6650,7 +6669,6 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
6650
6669
  }
6651
6670
  };
6652
6671
  FreehandDrawing.prototype.selectFhd = function (index) {
6653
- var _this = this;
6654
6672
  var parent = this.parent;
6655
6673
  parent.notify('selection', { prop: 'setFreehandDrawEditing', onPropertyChange: false, value: { bool: true } });
6656
6674
  if (index || index === 0) {
@@ -6681,30 +6699,7 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
6681
6699
  points: parent.pointColl[this.fhdSelIdx].points };
6682
6700
  var shapeChangingArgs = { action: 'select', previousShapeSettings: shapeSettings,
6683
6701
  currentShapeSettings: shapeSettings };
6684
- if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
6685
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
6686
- parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs).then(function (shapeChangingArgs) {
6687
- parent.activeObj.strokeSettings.strokeColor = parent.pointColl[_this.fhdSelIdx].strokeColor =
6688
- shapeChangingArgs.currentShapeSettings.strokeColor;
6689
- parent.activeObj.strokeSettings.strokeWidth = parent.pointColl[_this.fhdSelIdx].strokeWidth =
6690
- shapeChangingArgs.currentShapeSettings.strokeWidth;
6691
- parent.pointColl[_this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
6692
- _this.freehandRedraw(_this.upperContext);
6693
- parent.updateToolbar(parent.element, 'imageLoaded');
6694
- parent.updateToolbar(parent.element, 'pen');
6695
- });
6696
- }
6697
- else {
6698
- parent.trigger('shapeChanging', shapeChangingArgs);
6699
- parent.activeObj.strokeSettings.strokeColor = parent.pointColl[this.fhdSelIdx].strokeColor =
6700
- shapeChangingArgs.currentShapeSettings.strokeColor;
6701
- parent.activeObj.strokeSettings.strokeWidth = parent.pointColl[this.fhdSelIdx].strokeWidth =
6702
- shapeChangingArgs.currentShapeSettings.strokeWidth;
6703
- parent.pointColl[this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
6704
- this.freehandRedraw(this.upperContext);
6705
- parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'pen',
6706
- isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
6707
- }
6702
+ this.triggerShapeChanging(shapeChangingArgs);
6708
6703
  }
6709
6704
  else {
6710
6705
  parent.okBtn();
@@ -7084,6 +7079,42 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
7084
7079
  }
7085
7080
  }
7086
7081
  };
7082
+ FreehandDrawing.prototype.triggerShapeChanging = function (shapeChangingArgs) {
7083
+ var _this = this;
7084
+ var parent = this.parent;
7085
+ if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
7086
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
7087
+ parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs).then(function (shapeChangingArgs) {
7088
+ parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
7089
+ _this.penStrokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
7090
+ if (_this.fhdSelID) {
7091
+ parent.pointColl[_this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
7092
+ parent.pointColl[_this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
7093
+ parent.pointColl[_this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
7094
+ }
7095
+ if (shapeChangingArgs.action === 'select') {
7096
+ _this.freehandRedraw(_this.upperContext);
7097
+ parent.updateToolbar(parent.element, 'imageLoaded');
7098
+ parent.updateToolbar(parent.element, 'pen');
7099
+ }
7100
+ });
7101
+ }
7102
+ else {
7103
+ parent.trigger('shapeChanging', shapeChangingArgs);
7104
+ parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
7105
+ this.penStrokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
7106
+ if (this.fhdSelID) {
7107
+ parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
7108
+ parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
7109
+ parent.pointColl[this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
7110
+ }
7111
+ if (shapeChangingArgs.action === 'select') {
7112
+ this.freehandRedraw(this.upperContext);
7113
+ parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'pen',
7114
+ isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
7115
+ }
7116
+ }
7117
+ };
7087
7118
  return FreehandDrawing;
7088
7119
  }());
7089
7120
 
@@ -7343,6 +7374,9 @@ var Selection = /** @__PURE__ @class */ (function () {
7343
7374
  case 'upgradeImageQuality':
7344
7375
  this.upgradeImageQuality();
7345
7376
  break;
7377
+ case 'triggerShapeChange':
7378
+ this.triggerShapeChange(args.value['shapeResizingArgs'], args.value['shapeMovingArgs'], args.value['type']);
7379
+ break;
7346
7380
  }
7347
7381
  };
7348
7382
  Selection.prototype.getModuleName = function () {
@@ -8165,8 +8199,14 @@ var Selection = /** @__PURE__ @class */ (function () {
8165
8199
  parent.activeObj.activePoint.width = parent.activeObj.activePoint.endX - parent.activeObj.activePoint.startX;
8166
8200
  parent.activeObj.activePoint.height = parent.activeObj.activePoint.endY - parent.activeObj.activePoint.startY;
8167
8201
  var currentShapeSettings = this.updatePrevShapeSettings();
8168
- shapeResizingArgs.currentShapeSettings = this.shapeResizingArgs.currentShapeSettings = currentShapeSettings;
8169
- shapeMovingArgs.currentShapeSettings = this.shapeMovingArgs.currentShapeSettings = currentShapeSettings;
8202
+ if (!isNullOrUndefined(this.shapeResizingArgs) && !isNullOrUndefined(this.shapeMovingArgs)) {
8203
+ shapeResizingArgs.currentShapeSettings = this.shapeResizingArgs.currentShapeSettings = currentShapeSettings;
8204
+ shapeMovingArgs.currentShapeSettings = this.shapeMovingArgs.currentShapeSettings = currentShapeSettings;
8205
+ }
8206
+ else {
8207
+ shapeResizingArgs.currentShapeSettings = currentShapeSettings;
8208
+ shapeMovingArgs.currentShapeSettings = currentShapeSettings;
8209
+ }
8170
8210
  if (type === 'resize') {
8171
8211
  this.isCropSelection = false;
8172
8212
  var splitWords = void 0;
@@ -8221,6 +8261,20 @@ var Selection = /** @__PURE__ @class */ (function () {
8221
8261
  }
8222
8262
  }
8223
8263
  }
8264
+ else if (type === 'mouse-down' || type === 'mouse-up') {
8265
+ if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
8266
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
8267
+ parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeResizingArgs).then(function (shapeResizingArgs) {
8268
+ parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
8269
+ value: { shapeSettings: shapeResizingArgs.currentShapeSettings } });
8270
+ });
8271
+ }
8272
+ else {
8273
+ parent.trigger('shapeChanging', shapeResizingArgs);
8274
+ parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
8275
+ value: { shapeSettings: shapeResizingArgs.currentShapeSettings } });
8276
+ }
8277
+ }
8224
8278
  else {
8225
8279
  if (isBlazor() && isNullOrUndefined(this.parent.eventType) && parent.events &&
8226
8280
  parent.events.onShapeDragStart.hasDelegate === true) {
@@ -9932,6 +9986,12 @@ var Selection = /** @__PURE__ @class */ (function () {
9932
9986
  parent.activeObj.activePoint.endX = parent.activeObj.activePoint.startX;
9933
9987
  parent.activeObj.activePoint.endY = parent.activeObj.activePoint.startY;
9934
9988
  parent.currObjType.isDragging = true;
9989
+ var previousShapeSettings = this.updatePrevShapeSettings();
9990
+ var shapeResizingArgs = { action: 'draw-start', previousShapeSettings: previousShapeSettings };
9991
+ var shapeMovingArgs = { action: 'move', previousShapeSettings: previousShapeSettings };
9992
+ this.shapeResizingArgs = shapeResizingArgs;
9993
+ this.shapeMovingArgs = shapeMovingArgs;
9994
+ this.triggerShapeChange(shapeResizingArgs, shapeMovingArgs, 'mouse-down');
9935
9995
  return;
9936
9996
  }
9937
9997
  parent.notify('draw', { prop: 'resetFrameZoom', onPropertyChange: false });
@@ -10336,7 +10396,7 @@ var Selection = /** @__PURE__ @class */ (function () {
10336
10396
  }
10337
10397
  if (this.currentDrawingShape === 'path') {
10338
10398
  var elem = e.srcElement;
10339
- if (e.currentTarget !== parent.upperCanvas && e.currentTarget !== parent.lowerCanvas &&
10399
+ if (e.currentTarget !== parent.upperCanvas && e.currentTarget !== parent.lowerCanvas && parent.activeObj.pointColl.length > 0 &&
10340
10400
  (elem.classList.contains('e-upload-icon') || elem.parentElement.id === parent.element.id + '_zoomIn' ||
10341
10401
  elem.parentElement.id === parent.element.id + '_zoomOut' || elem.parentElement.id === parent.element.id + '_annotationBtn' ||
10342
10402
  elem.parentElement.id === parent.element.id + '_borderColorBtn' || elem.parentElement.id === parent.element.id + '_borderWidthBtn' ||
@@ -10367,6 +10427,12 @@ var Selection = /** @__PURE__ @class */ (function () {
10367
10427
  if (parent.activeObj.activePoint.width === 0 && parent.activeObj.activePoint.height === 0) {
10368
10428
  parent.notify('draw', { prop: 'performCancel', value: { isContextualToolbar: null } });
10369
10429
  }
10430
+ var previousShapeSettings = this.updatePrevShapeSettings();
10431
+ var shapeResizingArgs = { action: 'draw-end', previousShapeSettings: previousShapeSettings };
10432
+ var shapeMovingArgs = { action: 'move', previousShapeSettings: previousShapeSettings };
10433
+ this.shapeResizingArgs = shapeResizingArgs;
10434
+ this.shapeMovingArgs = shapeMovingArgs;
10435
+ this.triggerShapeChange(shapeResizingArgs, shapeMovingArgs, 'mouse-up');
10370
10436
  }
10371
10437
  this.adjustActObjForLineArrow();
10372
10438
  this.updPtCollForShpRot();
@@ -12705,6 +12771,9 @@ var Shape = /** @__PURE__ @class */ (function () {
12705
12771
  parent.activeObj.activePoint.endY = parent.activeObj.activePoint.startY + parent.activeObj.activePoint.height;
12706
12772
  parent.activeObj.strokeSettings.strokeColor = shapeSettings.strokeColor;
12707
12773
  parent.activeObj.strokeSettings.fillColor = shapeSettings.fillColor;
12774
+ if (isNullOrUndefined(shapeSettings.degree)) {
12775
+ shapeSettings.degree = 0;
12776
+ }
12708
12777
  switch (parent.activeObj.shape) {
12709
12778
  case 'ellipse':
12710
12779
  parent.activeObj.activePoint.width = shapeSettings.radius * 2;
@@ -13535,6 +13604,13 @@ var Shape = /** @__PURE__ @class */ (function () {
13535
13604
  else {
13536
13605
  parent.updateToolbar(parent.element, 'quickAccessToolbar', parent.activeObj.shape);
13537
13606
  }
13607
+ var obj_1 = { shapeSettingsObj: {} };
13608
+ parent.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: obj_1 } });
13609
+ var shapeSettings = obj_1['shapeSettingsObj'];
13610
+ var shapeResizingArgs = { action: 'draw-end', previousShapeSettings: shapeSettings };
13611
+ var shapeMovingArgs = { action: 'move', previousShapeSettings: shapeSettings };
13612
+ parent.notify('selection', { prop: 'triggerShapeChange', onPropertyChange: false,
13613
+ value: { shapeResizingArgs: shapeResizingArgs, shapeMovingArgs: shapeMovingArgs, type: 'mouse-up' } });
13538
13614
  }
13539
13615
  }
13540
13616
  };
@@ -13704,10 +13780,10 @@ var Shape = /** @__PURE__ @class */ (function () {
13704
13780
  value: { width: this.shapeImg.width, height: this.shapeImg.height, obj: dimObj, isImgShape: null } });
13705
13781
  if (width && height) {
13706
13782
  if (isAspectRatio) {
13707
- var obj_1 = { ratio: null };
13783
+ var obj_2 = { ratio: null };
13708
13784
  parent.notify('selection', { prop: 'findImageRatio', onPropertyChange: false,
13709
- value: { width: this.shapeImg.width, height: this.shapeImg.height, obj: obj_1 } });
13710
- dimObj = this.resizeImage(width, obj_1['ratio']);
13785
+ value: { width: this.shapeImg.width, height: this.shapeImg.height, obj: obj_2 } });
13786
+ dimObj = this.resizeImage(width, obj_2['ratio']);
13711
13787
  }
13712
13788
  else {
13713
13789
  dimObj = { width: width, height: height };
@@ -13720,10 +13796,10 @@ var Shape = /** @__PURE__ @class */ (function () {
13720
13796
  value: { width: this.shapeImg.width, height: this.shapeImg.height, obj: dimObj, isImgShape: true } });
13721
13797
  if (width && height) {
13722
13798
  if (isAspectRatio) {
13723
- var obj_2 = { ratio: null };
13799
+ var obj_3 = { ratio: null };
13724
13800
  parent.notify('selection', { prop: 'findImageRatio', onPropertyChange: false,
13725
- value: { width: this.shapeImg.width, height: this.shapeImg.height, obj: obj_2 } });
13726
- dimObj = this.resizeImage(width, obj_2['ratio']);
13801
+ value: { width: this.shapeImg.width, height: this.shapeImg.height, obj: obj_3 } });
13802
+ dimObj = this.resizeImage(width, obj_3['ratio']);
13727
13803
  }
13728
13804
  else {
13729
13805
  dimObj = { width: width, height: height };
@@ -14031,6 +14107,9 @@ var Shape = /** @__PURE__ @class */ (function () {
14031
14107
  };
14032
14108
  Shape.prototype.applyFontStyle = function (item) {
14033
14109
  var parent = this.parent;
14110
+ var obj = { shapeSettingsObj: {} };
14111
+ parent.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: obj } });
14112
+ var shapeSettings = obj['shapeSettingsObj'];
14034
14113
  this.pushActItemIntoObj();
14035
14114
  var objColl = extend([], parent.objColl, [], true);
14036
14115
  parent.objColl.pop();
@@ -14054,6 +14133,10 @@ var Shape = /** @__PURE__ @class */ (function () {
14054
14133
  this.updateFontStyle(item, objColl, 'bold', 'italic');
14055
14134
  break;
14056
14135
  }
14136
+ var shapeChangedArgs = { action: 'font-style', previousShapeSettings: extend({}, shapeSettings, {}, true),
14137
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
14138
+ shapeChangedArgs.currentShapeSettings.fontStyle = [item];
14139
+ parent.triggerShapeChanged(shapeChangedArgs);
14057
14140
  };
14058
14141
  Shape.prototype.updateFontStyle = function (item, objColl, fontWeight, fontStyle) {
14059
14142
  var parent = this.parent;
@@ -14417,14 +14500,14 @@ var Shape = /** @__PURE__ @class */ (function () {
14417
14500
  if (!parent.disabled && parent.isImageLoaded) {
14418
14501
  this.applyActObj();
14419
14502
  if (id.split('_')[0] === 'shape') {
14420
- var obj_3;
14503
+ var obj_4;
14421
14504
  for (var i = 0, len = parent.objColl.length; i < len; i++) {
14422
14505
  if (parent.objColl[i].currIndex === id) {
14423
- obj_3 = extend({}, parent.objColl[i], {}, true);
14506
+ obj_4 = extend({}, parent.objColl[i], {}, true);
14424
14507
  break;
14425
14508
  }
14426
14509
  }
14427
- shapeDetails = this.getObjDetails(obj_3);
14510
+ shapeDetails = this.getObjDetails(obj_4);
14428
14511
  }
14429
14512
  else if (id.split('_')[0] === 'pen') {
14430
14513
  shapeDetails = this.getFreehandDrawDetails(parseInt(id.split('_')[1], 10) - 1);
@@ -14576,19 +14659,19 @@ var Shape = /** @__PURE__ @class */ (function () {
14576
14659
  if (!parent.disabled && parent.isImageLoaded) {
14577
14660
  this.applyActObj();
14578
14661
  if (id.split('_')[0] === 'shape') {
14579
- var obj_4;
14662
+ var obj_5;
14580
14663
  for (var i = 0, len = parent.objColl.length; i < len; i++) {
14581
14664
  if (parent.objColl[i].currIndex === id) {
14582
- obj_4 = extend({}, parent.objColl[i], {}, true);
14665
+ obj_5 = extend({}, parent.objColl[i], {}, true);
14583
14666
  break;
14584
14667
  }
14585
14668
  }
14586
- if (isNullOrUndefined(obj_4)) {
14669
+ if (isNullOrUndefined(obj_5)) {
14587
14670
  isSelected = false;
14588
14671
  }
14589
14672
  else {
14590
14673
  isSelected = true;
14591
- parent.activeObj = obj_4;
14674
+ parent.activeObj = obj_5;
14592
14675
  var object = { canvasFilter: null };
14593
14676
  parent.notify('toolbar', { prop: 'getCanvasFilter', onPropertyChange: false, value: { obj: object } });
14594
14677
  this.lowerContext.filter = object['canvasFilter'];
@@ -14627,9 +14710,9 @@ var Shape = /** @__PURE__ @class */ (function () {
14627
14710
  if (object['bool']) {
14628
14711
  parent.okBtn();
14629
14712
  }
14630
- var obj_5 = { isIndex: false };
14631
- parent.notify('freehand-draw', { prop: 'isFHDIdx', value: { index: parseInt(id.split('_')[1], 10) - 1, obj: obj_5 } });
14632
- if (obj_5['isIndex']) {
14713
+ var obj_6 = { isIndex: false };
14714
+ parent.notify('freehand-draw', { prop: 'isFHDIdx', value: { index: parseInt(id.split('_')[1], 10) - 1, obj: obj_6 } });
14715
+ if (obj_6['isIndex']) {
14633
14716
  isSelected = true;
14634
14717
  parent.notify('freehand-draw', { prop: 'selectFhd', value: { id: id } });
14635
14718
  if (!isBlazor()) {
@@ -18508,6 +18591,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
18508
18591
  this.notify('toolbar', { prop: 'create-contextual-toolbar', onPropertyChange: false });
18509
18592
  }
18510
18593
  this.createCanvas();
18594
+ if (this.element.offsetWidth > 359 && this.element.querySelector('.e-ie-min-drop-content') && this.element.querySelector('.e-ie-drop-content')) {
18595
+ this.element.querySelector('.e-ie-min-drop-content').style.display = 'none';
18596
+ this.element.querySelector('.e-ie-drop-content').style.display = 'block';
18597
+ }
18511
18598
  this.createDropUploader();
18512
18599
  if (this.showQuickAccessToolbar) {
18513
18600
  var canvasWrapper = document.querySelector('#' + this.element.id + '_canvasWrapper');
@@ -18667,18 +18754,26 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
18667
18754
  }));
18668
18755
  var dragObj = { key: 'DragText' };
18669
18756
  this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: dragObj } });
18757
+ var dropObj = { key: 'DropText' };
18758
+ this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: dropObj } });
18670
18759
  var browseObj = { key: 'BrowseText' };
18671
18760
  this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: browseObj } });
18672
18761
  var supportObj = { key: 'SupportText' };
18673
18762
  this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: supportObj } });
18674
18763
  var dropAreaElement = this.createElement('div', { id: this.element.id + '_dropArea', className: 'e-ie-drop-area', attrs: { style: 'position: relative;' } });
18675
18764
  var dropIconElement = this.createElement('span', { className: 'e-ie-drop-icon e-icons e-image', attrs: { style: 'position: absolute;' } });
18676
- var dropContentElement = this.createElement('span', { className: 'e-ie-drop-content', attrs: { style: 'position: absolute;' } });
18765
+ var dropContentElement = this.createElement('span', { className: 'e-ie-drop-content', attrs: { style: 'position: absolute; display: none;' } });
18677
18766
  dropContentElement.textContent = dragObj['value'] + ' ';
18767
+ var minDropContentElem = this.createElement('span', { className: 'e-ie-min-drop-content', attrs: { style: 'position: absolute;' } });
18768
+ minDropContentElem.textContent = dropObj['value'] + ' ';
18678
18769
  var dropAnchorElement = this.createElement('a', { id: this.element.id + '_dropBrowse', className: 'e-ie-drop-browse' });
18679
18770
  dropAnchorElement.textContent = browseObj['value'];
18771
+ var minDropAnchorElem = this.createElement('a', { id: this.element.id + '_dropBrowse', className: 'e-ie-drop-browse' });
18772
+ minDropAnchorElem.textContent = browseObj['value'];
18680
18773
  dropContentElement.appendChild(dropAnchorElement);
18774
+ minDropContentElem.appendChild(minDropAnchorElem);
18681
18775
  dropAnchorElement.href = '';
18776
+ minDropAnchorElem.href = '';
18682
18777
  var dropInfoElement = this.createElement('span', { className: 'e-ie-drop-info', attrs: { position: 'absolute' } });
18683
18778
  dropInfoElement.textContent = supportObj['value'] + ' SVG, PNG, and JPG';
18684
18779
  var dropUploader = dropAreaElement.appendChild(this.createElement('input', {
@@ -18688,6 +18783,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
18688
18783
  dropUploader.setAttribute('accept', 'image/*');
18689
18784
  dropAreaElement.appendChild(dropIconElement);
18690
18785
  dropAreaElement.appendChild(dropContentElement);
18786
+ dropAreaElement.appendChild(minDropContentElem);
18691
18787
  dropAreaElement.appendChild(dropInfoElement);
18692
18788
  canvasWrapper.appendChild(dropAreaElement);
18693
18789
  this.lowerCanvas = canvasWrapper.appendChild(this.createElement('canvas', {
@@ -19694,7 +19790,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
19694
19790
  * @returns {void}.
19695
19791
  */
19696
19792
  ImageEditor.prototype.okBtn = function (isMouseDown) {
19697
- this.element.querySelector('.e-contextual-toolbar-wrapper').classList.remove('e-frame-wrapper');
19793
+ if (this.element.querySelector('.e-contextual-toolbar-wrapper')) {
19794
+ this.element.querySelector('.e-contextual-toolbar-wrapper').classList.remove('e-frame-wrapper');
19795
+ }
19698
19796
  var isCropSelection = false;
19699
19797
  var splitWords;
19700
19798
  var aspectIcon = this.element.querySelector('#' + this.element.id + '_aspectratio');
@@ -19711,6 +19809,17 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
19711
19809
  isCropSelection = true;
19712
19810
  }
19713
19811
  this.allowDownScale = true;
19812
+ if ((this.activeObj.shape && this.activeObj.shape !== 'image' || this.togglePen) && !isCropSelection) {
19813
+ var objt = { shapeSettingsObj: {} };
19814
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
19815
+ var shapeSettings = objt['shapeSettingsObj'];
19816
+ if (this.togglePen) {
19817
+ shapeSettings.type = ShapeType.FreehandDraw;
19818
+ }
19819
+ var shapeChangedArgs = { action: 'apply', previousShapeSettings: extend({}, shapeSettings, {}, true),
19820
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
19821
+ this.triggerShapeChanged(shapeChangedArgs);
19822
+ }
19714
19823
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
19715
19824
  if (aspectIcon || nonAspectIcon || (isBlazor() && this.currentToolbar === 'resize-toolbar')) {
19716
19825
  var obj_2 = { width: null, height: null };
@@ -20007,6 +20116,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20007
20116
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20008
20117
  var prevCropObj = extend({}, this.cropObj, {}, true);
20009
20118
  var object = { currObj: {} };
20119
+ var objt = { shapeSettingsObj: {} };
20120
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20121
+ var shapeSettings = objt['shapeSettingsObj'];
20010
20122
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20011
20123
  var prevObj = object['currObj'];
20012
20124
  prevObj.objColl = extend([], this.objColl, [], true);
@@ -20043,6 +20155,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20043
20155
  }
20044
20156
  }
20045
20157
  }
20158
+ var shapeChangedArgs = { action: type, previousShapeSettings: extend({}, shapeSettings, {}, true),
20159
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20160
+ this.triggerShapeChanged(shapeChangedArgs);
20046
20161
  };
20047
20162
  /**
20048
20163
  * Apply Font style for text.
@@ -20056,6 +20171,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20056
20171
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20057
20172
  var objColl = extend([], this.objColl, [], true);
20058
20173
  var prevCropObj = extend({}, this.cropObj, {}, true);
20174
+ var objt = { shapeSettingsObj: {} };
20175
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20176
+ var shapeSettings = objt['shapeSettingsObj'];
20059
20177
  var object = { currObj: {} };
20060
20178
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20061
20179
  var prevObj = object['currObj'];
@@ -20104,6 +20222,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20104
20222
  currentText: null, previousFilter: null, isCircleCrop: null } });
20105
20223
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.objColl[this.objColl.length - 1] } });
20106
20224
  }
20225
+ var shapeChangedArgs = { action: 'font-family', previousShapeSettings: extend({}, shapeSettings, {}, true),
20226
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20227
+ shapeChangedArgs.currentShapeSettings.fontFamily = this.textArea.style.fontFamily;
20228
+ this.triggerShapeChanged(shapeChangedArgs);
20107
20229
  };
20108
20230
  /**
20109
20231
  * Apply Font size for text.
@@ -20117,6 +20239,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20117
20239
  this.notify('selection', { prop: 'setInitialTextEdit', value: { bool: false } });
20118
20240
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20119
20241
  var prevCropObj = extend({}, this.cropObj, {}, true);
20242
+ var objt = { shapeSettingsObj: {} };
20243
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20244
+ var shapeSettings = objt['shapeSettingsObj'];
20120
20245
  var object = { currObj: {} };
20121
20246
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20122
20247
  var prevObj = object['currObj'];
@@ -20196,6 +20321,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20196
20321
  currentText: null, previousFilter: null, isCircleCrop: null } });
20197
20322
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.objColl[this.objColl.length - 1] } });
20198
20323
  }
20324
+ var shapeChangedArgs = { action: 'font-size', previousShapeSettings: extend({}, shapeSettings, {}, true),
20325
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20326
+ shapeChangedArgs.currentShapeSettings.fontSize = this.activeObj.textSettings.fontSize;
20327
+ this.triggerShapeChanged(shapeChangedArgs);
20199
20328
  };
20200
20329
  /**
20201
20330
  * Apply Font color for text.
@@ -20208,6 +20337,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20208
20337
  this.notify('selection', { prop: 'setInitialTextEdit', value: { bool: false } });
20209
20338
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20210
20339
  var prevCropObj = extend({}, this.cropObj, {}, true);
20340
+ var objt = { shapeSettingsObj: {} };
20341
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20342
+ var shapeSettings = objt['shapeSettingsObj'];
20211
20343
  var object = { currObj: {} };
20212
20344
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20213
20345
  var prevObj = object['currObj'];
@@ -20255,6 +20387,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20255
20387
  currentText: null, previousFilter: null, isCircleCrop: null } });
20256
20388
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.objColl[this.objColl.length - 1] } });
20257
20389
  }
20390
+ var shapeChangedArgs = { action: 'font-color', previousShapeSettings: extend({}, shapeSettings, {}, true),
20391
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20392
+ shapeChangedArgs.currentShapeSettings.fillColor = value;
20393
+ this.triggerShapeChanged(shapeChangedArgs);
20258
20394
  };
20259
20395
  /**
20260
20396
  * Apply Pen stroke width.
@@ -20268,6 +20404,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20268
20404
  var temp = extend([], this.pointColl, [], true);
20269
20405
  this.updateFreehandDrawColorChange();
20270
20406
  var prevCropObj = extend({}, this.cropObj, {}, true);
20407
+ var objt = { shapeSettingsObj: {} };
20408
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20409
+ var shapeSettings = objt['shapeSettingsObj'];
20271
20410
  var object = { currObj: {} };
20272
20411
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20273
20412
  var prevObj = object['currObj'];
@@ -20298,6 +20437,11 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20298
20437
  previousCropObj: prevCropObj, previousText: null,
20299
20438
  currentText: null, previousFilter: null, isCircleCrop: null } });
20300
20439
  }
20440
+ shapeSettings.type = ShapeType.FreehandDraw;
20441
+ var shapeChangedArgs = { action: 'stroke-width', previousShapeSettings: extend({}, shapeSettings, {}, true),
20442
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20443
+ shapeChangedArgs.currentShapeSettings.strokeWidth = this.activeObj.strokeSettings.strokeWidth;
20444
+ this.triggerShapeChanged(shapeChangedArgs);
20301
20445
  };
20302
20446
  /**
20303
20447
  * Apply Pen stroke color.
@@ -20311,6 +20455,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20311
20455
  var temp = extend([], this.pointColl, [], true);
20312
20456
  this.updateFreehandDrawColorChange();
20313
20457
  var prevCropObj = extend({}, this.cropObj, {}, true);
20458
+ var objt = { shapeSettingsObj: {} };
20459
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20460
+ var shapeSettings = objt['shapeSettingsObj'];
20314
20461
  var object = { currObj: {} };
20315
20462
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20316
20463
  var prevObj = object['currObj'];
@@ -20342,6 +20489,11 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20342
20489
  else if (!this.togglePen) {
20343
20490
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.activeObj } });
20344
20491
  }
20492
+ shapeSettings.type = ShapeType.FreehandDraw;
20493
+ var shapeChangedArgs = { action: 'stroke-color', previousShapeSettings: extend({}, shapeSettings, {}, true),
20494
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20495
+ shapeChangedArgs.currentShapeSettings.strokeColor = value;
20496
+ this.triggerShapeChanged(shapeChangedArgs);
20345
20497
  };
20346
20498
  /**
20347
20499
  * Apply Shape stroke width.
@@ -20353,6 +20505,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20353
20505
  ImageEditor.prototype.updateStrokeWidth = function (id) {
20354
20506
  if (this.activeObj.shape && (this.activeObj.shape !== 'path' || (this.activeObj.shape === 'path' &&
20355
20507
  this.activeObj.pointColl.length > 0))) {
20508
+ var obj = { shapeSettingsObj: {} };
20509
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: obj } });
20510
+ var shapeSettings = obj['shapeSettingsObj'];
20356
20511
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20357
20512
  var prevCropObj = extend({}, this.cropObj, {}, true);
20358
20513
  var object = { currObj: {} };
@@ -20377,6 +20532,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20377
20532
  previousCropObj: prevCropObj, previousText: null,
20378
20533
  currentText: null, previousFilter: null, isCircleCrop: null } });
20379
20534
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.objColl[this.objColl.length - 1] } });
20535
+ var shapeChangedArgs = { action: 'stroke-width', previousShapeSettings: extend({}, shapeSettings, {}, true),
20536
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20537
+ shapeChangedArgs.currentShapeSettings.strokeWidth = this.activeObj.strokeSettings.strokeWidth;
20538
+ this.triggerShapeChanged(shapeChangedArgs);
20380
20539
  }
20381
20540
  else if (this.activeObj.shape && (this.activeObj.shape === 'path' &&
20382
20541
  this.activeObj.pointColl.length === 0)) {
@@ -20394,6 +20553,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20394
20553
  * @returns {void}.
20395
20554
  */
20396
20555
  ImageEditor.prototype.updateStrokeColor = function (value) {
20556
+ var objt = { shapeSettingsObj: {} };
20557
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20558
+ var shapeSettings = objt['shapeSettingsObj'];
20397
20559
  if (this.activeObj.shape && (this.activeObj.shape !== 'path' || (this.activeObj.shape === 'path' &&
20398
20560
  this.activeObj.pointColl.length > 0))) {
20399
20561
  this.notify('shape', { prop: 'pushActItemIntoObj' });
@@ -20426,6 +20588,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20426
20588
  this.activeObj.strokeSettings.strokeColor = value;
20427
20589
  this.notify('shape', { prop: 'setStrokeSettings', value: { strokeSettings: null, strokeColor: this.activeObj.strokeSettings.strokeColor, fillColor: null, strokeWidth: null } });
20428
20590
  }
20591
+ var shapeChangedArgs = { action: 'stroke-color', previousShapeSettings: extend({}, shapeSettings, {}, true),
20592
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20593
+ shapeChangedArgs.currentShapeSettings.strokeColor = value;
20594
+ this.triggerShapeChanged(shapeChangedArgs);
20429
20595
  };
20430
20596
  /**
20431
20597
  * Apply Shape fill color.
@@ -20435,6 +20601,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20435
20601
  * @returns {void}.
20436
20602
  */
20437
20603
  ImageEditor.prototype.updateFillColor = function (value) {
20604
+ var obj = { shapeSettingsObj: {} };
20605
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: obj } });
20606
+ var shapeSettings = obj['shapeSettingsObj'];
20438
20607
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20439
20608
  var prevCropObj = extend({}, this.cropObj, {}, true);
20440
20609
  var object = { currObj: {} };
@@ -20459,6 +20628,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20459
20628
  previousCropObj: prevCropObj, previousText: null,
20460
20629
  currentText: null, previousFilter: null, isCircleCrop: null } });
20461
20630
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.objColl[this.objColl.length - 1] } });
20631
+ var shapeChangedArgs = { action: 'fill-color', previousShapeSettings: extend({}, shapeSettings, {}, true),
20632
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20633
+ shapeChangedArgs.currentShapeSettings.fillColor = value;
20634
+ this.triggerShapeChanged(shapeChangedArgs);
20462
20635
  };
20463
20636
  /**
20464
20637
  * Apply horizontal flip.
@@ -20655,6 +20828,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20655
20828
  if (isBlazor() && this.element.querySelector('.place-holder')) {
20656
20829
  this.element.querySelector('.place-holder').remove();
20657
20830
  }
20831
+ if (this.element.offsetWidth > 359 && this.element.querySelector('.e-ie-min-drop-content') && this.element.querySelector('.e-ie-drop-content')) {
20832
+ this.element.querySelector('.e-ie-min-drop-content').style.display = 'none';
20833
+ this.element.querySelector('.e-ie-drop-content').style.display = 'block';
20834
+ }
20658
20835
  if (isBlazor() && this.element.querySelector('.e-ie-drop-area')) {
20659
20836
  this.element.querySelector('.e-ie-drop-area').style.display = 'block';
20660
20837
  }
@@ -20759,6 +20936,19 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20759
20936
  // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
20760
20937
  ImageEditor.prototype.updateToolbar = function (element, type, value) {
20761
20938
  };
20939
+ /**
20940
+ * Trigger the shapeChanging event for after the shape applied.
20941
+ *
20942
+ * @param { ShapeChangeEventArgs } shapeChangedArgs - Specifies the shapeChaning event args.
20943
+ * @hidden
20944
+ * @returns {void}.
20945
+ */
20946
+ ImageEditor.prototype.triggerShapeChanged = function (shapeChangedArgs) {
20947
+ if (isBlazor() && this.events && this.events.shapeChanged.hasDelegate === true) {
20948
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
20949
+ this.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'ShapeChanged', shapeChangedArgs);
20950
+ }
20951
+ };
20762
20952
  var ImageEditor_1;
20763
20953
  __decorate([
20764
20954
  Property('')
@@ -21011,6 +21201,33 @@ var ImageEditorCommand;
21011
21201
  ImageEditorCommand["RotateRight"] = "RotateRight";
21012
21202
  ImageEditorCommand["FlipHorizontal"] = "FlipHorizontal";
21013
21203
  ImageEditorCommand["FlipVertical"] = "FlipVertical";
21204
+ ImageEditorCommand["Undo"] = "Undo";
21205
+ ImageEditorCommand["Redo"] = "Redo";
21206
+ ImageEditorCommand["None"] = "None";
21207
+ ImageEditorCommand["Mat"] = "Mat";
21208
+ ImageEditorCommand["Bevel"] = "Bevel";
21209
+ ImageEditorCommand["Inset"] = "Inset";
21210
+ ImageEditorCommand["Hook"] = "Hook";
21211
+ ImageEditorCommand["Finetune"] = "Finetune";
21212
+ ImageEditorCommand["Filter"] = "Filter";
21213
+ ImageEditorCommand["Frame"] = "Frame";
21214
+ ImageEditorCommand["Resize"] = "Resize";
21215
+ ImageEditorCommand["HorizontalFlip"] = "HorizontalFlip";
21216
+ ImageEditorCommand["VerticalFlip"] = "VerticalFlip";
21217
+ ImageEditorCommand["Brightness"] = "Brightness";
21218
+ ImageEditorCommand["Contrast"] = "Contrast";
21219
+ ImageEditorCommand["Hue"] = "Hue";
21220
+ ImageEditorCommand["Saturation"] = "Saturation";
21221
+ ImageEditorCommand["Opacity"] = "Opacity";
21222
+ ImageEditorCommand["Blur"] = "Blur";
21223
+ ImageEditorCommand["Exposure"] = "Exposure";
21224
+ ImageEditorCommand["Default"] = "Default";
21225
+ ImageEditorCommand["Chrome"] = "Chrome";
21226
+ ImageEditorCommand["Cold"] = "Cold";
21227
+ ImageEditorCommand["Warm"] = "Warm";
21228
+ ImageEditorCommand["Grayscale"] = "Grayscale";
21229
+ ImageEditorCommand["Sepia"] = "Sepia";
21230
+ ImageEditorCommand["Invert"] = "Invert";
21014
21231
  })(ImageEditorCommand || (ImageEditorCommand = {}));
21015
21232
  /**
21016
21233
  * An enumeration of available image filter options.
@@ -21233,6 +21450,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
21233
21450
  W: 'W',
21234
21451
  H: 'H',
21235
21452
  DragText: 'Drag and drop your image here or',
21453
+ DropText: 'Drop your image here or',
21236
21454
  BrowseText: 'Browse here...',
21237
21455
  SupportText: 'Supports:',
21238
21456
  Frame: 'Frame',