@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
|
@@ -4530,7 +4530,16 @@ var Draw = /** @__PURE__ @class */ (function () {
|
|
|
4530
4530
|
y: parent.panPoint.currentPannedPoint.y, panRegion: '' } });
|
|
4531
4531
|
}
|
|
4532
4532
|
this.adjustPanning(activeObj);
|
|
4533
|
-
|
|
4533
|
+
var isActObj = false;
|
|
4534
|
+
for (var i = 0; i < parent.objColl.length; i++) {
|
|
4535
|
+
if (JSON.stringify(activeObj.activePoint) === JSON.stringify(parent.objColl[i].activePoint)) {
|
|
4536
|
+
isActObj = true;
|
|
4537
|
+
break;
|
|
4538
|
+
}
|
|
4539
|
+
}
|
|
4540
|
+
if (!isActObj) {
|
|
4541
|
+
parent.activeObj = activeObj;
|
|
4542
|
+
}
|
|
4534
4543
|
if (parent.activeObj.activePoint.width !== 0 && parent.activeObj.activePoint.height !== 0) {
|
|
4535
4544
|
this.drawObject('duplicate', null, null, null, true);
|
|
4536
4545
|
}
|
|
@@ -11965,7 +11974,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
11965
11974
|
parent.objColl.splice(index, 1);
|
|
11966
11975
|
}
|
|
11967
11976
|
}
|
|
11968
|
-
else if (!isShape && activeObj.shape) {
|
|
11977
|
+
else if (!isShape && activeObj.shape && (activeObj.activePoint.width !== 0 || activeObj.activePoint.height != 0)) {
|
|
11969
11978
|
parent.activeObj = activeObj;
|
|
11970
11979
|
var index = this.getCurrentIndex();
|
|
11971
11980
|
if (!isCropSelection) {
|
|
@@ -13950,7 +13959,9 @@ var Shape = /** @__PURE__ @class */ (function () {
|
|
|
13950
13959
|
var fontSizeInd = String(parent.fontSizeColl.findIndex(function (item) { return item.text === String(parent.activeObj.textSettings.fontSize); }) + 1);
|
|
13951
13960
|
parent.noPushUndo = true;
|
|
13952
13961
|
parent.updateFontSize('5');
|
|
13953
|
-
|
|
13962
|
+
if (parseInt(fontSizeInd, 10) > 0) {
|
|
13963
|
+
parent.updateFontSize(fontSizeInd);
|
|
13964
|
+
}
|
|
13954
13965
|
parent.noPushUndo = false;
|
|
13955
13966
|
}
|
|
13956
13967
|
if (parent.isPublicMethod && !isSelected) {
|
|
@@ -26221,7 +26232,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
26221
26232
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
26222
26233
|
var imgName = document.getElementById(id + '_imgNametext');
|
|
26223
26234
|
imgName.value = this.fileName ? this.fileName : fileObj['fileName'];
|
|
26224
|
-
if (fileObj['fileType'].toUpperCase() !== 'JPEG') {
|
|
26235
|
+
if (fileObj['fileType'] && fileObj['fileType'].toUpperCase() !== 'JPEG') {
|
|
26225
26236
|
qualityContainer.style.display = 'none';
|
|
26226
26237
|
qualitySliderValue.style.display = 'none';
|
|
26227
26238
|
}
|