@syncfusion/ej2-image-editor 26.1.38 → 26.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.
Files changed (68) hide show
  1. package/dist/ej2-image-editor.umd.min.js +2 -2
  2. package/dist/ej2-image-editor.umd.min.js.map +1 -1
  3. package/dist/es6/ej2-image-editor.es2015.js +14 -2
  4. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  5. package/dist/es6/ej2-image-editor.es5.js +14 -2
  6. package/dist/es6/ej2-image-editor.es5.js.map +1 -1
  7. package/dist/global/ej2-image-editor.min.js +2 -2
  8. package/dist/global/ej2-image-editor.min.js.map +1 -1
  9. package/dist/global/index.d.ts +1 -1
  10. package/package.json +9 -9
  11. package/src/image-editor/action/selection.js +1 -1
  12. package/src/image-editor/action/shape.js +11 -1
  13. package/src/image-editor/action/undo-redo.js +2 -0
  14. package/styles/bootstrap-dark.css +7 -0
  15. package/styles/bootstrap.css +7 -0
  16. package/styles/bootstrap4.css +7 -0
  17. package/styles/bootstrap5-dark.css +7 -0
  18. package/styles/bootstrap5.css +7 -0
  19. package/styles/fabric-dark.css +7 -0
  20. package/styles/fabric.css +7 -0
  21. package/styles/fluent-dark.css +7 -0
  22. package/styles/fluent.css +7 -0
  23. package/styles/fluent2.css +12 -5
  24. package/styles/highcontrast-light.css +7 -0
  25. package/styles/highcontrast.css +7 -0
  26. package/styles/image-editor/_bds-definition.scss +1 -0
  27. package/styles/image-editor/_bootstrap-dark-definition.scss +1 -0
  28. package/styles/image-editor/_bootstrap-definition.scss +1 -0
  29. package/styles/image-editor/_bootstrap4-definition.scss +1 -0
  30. package/styles/image-editor/_bootstrap5-definition.scss +1 -0
  31. package/styles/image-editor/_bootstrap5.3-definition.scss +1 -0
  32. package/styles/image-editor/_fabric-dark-definition.scss +1 -0
  33. package/styles/image-editor/_fabric-definition.scss +1 -0
  34. package/styles/image-editor/_fluent-definition.scss +1 -0
  35. package/styles/image-editor/_fluent2-definition.scss +1 -0
  36. package/styles/image-editor/_fusionnew-definition.scss +1 -0
  37. package/styles/image-editor/_highcontrast-definition.scss +1 -0
  38. package/styles/image-editor/_highcontrast-light-definition.scss +1 -0
  39. package/styles/image-editor/_layout.scss +29 -4
  40. package/styles/image-editor/_material-dark-definition.scss +1 -0
  41. package/styles/image-editor/_material-definition.scss +1 -0
  42. package/styles/image-editor/_material3-definition.scss +1 -0
  43. package/styles/image-editor/_tailwind-definition.scss +1 -0
  44. package/styles/image-editor/_theme.scss +7 -0
  45. package/styles/image-editor/bootstrap-dark.css +7 -0
  46. package/styles/image-editor/bootstrap.css +7 -0
  47. package/styles/image-editor/bootstrap4.css +7 -0
  48. package/styles/image-editor/bootstrap5-dark.css +7 -0
  49. package/styles/image-editor/bootstrap5.css +7 -0
  50. package/styles/image-editor/fabric-dark.css +7 -0
  51. package/styles/image-editor/fabric.css +7 -0
  52. package/styles/image-editor/fluent-dark.css +7 -0
  53. package/styles/image-editor/fluent.css +7 -0
  54. package/styles/image-editor/fluent2.css +12 -5
  55. package/styles/image-editor/highcontrast-light.css +7 -0
  56. package/styles/image-editor/highcontrast.css +7 -0
  57. package/styles/image-editor/material-dark.css +7 -0
  58. package/styles/image-editor/material.css +7 -0
  59. package/styles/image-editor/material3-dark.css +20 -3
  60. package/styles/image-editor/material3.css +20 -3
  61. package/styles/image-editor/tailwind-dark.css +7 -0
  62. package/styles/image-editor/tailwind.css +7 -0
  63. package/styles/material-dark.css +7 -0
  64. package/styles/material.css +7 -0
  65. package/styles/material3-dark.css +20 -3
  66. package/styles/material3.css +20 -3
  67. package/styles/tailwind-dark.css +7 -0
  68. package/styles/tailwind.css +7 -0
@@ -9390,7 +9390,7 @@ var Selection = /** @__PURE__ @class */ (function () {
9390
9390
  }
9391
9391
  else {
9392
9392
  parent.trigger('shapeChanging', shapeMovingArgs);
9393
- this.isPreventShaping = shapeResizingArgs.cancel;
9393
+ this.isPreventShaping = shapeMovingArgs.cancel;
9394
9394
  parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
9395
9395
  value: { shapeSettings: shapeMovingArgs.currentShapeSettings } });
9396
9396
  }
@@ -13894,6 +13894,14 @@ var Shape = /** @__PURE__ @class */ (function () {
13894
13894
  parent.notify('toolbar', { prop: 'destroy-qa-toolbar', onPropertyChange: false });
13895
13895
  parent.notify('toolbar', { prop: 'renderQAT', onPropertyChange: false, value: { isPenEdit: null } });
13896
13896
  }
13897
+ if (text && text.indexOf('\n') > -1 && parent.isPublicMethod) {
13898
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
13899
+ var fontSizeInd = String(parent.fontSizeColl.findIndex(function (item) { return item.text === String(parent.activeObj.textSettings.fontSize); }) + 1);
13900
+ parent.noPushUndo = true;
13901
+ parent.updateFontSize('5');
13902
+ parent.updateFontSize(fontSizeInd);
13903
+ parent.noPushUndo = false;
13904
+ }
13897
13905
  if (parent.isPublicMethod && !isSelected) {
13898
13906
  parent.notify('undo-redo', { prop: 'updateUndoRedo', value: { operation: 'shapeInsert' }, onPropertyChange: false });
13899
13907
  }
@@ -15987,7 +15995,9 @@ var Shape = /** @__PURE__ @class */ (function () {
15987
15995
  Shape.prototype.pushActItemIntoObj = function () {
15988
15996
  var parent = this.parent;
15989
15997
  if (parent.textArea.style.display === 'none') {
15990
- parent.objColl.push(parent.activeObj);
15998
+ if (parent.activeObj.activePoint.width !== 0 || parent.activeObj.activePoint.height !== 0) {
15999
+ parent.objColl.push(parent.activeObj);
16000
+ }
15991
16001
  }
15992
16002
  else {
15993
16003
  var temp = extend({}, parent.activeObj, {}, true);
@@ -19620,6 +19630,7 @@ var UndoRedo = /** @__PURE__ @class */ (function () {
19620
19630
  case 'freehanddraw':
19621
19631
  case 'freehand-draw':
19622
19632
  this.updateFreehandDraw(obj.previousPointColl, obj.previousSelPointColl);
19633
+ parent.notify('freehand-draw', { prop: 'setCurrentFreehandDrawIndex', value: { value: parent.pointColl.length } });
19623
19634
  break;
19624
19635
  case 'freehanddrawCustomized':
19625
19636
  this.updateFreehandDrawCustomized(obj.previousObjColl, obj.previousPointColl);
@@ -19750,6 +19761,7 @@ var UndoRedo = /** @__PURE__ @class */ (function () {
19750
19761
  case 'freehanddraw':
19751
19762
  case 'freehand-draw':
19752
19763
  this.updateFreehandDraw(obj.currentPointColl, obj.currentSelPointColl);
19764
+ parent.notify('freehand-draw', { prop: 'setCurrentFreehandDrawIndex', value: { value: parent.pointColl.length } });
19753
19765
  break;
19754
19766
  case 'freehanddrawCustomized':
19755
19767
  this.updateFreehandDrawCustomized(obj.currentObjColl, obj.currentPointColl);