@syncfusion/ej2-image-editor 26.2.5 → 26.2.9
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 +15 -4
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +15 -4
- 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/draw.js +10 -1
- package/src/image-editor/action/selection.js +1 -1
- package/src/image-editor/action/shape.js +3 -1
- package/src/image-editor/renderer/toolbar.js +1 -1
- package/styles/fluent2.css +3 -1031
- package/styles/image-editor/fluent2.css +3 -1031
- package/styles/image-editor/material3-dark.css +1 -54
- package/styles/image-editor/material3.css +3 -110
- package/styles/material3-dark.css +1 -54
- package/styles/material3.css +3 -110
|
@@ -4500,7 +4500,16 @@ class Draw {
|
|
|
4500
4500
|
y: parent.panPoint.currentPannedPoint.y, panRegion: '' } });
|
|
4501
4501
|
}
|
|
4502
4502
|
this.adjustPanning(activeObj);
|
|
4503
|
-
|
|
4503
|
+
let isActObj = false;
|
|
4504
|
+
for (let i = 0; i < parent.objColl.length; i++) {
|
|
4505
|
+
if (JSON.stringify(activeObj.activePoint) === JSON.stringify(parent.objColl[i].activePoint)) {
|
|
4506
|
+
isActObj = true;
|
|
4507
|
+
break;
|
|
4508
|
+
}
|
|
4509
|
+
}
|
|
4510
|
+
if (!isActObj) {
|
|
4511
|
+
parent.activeObj = activeObj;
|
|
4512
|
+
}
|
|
4504
4513
|
if (parent.activeObj.activePoint.width !== 0 && parent.activeObj.activePoint.height !== 0) {
|
|
4505
4514
|
this.drawObject('duplicate', null, null, null, true);
|
|
4506
4515
|
}
|
|
@@ -11913,7 +11922,7 @@ class Selection {
|
|
|
11913
11922
|
parent.objColl.splice(index, 1);
|
|
11914
11923
|
}
|
|
11915
11924
|
}
|
|
11916
|
-
else if (!isShape && activeObj.shape) {
|
|
11925
|
+
else if (!isShape && activeObj.shape && (activeObj.activePoint.width !== 0 || activeObj.activePoint.height != 0)) {
|
|
11917
11926
|
parent.activeObj = activeObj;
|
|
11918
11927
|
const index = this.getCurrentIndex();
|
|
11919
11928
|
if (!isCropSelection) {
|
|
@@ -13897,7 +13906,9 @@ class Shape {
|
|
|
13897
13906
|
const fontSizeInd = String(parent.fontSizeColl.findIndex((item) => item.text === String(parent.activeObj.textSettings.fontSize)) + 1);
|
|
13898
13907
|
parent.noPushUndo = true;
|
|
13899
13908
|
parent.updateFontSize('5');
|
|
13900
|
-
|
|
13909
|
+
if (parseInt(fontSizeInd, 10) > 0) {
|
|
13910
|
+
parent.updateFontSize(fontSizeInd);
|
|
13911
|
+
}
|
|
13901
13912
|
parent.noPushUndo = false;
|
|
13902
13913
|
}
|
|
13903
13914
|
if (parent.isPublicMethod && !isSelected) {
|
|
@@ -26114,7 +26125,7 @@ class ToolbarModule {
|
|
|
26114
26125
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
26115
26126
|
const imgName = document.getElementById(id + '_imgNametext');
|
|
26116
26127
|
imgName.value = this.fileName ? this.fileName : fileObj['fileName'];
|
|
26117
|
-
if (fileObj['fileType'].toUpperCase() !== 'JPEG') {
|
|
26128
|
+
if (fileObj['fileType'] && fileObj['fileType'].toUpperCase() !== 'JPEG') {
|
|
26118
26129
|
qualityContainer.style.display = 'none';
|
|
26119
26130
|
qualitySliderValue.style.display = 'none';
|
|
26120
26131
|
}
|