@syncfusion/ej2-image-editor 26.2.4 → 26.2.8
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 +18 -7
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +18 -7
- 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 +12 -12
- package/src/image-editor/action/draw.js +10 -1
- package/src/image-editor/action/selection.js +3 -3
- package/src/image-editor/action/shape.js +3 -1
- package/src/image-editor/renderer/toolbar.js +2 -2
- 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) {
|
|
@@ -12177,10 +12186,10 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
12177
12186
|
this.panDown = null;
|
|
12178
12187
|
parent.notify('transform', { prop: 'setPanMove', onPropertyChange: false,
|
|
12179
12188
|
value: { point: null } });
|
|
12180
|
-
parent.notify('transform', { prop: 'setTempPanMove', onPropertyChange: false,
|
|
12181
|
-
value: { point: null } });
|
|
12182
12189
|
}
|
|
12183
12190
|
}
|
|
12191
|
+
parent.notify('transform', { prop: 'setTempPanMove', onPropertyChange: false,
|
|
12192
|
+
value: { point: null } });
|
|
12184
12193
|
if (this.currentDrawingShape !== 'path') {
|
|
12185
12194
|
parent.currObjType.isDragging = false;
|
|
12186
12195
|
}
|
|
@@ -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) {
|
|
@@ -26158,7 +26169,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
26158
26169
|
}
|
|
26159
26170
|
var fileObj = { fileName: '', fileType: '' };
|
|
26160
26171
|
parent.notify('draw', { prop: 'getFileName', onPropertyChange: false, value: { obj: fileObj } });
|
|
26161
|
-
this.fileType = fileObj['fileType'];
|
|
26172
|
+
this.fileType = fileObj['fileType'] ? fileObj['fileType'] : 'JPEG';
|
|
26162
26173
|
parent.notify('export', { prop: 'exportToCanvas', value: { object: obj } });
|
|
26163
26174
|
var tempCanvas = obj['canvas'];
|
|
26164
26175
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
@@ -26170,7 +26181,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
|
|
|
26170
26181
|
var ddbElem = document.getElementById(id + '_saveDropdownbtn');
|
|
26171
26182
|
if (ddbElem) {
|
|
26172
26183
|
var spanElem_1 = document.createElement('span');
|
|
26173
|
-
spanElem_1.innerHTML =
|
|
26184
|
+
spanElem_1.innerHTML = this.fileType.toUpperCase();
|
|
26174
26185
|
if (ddbElem) {
|
|
26175
26186
|
ddbElem.appendChild(spanElem_1);
|
|
26176
26187
|
}
|