@syncfusion/ej2-image-editor 23.1.36 → 23.1.38

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 (54) hide show
  1. package/CHANGELOG.md +9 -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 +216 -30
  5. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  6. package/dist/es6/ej2-image-editor.es5.js +233 -47
  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 +8 -8
  12. package/src/image-editor/action/freehand-draw.d.ts +1 -0
  13. package/src/image-editor/action/freehand-draw.js +52 -26
  14. package/src/image-editor/action/selection.js +38 -3
  15. package/src/image-editor/action/shape.js +33 -16
  16. package/src/image-editor/base/image-editor-model.d.ts +1 -1
  17. package/src/image-editor/base/image-editor.d.ts +8 -0
  18. package/src/image-editor/base/image-editor.js +110 -3
  19. package/src/image-editor/renderer/toolbar.js +1 -0
  20. package/styles/bootstrap-dark.css +5 -0
  21. package/styles/bootstrap.css +5 -0
  22. package/styles/bootstrap4.css +5 -0
  23. package/styles/bootstrap5-dark.css +5 -0
  24. package/styles/bootstrap5.css +5 -0
  25. package/styles/fabric-dark.css +5 -0
  26. package/styles/fabric.css +5 -0
  27. package/styles/fluent-dark.css +5 -0
  28. package/styles/fluent.css +5 -0
  29. package/styles/highcontrast-light.css +5 -0
  30. package/styles/highcontrast.css +5 -0
  31. package/styles/image-editor/_layout.scss +6 -0
  32. package/styles/image-editor/bootstrap-dark.css +5 -0
  33. package/styles/image-editor/bootstrap.css +5 -0
  34. package/styles/image-editor/bootstrap4.css +5 -0
  35. package/styles/image-editor/bootstrap5-dark.css +5 -0
  36. package/styles/image-editor/bootstrap5.css +5 -0
  37. package/styles/image-editor/fabric-dark.css +5 -0
  38. package/styles/image-editor/fabric.css +5 -0
  39. package/styles/image-editor/fluent-dark.css +5 -0
  40. package/styles/image-editor/fluent.css +5 -0
  41. package/styles/image-editor/highcontrast-light.css +5 -0
  42. package/styles/image-editor/highcontrast.css +5 -0
  43. package/styles/image-editor/material-dark.css +5 -0
  44. package/styles/image-editor/material.css +5 -0
  45. package/styles/image-editor/material3-dark.css +5 -0
  46. package/styles/image-editor/material3.css +5 -0
  47. package/styles/image-editor/tailwind-dark.css +5 -0
  48. package/styles/image-editor/tailwind.css +5 -0
  49. package/styles/material-dark.css +5 -0
  50. package/styles/material.css +5 -0
  51. package/styles/material3-dark.css +5 -0
  52. package/styles/material3.css +5 -0
  53. package/styles/tailwind-dark.css +5 -0
  54. package/styles/tailwind.css +5 -0
@@ -6264,6 +6264,13 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
6264
6264
  }
6265
6265
  this.isFreehandPointMoved = false;
6266
6266
  EventHandler.add(canvas, 'mousemove touchmove', this.freehandMoveHandler, this);
6267
+ var shapeSettings = { id: 'pen_' + (this.currFHDIdx + 1), type: ShapeType.FreehandDraw,
6268
+ startX: this.freehandDownPoint.x, startY: this.freehandDownPoint.y,
6269
+ strokeColor: this.parent.activeObj.strokeSettings.strokeColor, strokeWidth: this.parent.activeObj.strokeSettings.strokeWidth,
6270
+ points: null };
6271
+ var shapeChangingArgs = { action: 'draw-start', previousShapeSettings: shapeSettings,
6272
+ currentShapeSettings: shapeSettings };
6273
+ this.triggerShapeChanging(shapeChangingArgs);
6267
6274
  };
6268
6275
  FreehandDrawing.prototype.freehandUpHandler = function (e, canvas, context) {
6269
6276
  var rect = canvas.getBoundingClientRect();
@@ -6308,13 +6315,20 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
6308
6315
  this.selPoints = [];
6309
6316
  this.pointCounter = 0;
6310
6317
  parent.freehandCounter++;
6311
- this.currFHDIdx++;
6312
6318
  this.isFreehandDrawing = false;
6313
6319
  parent.notify('undo-redo', { prop: 'updateUndoRedoColl', onPropertyChange: false,
6314
6320
  value: { operation: 'freehand-draw', previousObj: prevObj, previousObjColl: prevObj.objColl,
6315
6321
  previousPointColl: prevObj.pointColl, previousSelPointColl: prevObj.selPointColl,
6316
6322
  previousCropObj: prevCropObj, previousText: null,
6317
6323
  currentText: null, previousFilter: null, isCircleCrop: null } });
6324
+ var shapeSettings = { id: 'pen_' + (this.currFHDIdx + 1), type: ShapeType.FreehandDraw,
6325
+ startX: this.freehandDownPoint.x, startY: this.freehandDownPoint.y,
6326
+ strokeColor: this.parent.activeObj.strokeSettings.strokeColor, strokeWidth: this.parent.activeObj.strokeSettings.strokeWidth,
6327
+ points: this.parent.pointColl[this.currFHDIdx].points };
6328
+ var shapeChangingArgs = { action: 'draw-end', previousShapeSettings: shapeSettings,
6329
+ currentShapeSettings: shapeSettings };
6330
+ this.triggerShapeChanging(shapeChangingArgs);
6331
+ this.currFHDIdx++;
6318
6332
  };
6319
6333
  FreehandDrawing.prototype.freehandMoveHandler = function (e) {
6320
6334
  this.isFreehandPointMoved = true;
@@ -6650,7 +6664,6 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
6650
6664
  }
6651
6665
  };
6652
6666
  FreehandDrawing.prototype.selectFhd = function (index) {
6653
- var _this = this;
6654
6667
  var parent = this.parent;
6655
6668
  parent.notify('selection', { prop: 'setFreehandDrawEditing', onPropertyChange: false, value: { bool: true } });
6656
6669
  if (index || index === 0) {
@@ -6681,30 +6694,7 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
6681
6694
  points: parent.pointColl[this.fhdSelIdx].points };
6682
6695
  var shapeChangingArgs = { action: 'select', previousShapeSettings: shapeSettings,
6683
6696
  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
- }
6697
+ this.triggerShapeChanging(shapeChangingArgs);
6708
6698
  }
6709
6699
  else {
6710
6700
  parent.okBtn();
@@ -7084,6 +7074,42 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
7084
7074
  }
7085
7075
  }
7086
7076
  };
7077
+ FreehandDrawing.prototype.triggerShapeChanging = function (shapeChangingArgs) {
7078
+ var _this = this;
7079
+ var parent = this.parent;
7080
+ if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
7081
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
7082
+ parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs).then(function (shapeChangingArgs) {
7083
+ parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
7084
+ parent.activeObj.strokeSettings.strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
7085
+ if (_this.fhdSelID) {
7086
+ parent.pointColl[_this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
7087
+ parent.pointColl[_this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
7088
+ parent.pointColl[_this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
7089
+ }
7090
+ if (shapeChangingArgs.action === 'select') {
7091
+ _this.freehandRedraw(_this.upperContext);
7092
+ parent.updateToolbar(parent.element, 'imageLoaded');
7093
+ parent.updateToolbar(parent.element, 'pen');
7094
+ }
7095
+ });
7096
+ }
7097
+ else {
7098
+ parent.trigger('shapeChanging', shapeChangingArgs);
7099
+ parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
7100
+ parent.activeObj.strokeSettings.strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
7101
+ if (this.fhdSelID) {
7102
+ parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
7103
+ parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
7104
+ parent.pointColl[this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
7105
+ }
7106
+ if (shapeChangingArgs.action === 'select') {
7107
+ this.freehandRedraw(this.upperContext);
7108
+ parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'pen',
7109
+ isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
7110
+ }
7111
+ }
7112
+ };
7087
7113
  return FreehandDrawing;
7088
7114
  }());
7089
7115
 
@@ -7343,6 +7369,9 @@ var Selection = /** @__PURE__ @class */ (function () {
7343
7369
  case 'upgradeImageQuality':
7344
7370
  this.upgradeImageQuality();
7345
7371
  break;
7372
+ case 'triggerShapeChange':
7373
+ this.triggerShapeChange(args.value['shapeResizingArgs'], args.value['shapeMovingArgs'], args.value['type']);
7374
+ break;
7346
7375
  }
7347
7376
  };
7348
7377
  Selection.prototype.getModuleName = function () {
@@ -8165,8 +8194,14 @@ var Selection = /** @__PURE__ @class */ (function () {
8165
8194
  parent.activeObj.activePoint.width = parent.activeObj.activePoint.endX - parent.activeObj.activePoint.startX;
8166
8195
  parent.activeObj.activePoint.height = parent.activeObj.activePoint.endY - parent.activeObj.activePoint.startY;
8167
8196
  var currentShapeSettings = this.updatePrevShapeSettings();
8168
- shapeResizingArgs.currentShapeSettings = this.shapeResizingArgs.currentShapeSettings = currentShapeSettings;
8169
- shapeMovingArgs.currentShapeSettings = this.shapeMovingArgs.currentShapeSettings = currentShapeSettings;
8197
+ if (!isNullOrUndefined(this.shapeResizingArgs) && !isNullOrUndefined(this.shapeMovingArgs)) {
8198
+ shapeResizingArgs.currentShapeSettings = this.shapeResizingArgs.currentShapeSettings = currentShapeSettings;
8199
+ shapeMovingArgs.currentShapeSettings = this.shapeMovingArgs.currentShapeSettings = currentShapeSettings;
8200
+ }
8201
+ else {
8202
+ shapeResizingArgs.currentShapeSettings = currentShapeSettings;
8203
+ shapeMovingArgs.currentShapeSettings = currentShapeSettings;
8204
+ }
8170
8205
  if (type === 'resize') {
8171
8206
  this.isCropSelection = false;
8172
8207
  var splitWords = void 0;
@@ -8221,6 +8256,20 @@ var Selection = /** @__PURE__ @class */ (function () {
8221
8256
  }
8222
8257
  }
8223
8258
  }
8259
+ else if (type === 'mouse-down' || type === 'mouse-up') {
8260
+ if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
8261
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
8262
+ parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeResizingArgs).then(function (shapeResizingArgs) {
8263
+ parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
8264
+ value: { shapeSettings: shapeResizingArgs.currentShapeSettings } });
8265
+ });
8266
+ }
8267
+ else {
8268
+ parent.trigger('shapeChanging', shapeResizingArgs);
8269
+ parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
8270
+ value: { shapeSettings: shapeResizingArgs.currentShapeSettings } });
8271
+ }
8272
+ }
8224
8273
  else {
8225
8274
  if (isBlazor() && isNullOrUndefined(this.parent.eventType) && parent.events &&
8226
8275
  parent.events.onShapeDragStart.hasDelegate === true) {
@@ -9932,6 +9981,12 @@ var Selection = /** @__PURE__ @class */ (function () {
9932
9981
  parent.activeObj.activePoint.endX = parent.activeObj.activePoint.startX;
9933
9982
  parent.activeObj.activePoint.endY = parent.activeObj.activePoint.startY;
9934
9983
  parent.currObjType.isDragging = true;
9984
+ var previousShapeSettings = this.updatePrevShapeSettings();
9985
+ var shapeResizingArgs = { action: 'draw-start', previousShapeSettings: previousShapeSettings };
9986
+ var shapeMovingArgs = { action: 'move', previousShapeSettings: previousShapeSettings };
9987
+ this.shapeResizingArgs = shapeResizingArgs;
9988
+ this.shapeMovingArgs = shapeMovingArgs;
9989
+ this.triggerShapeChange(shapeResizingArgs, shapeMovingArgs, 'mouse-down');
9935
9990
  return;
9936
9991
  }
9937
9992
  parent.notify('draw', { prop: 'resetFrameZoom', onPropertyChange: false });
@@ -10336,7 +10391,7 @@ var Selection = /** @__PURE__ @class */ (function () {
10336
10391
  }
10337
10392
  if (this.currentDrawingShape === 'path') {
10338
10393
  var elem = e.srcElement;
10339
- if (e.currentTarget !== parent.upperCanvas && e.currentTarget !== parent.lowerCanvas &&
10394
+ if (e.currentTarget !== parent.upperCanvas && e.currentTarget !== parent.lowerCanvas && parent.activeObj.pointColl.length > 0 &&
10340
10395
  (elem.classList.contains('e-upload-icon') || elem.parentElement.id === parent.element.id + '_zoomIn' ||
10341
10396
  elem.parentElement.id === parent.element.id + '_zoomOut' || elem.parentElement.id === parent.element.id + '_annotationBtn' ||
10342
10397
  elem.parentElement.id === parent.element.id + '_borderColorBtn' || elem.parentElement.id === parent.element.id + '_borderWidthBtn' ||
@@ -10367,6 +10422,12 @@ var Selection = /** @__PURE__ @class */ (function () {
10367
10422
  if (parent.activeObj.activePoint.width === 0 && parent.activeObj.activePoint.height === 0) {
10368
10423
  parent.notify('draw', { prop: 'performCancel', value: { isContextualToolbar: null } });
10369
10424
  }
10425
+ var previousShapeSettings = this.updatePrevShapeSettings();
10426
+ var shapeResizingArgs = { action: 'draw-end', previousShapeSettings: previousShapeSettings };
10427
+ var shapeMovingArgs = { action: 'move', previousShapeSettings: previousShapeSettings };
10428
+ this.shapeResizingArgs = shapeResizingArgs;
10429
+ this.shapeMovingArgs = shapeMovingArgs;
10430
+ this.triggerShapeChange(shapeResizingArgs, shapeMovingArgs, 'mouse-up');
10370
10431
  }
10371
10432
  this.adjustActObjForLineArrow();
10372
10433
  this.updPtCollForShpRot();
@@ -12705,6 +12766,9 @@ var Shape = /** @__PURE__ @class */ (function () {
12705
12766
  parent.activeObj.activePoint.endY = parent.activeObj.activePoint.startY + parent.activeObj.activePoint.height;
12706
12767
  parent.activeObj.strokeSettings.strokeColor = shapeSettings.strokeColor;
12707
12768
  parent.activeObj.strokeSettings.fillColor = shapeSettings.fillColor;
12769
+ if (isNullOrUndefined(shapeSettings.degree)) {
12770
+ shapeSettings.degree = 0;
12771
+ }
12708
12772
  switch (parent.activeObj.shape) {
12709
12773
  case 'ellipse':
12710
12774
  parent.activeObj.activePoint.width = shapeSettings.radius * 2;
@@ -13535,6 +13599,13 @@ var Shape = /** @__PURE__ @class */ (function () {
13535
13599
  else {
13536
13600
  parent.updateToolbar(parent.element, 'quickAccessToolbar', parent.activeObj.shape);
13537
13601
  }
13602
+ var obj_1 = { shapeSettingsObj: {} };
13603
+ parent.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: obj_1 } });
13604
+ var shapeSettings = obj_1['shapeSettingsObj'];
13605
+ var shapeResizingArgs = { action: 'draw-end', previousShapeSettings: shapeSettings };
13606
+ var shapeMovingArgs = { action: 'move', previousShapeSettings: shapeSettings };
13607
+ parent.notify('selection', { prop: 'triggerShapeChange', onPropertyChange: false,
13608
+ value: { shapeResizingArgs: shapeResizingArgs, shapeMovingArgs: shapeMovingArgs, type: 'mouse-up' } });
13538
13609
  }
13539
13610
  }
13540
13611
  };
@@ -13704,10 +13775,10 @@ var Shape = /** @__PURE__ @class */ (function () {
13704
13775
  value: { width: this.shapeImg.width, height: this.shapeImg.height, obj: dimObj, isImgShape: null } });
13705
13776
  if (width && height) {
13706
13777
  if (isAspectRatio) {
13707
- var obj_1 = { ratio: null };
13778
+ var obj_2 = { ratio: null };
13708
13779
  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']);
13780
+ value: { width: this.shapeImg.width, height: this.shapeImg.height, obj: obj_2 } });
13781
+ dimObj = this.resizeImage(width, obj_2['ratio']);
13711
13782
  }
13712
13783
  else {
13713
13784
  dimObj = { width: width, height: height };
@@ -13720,10 +13791,10 @@ var Shape = /** @__PURE__ @class */ (function () {
13720
13791
  value: { width: this.shapeImg.width, height: this.shapeImg.height, obj: dimObj, isImgShape: true } });
13721
13792
  if (width && height) {
13722
13793
  if (isAspectRatio) {
13723
- var obj_2 = { ratio: null };
13794
+ var obj_3 = { ratio: null };
13724
13795
  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']);
13796
+ value: { width: this.shapeImg.width, height: this.shapeImg.height, obj: obj_3 } });
13797
+ dimObj = this.resizeImage(width, obj_3['ratio']);
13727
13798
  }
13728
13799
  else {
13729
13800
  dimObj = { width: width, height: height };
@@ -14031,6 +14102,9 @@ var Shape = /** @__PURE__ @class */ (function () {
14031
14102
  };
14032
14103
  Shape.prototype.applyFontStyle = function (item) {
14033
14104
  var parent = this.parent;
14105
+ var obj = { shapeSettingsObj: {} };
14106
+ parent.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: obj } });
14107
+ var shapeSettings = obj['shapeSettingsObj'];
14034
14108
  this.pushActItemIntoObj();
14035
14109
  var objColl = extend([], parent.objColl, [], true);
14036
14110
  parent.objColl.pop();
@@ -14054,6 +14128,10 @@ var Shape = /** @__PURE__ @class */ (function () {
14054
14128
  this.updateFontStyle(item, objColl, 'bold', 'italic');
14055
14129
  break;
14056
14130
  }
14131
+ var shapeChangedArgs = { action: 'font-style', previousShapeSettings: extend({}, shapeSettings, {}, true),
14132
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
14133
+ shapeChangedArgs.currentShapeSettings.fontStyle = [item];
14134
+ parent.triggerShapeChanged(shapeChangedArgs);
14057
14135
  };
14058
14136
  Shape.prototype.updateFontStyle = function (item, objColl, fontWeight, fontStyle) {
14059
14137
  var parent = this.parent;
@@ -14417,14 +14495,14 @@ var Shape = /** @__PURE__ @class */ (function () {
14417
14495
  if (!parent.disabled && parent.isImageLoaded) {
14418
14496
  this.applyActObj();
14419
14497
  if (id.split('_')[0] === 'shape') {
14420
- var obj_3;
14498
+ var obj_4;
14421
14499
  for (var i = 0, len = parent.objColl.length; i < len; i++) {
14422
14500
  if (parent.objColl[i].currIndex === id) {
14423
- obj_3 = extend({}, parent.objColl[i], {}, true);
14501
+ obj_4 = extend({}, parent.objColl[i], {}, true);
14424
14502
  break;
14425
14503
  }
14426
14504
  }
14427
- shapeDetails = this.getObjDetails(obj_3);
14505
+ shapeDetails = this.getObjDetails(obj_4);
14428
14506
  }
14429
14507
  else if (id.split('_')[0] === 'pen') {
14430
14508
  shapeDetails = this.getFreehandDrawDetails(parseInt(id.split('_')[1], 10) - 1);
@@ -14576,19 +14654,19 @@ var Shape = /** @__PURE__ @class */ (function () {
14576
14654
  if (!parent.disabled && parent.isImageLoaded) {
14577
14655
  this.applyActObj();
14578
14656
  if (id.split('_')[0] === 'shape') {
14579
- var obj_4;
14657
+ var obj_5;
14580
14658
  for (var i = 0, len = parent.objColl.length; i < len; i++) {
14581
14659
  if (parent.objColl[i].currIndex === id) {
14582
- obj_4 = extend({}, parent.objColl[i], {}, true);
14660
+ obj_5 = extend({}, parent.objColl[i], {}, true);
14583
14661
  break;
14584
14662
  }
14585
14663
  }
14586
- if (isNullOrUndefined(obj_4)) {
14664
+ if (isNullOrUndefined(obj_5)) {
14587
14665
  isSelected = false;
14588
14666
  }
14589
14667
  else {
14590
14668
  isSelected = true;
14591
- parent.activeObj = obj_4;
14669
+ parent.activeObj = obj_5;
14592
14670
  var object = { canvasFilter: null };
14593
14671
  parent.notify('toolbar', { prop: 'getCanvasFilter', onPropertyChange: false, value: { obj: object } });
14594
14672
  this.lowerContext.filter = object['canvasFilter'];
@@ -14627,9 +14705,9 @@ var Shape = /** @__PURE__ @class */ (function () {
14627
14705
  if (object['bool']) {
14628
14706
  parent.okBtn();
14629
14707
  }
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']) {
14708
+ var obj_6 = { isIndex: false };
14709
+ parent.notify('freehand-draw', { prop: 'isFHDIdx', value: { index: parseInt(id.split('_')[1], 10) - 1, obj: obj_6 } });
14710
+ if (obj_6['isIndex']) {
14633
14711
  isSelected = true;
14634
14712
  parent.notify('freehand-draw', { prop: 'selectFhd', value: { id: id } });
14635
14713
  if (!isBlazor()) {
@@ -18508,6 +18586,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
18508
18586
  this.notify('toolbar', { prop: 'create-contextual-toolbar', onPropertyChange: false });
18509
18587
  }
18510
18588
  this.createCanvas();
18589
+ if (this.element.offsetWidth > 359 && this.element.querySelector('.e-ie-min-drop-content') && this.element.querySelector('.e-ie-drop-content')) {
18590
+ this.element.querySelector('.e-ie-min-drop-content').style.display = 'none';
18591
+ this.element.querySelector('.e-ie-drop-content').style.display = 'block';
18592
+ }
18511
18593
  this.createDropUploader();
18512
18594
  if (this.showQuickAccessToolbar) {
18513
18595
  var canvasWrapper = document.querySelector('#' + this.element.id + '_canvasWrapper');
@@ -18667,18 +18749,26 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
18667
18749
  }));
18668
18750
  var dragObj = { key: 'DragText' };
18669
18751
  this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: dragObj } });
18752
+ var dropObj = { key: 'DropText' };
18753
+ this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: dropObj } });
18670
18754
  var browseObj = { key: 'BrowseText' };
18671
18755
  this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: browseObj } });
18672
18756
  var supportObj = { key: 'SupportText' };
18673
18757
  this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: supportObj } });
18674
18758
  var dropAreaElement = this.createElement('div', { id: this.element.id + '_dropArea', className: 'e-ie-drop-area', attrs: { style: 'position: relative;' } });
18675
18759
  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;' } });
18760
+ var dropContentElement = this.createElement('span', { className: 'e-ie-drop-content', attrs: { style: 'position: absolute; display: none;' } });
18677
18761
  dropContentElement.textContent = dragObj['value'] + ' ';
18762
+ var minDropContentElem = this.createElement('span', { className: 'e-ie-min-drop-content', attrs: { style: 'position: absolute;' } });
18763
+ minDropContentElem.textContent = dropObj['value'] + ' ';
18678
18764
  var dropAnchorElement = this.createElement('a', { id: this.element.id + '_dropBrowse', className: 'e-ie-drop-browse' });
18679
18765
  dropAnchorElement.textContent = browseObj['value'];
18766
+ var minDropAnchorElem = this.createElement('a', { id: this.element.id + '_dropBrowse', className: 'e-ie-drop-browse' });
18767
+ minDropAnchorElem.textContent = browseObj['value'];
18680
18768
  dropContentElement.appendChild(dropAnchorElement);
18769
+ minDropContentElem.appendChild(minDropAnchorElem);
18681
18770
  dropAnchorElement.href = '';
18771
+ minDropAnchorElem.href = '';
18682
18772
  var dropInfoElement = this.createElement('span', { className: 'e-ie-drop-info', attrs: { position: 'absolute' } });
18683
18773
  dropInfoElement.textContent = supportObj['value'] + ' SVG, PNG, and JPG';
18684
18774
  var dropUploader = dropAreaElement.appendChild(this.createElement('input', {
@@ -18688,6 +18778,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
18688
18778
  dropUploader.setAttribute('accept', 'image/*');
18689
18779
  dropAreaElement.appendChild(dropIconElement);
18690
18780
  dropAreaElement.appendChild(dropContentElement);
18781
+ dropAreaElement.appendChild(minDropContentElem);
18691
18782
  dropAreaElement.appendChild(dropInfoElement);
18692
18783
  canvasWrapper.appendChild(dropAreaElement);
18693
18784
  this.lowerCanvas = canvasWrapper.appendChild(this.createElement('canvas', {
@@ -19694,7 +19785,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
19694
19785
  * @returns {void}.
19695
19786
  */
19696
19787
  ImageEditor.prototype.okBtn = function (isMouseDown) {
19697
- this.element.querySelector('.e-contextual-toolbar-wrapper').classList.remove('e-frame-wrapper');
19788
+ if (this.element.querySelector('.e-contextual-toolbar-wrapper')) {
19789
+ this.element.querySelector('.e-contextual-toolbar-wrapper').classList.remove('e-frame-wrapper');
19790
+ }
19698
19791
  var isCropSelection = false;
19699
19792
  var splitWords;
19700
19793
  var aspectIcon = this.element.querySelector('#' + this.element.id + '_aspectratio');
@@ -19711,6 +19804,17 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
19711
19804
  isCropSelection = true;
19712
19805
  }
19713
19806
  this.allowDownScale = true;
19807
+ if ((this.activeObj.shape && this.activeObj.shape !== 'image' || this.togglePen) && !isCropSelection) {
19808
+ var objt = { shapeSettingsObj: {} };
19809
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
19810
+ var shapeSettings = objt['shapeSettingsObj'];
19811
+ if (this.togglePen) {
19812
+ shapeSettings.type = ShapeType.FreehandDraw;
19813
+ }
19814
+ var shapeChangedArgs = { action: 'apply', previousShapeSettings: extend({}, shapeSettings, {}, true),
19815
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
19816
+ this.triggerShapeChanged(shapeChangedArgs);
19817
+ }
19714
19818
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
19715
19819
  if (aspectIcon || nonAspectIcon || (isBlazor() && this.currentToolbar === 'resize-toolbar')) {
19716
19820
  var obj_2 = { width: null, height: null };
@@ -20007,6 +20111,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20007
20111
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20008
20112
  var prevCropObj = extend({}, this.cropObj, {}, true);
20009
20113
  var object = { currObj: {} };
20114
+ var objt = { shapeSettingsObj: {} };
20115
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20116
+ var shapeSettings = objt['shapeSettingsObj'];
20010
20117
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20011
20118
  var prevObj = object['currObj'];
20012
20119
  prevObj.objColl = extend([], this.objColl, [], true);
@@ -20043,6 +20150,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20043
20150
  }
20044
20151
  }
20045
20152
  }
20153
+ var shapeChangedArgs = { action: type, previousShapeSettings: extend({}, shapeSettings, {}, true),
20154
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20155
+ this.triggerShapeChanged(shapeChangedArgs);
20046
20156
  };
20047
20157
  /**
20048
20158
  * Apply Font style for text.
@@ -20056,6 +20166,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20056
20166
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20057
20167
  var objColl = extend([], this.objColl, [], true);
20058
20168
  var prevCropObj = extend({}, this.cropObj, {}, true);
20169
+ var objt = { shapeSettingsObj: {} };
20170
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20171
+ var shapeSettings = objt['shapeSettingsObj'];
20059
20172
  var object = { currObj: {} };
20060
20173
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20061
20174
  var prevObj = object['currObj'];
@@ -20104,6 +20217,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20104
20217
  currentText: null, previousFilter: null, isCircleCrop: null } });
20105
20218
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.objColl[this.objColl.length - 1] } });
20106
20219
  }
20220
+ var shapeChangedArgs = { action: 'font-family', previousShapeSettings: extend({}, shapeSettings, {}, true),
20221
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20222
+ shapeChangedArgs.currentShapeSettings.fontFamily = this.textArea.style.fontFamily;
20223
+ this.triggerShapeChanged(shapeChangedArgs);
20107
20224
  };
20108
20225
  /**
20109
20226
  * Apply Font size for text.
@@ -20117,6 +20234,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20117
20234
  this.notify('selection', { prop: 'setInitialTextEdit', value: { bool: false } });
20118
20235
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20119
20236
  var prevCropObj = extend({}, this.cropObj, {}, true);
20237
+ var objt = { shapeSettingsObj: {} };
20238
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20239
+ var shapeSettings = objt['shapeSettingsObj'];
20120
20240
  var object = { currObj: {} };
20121
20241
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20122
20242
  var prevObj = object['currObj'];
@@ -20196,6 +20316,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20196
20316
  currentText: null, previousFilter: null, isCircleCrop: null } });
20197
20317
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.objColl[this.objColl.length - 1] } });
20198
20318
  }
20319
+ var shapeChangedArgs = { action: 'font-size', previousShapeSettings: extend({}, shapeSettings, {}, true),
20320
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20321
+ shapeChangedArgs.currentShapeSettings.fontSize = this.activeObj.textSettings.fontSize;
20322
+ this.triggerShapeChanged(shapeChangedArgs);
20199
20323
  };
20200
20324
  /**
20201
20325
  * Apply Font color for text.
@@ -20208,6 +20332,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20208
20332
  this.notify('selection', { prop: 'setInitialTextEdit', value: { bool: false } });
20209
20333
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20210
20334
  var prevCropObj = extend({}, this.cropObj, {}, true);
20335
+ var objt = { shapeSettingsObj: {} };
20336
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20337
+ var shapeSettings = objt['shapeSettingsObj'];
20211
20338
  var object = { currObj: {} };
20212
20339
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20213
20340
  var prevObj = object['currObj'];
@@ -20255,6 +20382,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20255
20382
  currentText: null, previousFilter: null, isCircleCrop: null } });
20256
20383
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.objColl[this.objColl.length - 1] } });
20257
20384
  }
20385
+ var shapeChangedArgs = { action: 'font-color', previousShapeSettings: extend({}, shapeSettings, {}, true),
20386
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20387
+ shapeChangedArgs.currentShapeSettings.fillColor = value;
20388
+ this.triggerShapeChanged(shapeChangedArgs);
20258
20389
  };
20259
20390
  /**
20260
20391
  * Apply Pen stroke width.
@@ -20268,6 +20399,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20268
20399
  var temp = extend([], this.pointColl, [], true);
20269
20400
  this.updateFreehandDrawColorChange();
20270
20401
  var prevCropObj = extend({}, this.cropObj, {}, true);
20402
+ var objt = { shapeSettingsObj: {} };
20403
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20404
+ var shapeSettings = objt['shapeSettingsObj'];
20271
20405
  var object = { currObj: {} };
20272
20406
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20273
20407
  var prevObj = object['currObj'];
@@ -20298,6 +20432,11 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20298
20432
  previousCropObj: prevCropObj, previousText: null,
20299
20433
  currentText: null, previousFilter: null, isCircleCrop: null } });
20300
20434
  }
20435
+ shapeSettings.type = ShapeType.FreehandDraw;
20436
+ var shapeChangedArgs = { action: 'stroke-width', previousShapeSettings: extend({}, shapeSettings, {}, true),
20437
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20438
+ shapeChangedArgs.currentShapeSettings.strokeWidth = this.activeObj.strokeSettings.strokeWidth;
20439
+ this.triggerShapeChanged(shapeChangedArgs);
20301
20440
  };
20302
20441
  /**
20303
20442
  * Apply Pen stroke color.
@@ -20311,6 +20450,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20311
20450
  var temp = extend([], this.pointColl, [], true);
20312
20451
  this.updateFreehandDrawColorChange();
20313
20452
  var prevCropObj = extend({}, this.cropObj, {}, true);
20453
+ var objt = { shapeSettingsObj: {} };
20454
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20455
+ var shapeSettings = objt['shapeSettingsObj'];
20314
20456
  var object = { currObj: {} };
20315
20457
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
20316
20458
  var prevObj = object['currObj'];
@@ -20342,6 +20484,11 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20342
20484
  else if (!this.togglePen) {
20343
20485
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.activeObj } });
20344
20486
  }
20487
+ shapeSettings.type = ShapeType.FreehandDraw;
20488
+ var shapeChangedArgs = { action: 'stroke-color', previousShapeSettings: extend({}, shapeSettings, {}, true),
20489
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20490
+ shapeChangedArgs.currentShapeSettings.strokeColor = value;
20491
+ this.triggerShapeChanged(shapeChangedArgs);
20345
20492
  };
20346
20493
  /**
20347
20494
  * Apply Shape stroke width.
@@ -20353,6 +20500,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20353
20500
  ImageEditor.prototype.updateStrokeWidth = function (id) {
20354
20501
  if (this.activeObj.shape && (this.activeObj.shape !== 'path' || (this.activeObj.shape === 'path' &&
20355
20502
  this.activeObj.pointColl.length > 0))) {
20503
+ var obj = { shapeSettingsObj: {} };
20504
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: obj } });
20505
+ var shapeSettings = obj['shapeSettingsObj'];
20356
20506
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20357
20507
  var prevCropObj = extend({}, this.cropObj, {}, true);
20358
20508
  var object = { currObj: {} };
@@ -20377,6 +20527,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20377
20527
  previousCropObj: prevCropObj, previousText: null,
20378
20528
  currentText: null, previousFilter: null, isCircleCrop: null } });
20379
20529
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.objColl[this.objColl.length - 1] } });
20530
+ var shapeChangedArgs = { action: 'stroke-width', previousShapeSettings: extend({}, shapeSettings, {}, true),
20531
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20532
+ shapeChangedArgs.currentShapeSettings.strokeWidth = this.activeObj.strokeSettings.strokeWidth;
20533
+ this.triggerShapeChanged(shapeChangedArgs);
20380
20534
  }
20381
20535
  else if (this.activeObj.shape && (this.activeObj.shape === 'path' &&
20382
20536
  this.activeObj.pointColl.length === 0)) {
@@ -20394,6 +20548,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20394
20548
  * @returns {void}.
20395
20549
  */
20396
20550
  ImageEditor.prototype.updateStrokeColor = function (value) {
20551
+ var objt = { shapeSettingsObj: {} };
20552
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
20553
+ var shapeSettings = objt['shapeSettingsObj'];
20397
20554
  if (this.activeObj.shape && (this.activeObj.shape !== 'path' || (this.activeObj.shape === 'path' &&
20398
20555
  this.activeObj.pointColl.length > 0))) {
20399
20556
  this.notify('shape', { prop: 'pushActItemIntoObj' });
@@ -20426,6 +20583,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20426
20583
  this.activeObj.strokeSettings.strokeColor = value;
20427
20584
  this.notify('shape', { prop: 'setStrokeSettings', value: { strokeSettings: null, strokeColor: this.activeObj.strokeSettings.strokeColor, fillColor: null, strokeWidth: null } });
20428
20585
  }
20586
+ var shapeChangedArgs = { action: 'stroke-color', previousShapeSettings: extend({}, shapeSettings, {}, true),
20587
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20588
+ shapeChangedArgs.currentShapeSettings.strokeColor = value;
20589
+ this.triggerShapeChanged(shapeChangedArgs);
20429
20590
  };
20430
20591
  /**
20431
20592
  * Apply Shape fill color.
@@ -20435,6 +20596,9 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20435
20596
  * @returns {void}.
20436
20597
  */
20437
20598
  ImageEditor.prototype.updateFillColor = function (value) {
20599
+ var obj = { shapeSettingsObj: {} };
20600
+ this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: obj } });
20601
+ var shapeSettings = obj['shapeSettingsObj'];
20438
20602
  this.notify('shape', { prop: 'pushActItemIntoObj' });
20439
20603
  var prevCropObj = extend({}, this.cropObj, {}, true);
20440
20604
  var object = { currObj: {} };
@@ -20459,6 +20623,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20459
20623
  previousCropObj: prevCropObj, previousText: null,
20460
20624
  currentText: null, previousFilter: null, isCircleCrop: null } });
20461
20625
  this.notify('selection', { prop: 'redrawShape', value: { obj: this.objColl[this.objColl.length - 1] } });
20626
+ var shapeChangedArgs = { action: 'fill-color', previousShapeSettings: extend({}, shapeSettings, {}, true),
20627
+ currentShapeSettings: extend({}, shapeSettings, {}, true) };
20628
+ shapeChangedArgs.currentShapeSettings.fillColor = value;
20629
+ this.triggerShapeChanged(shapeChangedArgs);
20462
20630
  };
20463
20631
  /**
20464
20632
  * Apply horizontal flip.
@@ -20655,6 +20823,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20655
20823
  if (isBlazor() && this.element.querySelector('.place-holder')) {
20656
20824
  this.element.querySelector('.place-holder').remove();
20657
20825
  }
20826
+ if (this.element.offsetWidth > 359 && this.element.querySelector('.e-ie-min-drop-content') && this.element.querySelector('.e-ie-drop-content')) {
20827
+ this.element.querySelector('.e-ie-min-drop-content').style.display = 'none';
20828
+ this.element.querySelector('.e-ie-drop-content').style.display = 'block';
20829
+ }
20658
20830
  if (isBlazor() && this.element.querySelector('.e-ie-drop-area')) {
20659
20831
  this.element.querySelector('.e-ie-drop-area').style.display = 'block';
20660
20832
  }
@@ -20759,6 +20931,19 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
20759
20931
  // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
20760
20932
  ImageEditor.prototype.updateToolbar = function (element, type, value) {
20761
20933
  };
20934
+ /**
20935
+ * Trigger the shapeChanging event for after the shape applied.
20936
+ *
20937
+ * @param { ShapeChangeEventArgs } shapeChangedArgs - Specifies the shapeChaning event args.
20938
+ * @hidden
20939
+ * @returns {void}.
20940
+ */
20941
+ ImageEditor.prototype.triggerShapeChanged = function (shapeChangedArgs) {
20942
+ if (isBlazor() && this.events && this.events.shapeChanged.hasDelegate === true) {
20943
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
20944
+ this.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'ShapeChanged', shapeChangedArgs);
20945
+ }
20946
+ };
20762
20947
  var ImageEditor_1;
20763
20948
  __decorate([
20764
20949
  Property('')
@@ -21233,6 +21418,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
21233
21418
  W: 'W',
21234
21419
  H: 'H',
21235
21420
  DragText: 'Drag and drop your image here or',
21421
+ DropText: 'Drop your image here or',
21236
21422
  BrowseText: 'Browse here...',
21237
21423
  SupportText: 'Supports:',
21238
21424
  Frame: 'Frame',