@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.
- package/dist/ej2-image-editor.umd.min.js +2 -2
- package/dist/ej2-image-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-image-editor.es2015.js +14 -2
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +14 -2
- package/dist/es6/ej2-image-editor.es5.js.map +1 -1
- package/dist/global/ej2-image-editor.min.js +2 -2
- package/dist/global/ej2-image-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -9
- package/src/image-editor/action/selection.js +1 -1
- package/src/image-editor/action/shape.js +11 -1
- package/src/image-editor/action/undo-redo.js +2 -0
- package/styles/bootstrap-dark.css +7 -0
- package/styles/bootstrap.css +7 -0
- package/styles/bootstrap4.css +7 -0
- package/styles/bootstrap5-dark.css +7 -0
- package/styles/bootstrap5.css +7 -0
- package/styles/fabric-dark.css +7 -0
- package/styles/fabric.css +7 -0
- package/styles/fluent-dark.css +7 -0
- package/styles/fluent.css +7 -0
- package/styles/fluent2.css +12 -5
- package/styles/highcontrast-light.css +7 -0
- package/styles/highcontrast.css +7 -0
- package/styles/image-editor/_bds-definition.scss +1 -0
- package/styles/image-editor/_bootstrap-dark-definition.scss +1 -0
- package/styles/image-editor/_bootstrap-definition.scss +1 -0
- package/styles/image-editor/_bootstrap4-definition.scss +1 -0
- package/styles/image-editor/_bootstrap5-definition.scss +1 -0
- package/styles/image-editor/_bootstrap5.3-definition.scss +1 -0
- package/styles/image-editor/_fabric-dark-definition.scss +1 -0
- package/styles/image-editor/_fabric-definition.scss +1 -0
- package/styles/image-editor/_fluent-definition.scss +1 -0
- package/styles/image-editor/_fluent2-definition.scss +1 -0
- package/styles/image-editor/_fusionnew-definition.scss +1 -0
- package/styles/image-editor/_highcontrast-definition.scss +1 -0
- package/styles/image-editor/_highcontrast-light-definition.scss +1 -0
- package/styles/image-editor/_layout.scss +29 -4
- package/styles/image-editor/_material-dark-definition.scss +1 -0
- package/styles/image-editor/_material-definition.scss +1 -0
- package/styles/image-editor/_material3-definition.scss +1 -0
- package/styles/image-editor/_tailwind-definition.scss +1 -0
- package/styles/image-editor/_theme.scss +7 -0
- package/styles/image-editor/bootstrap-dark.css +7 -0
- package/styles/image-editor/bootstrap.css +7 -0
- package/styles/image-editor/bootstrap4.css +7 -0
- package/styles/image-editor/bootstrap5-dark.css +7 -0
- package/styles/image-editor/bootstrap5.css +7 -0
- package/styles/image-editor/fabric-dark.css +7 -0
- package/styles/image-editor/fabric.css +7 -0
- package/styles/image-editor/fluent-dark.css +7 -0
- package/styles/image-editor/fluent.css +7 -0
- package/styles/image-editor/fluent2.css +12 -5
- package/styles/image-editor/highcontrast-light.css +7 -0
- package/styles/image-editor/highcontrast.css +7 -0
- package/styles/image-editor/material-dark.css +7 -0
- package/styles/image-editor/material.css +7 -0
- package/styles/image-editor/material3-dark.css +20 -3
- package/styles/image-editor/material3.css +20 -3
- package/styles/image-editor/tailwind-dark.css +7 -0
- package/styles/image-editor/tailwind.css +7 -0
- package/styles/material-dark.css +7 -0
- package/styles/material.css +7 -0
- package/styles/material3-dark.css +20 -3
- package/styles/material3.css +20 -3
- package/styles/tailwind-dark.css +7 -0
- 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 =
|
|
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.
|
|
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);
|