@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
|
@@ -9390,7 +9390,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
9390
9390
|
}
|
|
9391
9391
|
else {
|
|
9392
9392
|
parent.trigger('shapeChanging', shapeMovingArgs);
|
|
9393
|
-
this.isPreventShaping =
|
|
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.
|
|
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);
|