@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
@@ -9338,7 +9338,7 @@ class Selection {
9338
9338
  }
9339
9339
  else {
9340
9340
  parent.trigger('shapeChanging', shapeMovingArgs);
9341
- this.isPreventShaping = shapeResizingArgs.cancel;
9341
+ this.isPreventShaping = shapeMovingArgs.cancel;
9342
9342
  parent.notify('shape', { prop: 'updateShapeChangeEventArgs', onPropertyChange: false,
9343
9343
  value: { shapeSettings: shapeMovingArgs.currentShapeSettings } });
9344
9344
  }
@@ -13840,6 +13840,14 @@ class Shape {
13840
13840
  parent.notify('toolbar', { prop: 'destroy-qa-toolbar', onPropertyChange: false });
13841
13841
  parent.notify('toolbar', { prop: 'renderQAT', onPropertyChange: false, value: { isPenEdit: null } });
13842
13842
  }
13843
+ if (text && text.indexOf('\n') > -1 && parent.isPublicMethod) {
13844
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
13845
+ const fontSizeInd = String(parent.fontSizeColl.findIndex((item) => item.text === String(parent.activeObj.textSettings.fontSize)) + 1);
13846
+ parent.noPushUndo = true;
13847
+ parent.updateFontSize('5');
13848
+ parent.updateFontSize(fontSizeInd);
13849
+ parent.noPushUndo = false;
13850
+ }
13843
13851
  if (parent.isPublicMethod && !isSelected) {
13844
13852
  parent.notify('undo-redo', { prop: 'updateUndoRedo', value: { operation: 'shapeInsert' }, onPropertyChange: false });
13845
13853
  }
@@ -15931,7 +15939,9 @@ class Shape {
15931
15939
  pushActItemIntoObj() {
15932
15940
  const parent = this.parent;
15933
15941
  if (parent.textArea.style.display === 'none') {
15934
- parent.objColl.push(parent.activeObj);
15942
+ if (parent.activeObj.activePoint.width !== 0 || parent.activeObj.activePoint.height !== 0) {
15943
+ parent.objColl.push(parent.activeObj);
15944
+ }
15935
15945
  }
15936
15946
  else {
15937
15947
  const temp = extend({}, parent.activeObj, {}, true);
@@ -19561,6 +19571,7 @@ class UndoRedo {
19561
19571
  case 'freehanddraw':
19562
19572
  case 'freehand-draw':
19563
19573
  this.updateFreehandDraw(obj.previousPointColl, obj.previousSelPointColl);
19574
+ parent.notify('freehand-draw', { prop: 'setCurrentFreehandDrawIndex', value: { value: parent.pointColl.length } });
19564
19575
  break;
19565
19576
  case 'freehanddrawCustomized':
19566
19577
  this.updateFreehandDrawCustomized(obj.previousObjColl, obj.previousPointColl);
@@ -19691,6 +19702,7 @@ class UndoRedo {
19691
19702
  case 'freehanddraw':
19692
19703
  case 'freehand-draw':
19693
19704
  this.updateFreehandDraw(obj.currentPointColl, obj.currentSelPointColl);
19705
+ parent.notify('freehand-draw', { prop: 'setCurrentFreehandDrawIndex', value: { value: parent.pointColl.length } });
19694
19706
  break;
19695
19707
  case 'freehanddrawCustomized':
19696
19708
  this.updateFreehandDrawCustomized(obj.currentObjColl, obj.currentPointColl);