@syncfusion/ej2-image-editor 31.2.12 → 31.2.16
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 +41 -43
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +41 -43
- 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 +5 -5
- package/src/image-editor/renderer/toolbar.js +41 -43
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 31.2.
|
|
3
|
+
* version : 31.2.16
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-image-editor",
|
|
3
|
-
"version": "31.2.
|
|
3
|
+
"version": "31.2.16",
|
|
4
4
|
"description": "Essential JS 2 ImageEditor",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"es2015": "./dist/es6/ej2-image-editor.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@syncfusion/ej2-base": "~31.2.12",
|
|
12
|
-
"@syncfusion/ej2-buttons": "~31.2.
|
|
13
|
-
"@syncfusion/ej2-dropdowns": "~31.2.
|
|
14
|
-
"@syncfusion/ej2-inputs": "~31.2.
|
|
15
|
-
"@syncfusion/ej2-navigations": "~31.2.
|
|
12
|
+
"@syncfusion/ej2-buttons": "~31.2.16",
|
|
13
|
+
"@syncfusion/ej2-dropdowns": "~31.2.16",
|
|
14
|
+
"@syncfusion/ej2-inputs": "~31.2.15",
|
|
15
|
+
"@syncfusion/ej2-navigations": "~31.2.16",
|
|
16
16
|
"@syncfusion/ej2-popups": "~31.2.12",
|
|
17
17
|
"@syncfusion/ej2-splitbuttons": "~31.2.12"
|
|
18
18
|
},
|
|
@@ -1201,17 +1201,17 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
var frame = document.querySelector('#' + id + '_frame');
|
|
1203
1203
|
if (frame && ((parent.currSelectionPoint && parent.currSelectionPoint.shape === 'crop-circle') || parent.isCircleCrop)) {
|
|
1204
|
-
frame.classList.add('e-overlay');
|
|
1204
|
+
frame.parentElement.classList.add('e-overlay');
|
|
1205
1205
|
}
|
|
1206
1206
|
else if (frame) {
|
|
1207
|
-
frame.classList.remove('e-overlay');
|
|
1207
|
+
frame.parentElement.classList.remove('e-overlay');
|
|
1208
1208
|
}
|
|
1209
1209
|
var ratio = document.querySelector('#' + id + '_aspectratio');
|
|
1210
1210
|
if (ratio && ((parent.currSelectionPoint && parent.currSelectionPoint.shape === 'crop-circle') || parent.isCircleCrop)) {
|
|
1211
|
-
ratio.classList.add('e-overlay');
|
|
1211
|
+
ratio.parentElement.classList.add('e-overlay');
|
|
1212
1212
|
}
|
|
1213
1213
|
else if (ratio) {
|
|
1214
|
-
ratio.classList.remove('e-overlay');
|
|
1214
|
+
ratio.parentElement.classList.remove('e-overlay');
|
|
1215
1215
|
}
|
|
1216
1216
|
};
|
|
1217
1217
|
ToolbarModule.prototype.createLeftToolbarControls = function () {
|
|
@@ -1445,34 +1445,34 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
1445
1445
|
&& parent.activeObj.pointColl.length === 0)) &&
|
|
1446
1446
|
isNullOrUndefined(obj['freehandDrawSelectedId'])) {
|
|
1447
1447
|
if (duplicateElement) {
|
|
1448
|
-
duplicateElement.classList.add('e-overlay');
|
|
1448
|
+
duplicateElement.parentElement.classList.add('e-overlay');
|
|
1449
1449
|
}
|
|
1450
1450
|
if (removeElement) {
|
|
1451
|
-
removeElement.classList.add('e-overlay');
|
|
1451
|
+
removeElement.parentElement.classList.add('e-overlay');
|
|
1452
1452
|
}
|
|
1453
1453
|
if (editTextElement) {
|
|
1454
|
-
editTextElement.classList.add('e-overlay');
|
|
1454
|
+
editTextElement.parentElement.classList.add('e-overlay');
|
|
1455
1455
|
}
|
|
1456
1456
|
if (zOrderElement) {
|
|
1457
|
-
zOrderElement.classList.add('e-overlay');
|
|
1457
|
+
zOrderElement.parentElement.classList.add('e-overlay');
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
1460
|
else {
|
|
1461
1461
|
if (duplicateElement) {
|
|
1462
|
-
duplicateElement.classList.remove('e-overlay');
|
|
1462
|
+
duplicateElement.parentElement.classList.remove('e-overlay');
|
|
1463
1463
|
}
|
|
1464
1464
|
if (removeElement) {
|
|
1465
|
-
removeElement.classList.remove('e-overlay');
|
|
1465
|
+
removeElement.parentElement.classList.remove('e-overlay');
|
|
1466
1466
|
}
|
|
1467
1467
|
if (editTextElement) {
|
|
1468
|
-
editTextElement.classList.remove('e-overlay');
|
|
1468
|
+
editTextElement.parentElement.classList.remove('e-overlay');
|
|
1469
1469
|
}
|
|
1470
1470
|
if (zOrderElement) {
|
|
1471
|
-
zOrderElement.classList.remove('e-overlay');
|
|
1471
|
+
zOrderElement.parentElement.classList.remove('e-overlay');
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
1474
|
if (zOrderElement && (parent.shapeColl.length === 0 || (obj['freehandDrawSelectedId'] && parent.shapeColl.length === 1))) {
|
|
1475
|
-
zOrderElement.classList.add('e-overlay');
|
|
1475
|
+
zOrderElement.parentElement.classList.add('e-overlay');
|
|
1476
1476
|
}
|
|
1477
1477
|
};
|
|
1478
1478
|
ToolbarModule.prototype.renderStraightenSlider = function () {
|
|
@@ -3359,7 +3359,7 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
3359
3359
|
var drawingObject = { shape: '' };
|
|
3360
3360
|
parent.notify('selection', { prop: 'getCurrentDrawingShape', onPropertyChange: false, value: { obj: drawingObject } });
|
|
3361
3361
|
if (drawingObject['shape'] === 'path' && okBtn) {
|
|
3362
|
-
okBtn.classList.add('e-overlay');
|
|
3362
|
+
okBtn.parentElement.classList.add('e-overlay');
|
|
3363
3363
|
}
|
|
3364
3364
|
}
|
|
3365
3365
|
if (parent.activeObj.shape === 'line' || parent.activeObj.shape === 'path') {
|
|
@@ -4851,11 +4851,11 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
4851
4851
|
var orderObj = { order: null };
|
|
4852
4852
|
parent.notify('shape', { prop: 'getHighestOrder', onPropertyChange: false, value: { obj: orderObj } });
|
|
4853
4853
|
if (parent.activeObj.order > orderObj['order'] && document.getElementById(parent.element.id + '_bringToFront')) {
|
|
4854
|
-
document.getElementById(parent.element.id + '_bringToFront').classList.add('e-overlay');
|
|
4854
|
+
document.getElementById(parent.element.id + '_bringToFront').parentElement.classList.add('e-overlay');
|
|
4855
4855
|
}
|
|
4856
4856
|
else {
|
|
4857
4857
|
if (document.getElementById(parent.element.id + '_bringToFront')) {
|
|
4858
|
-
document.getElementById(parent.element.id + '_bringToFront').classList.remove('e-overlay');
|
|
4858
|
+
document.getElementById(parent.element.id + '_bringToFront').parentElement.classList.remove('e-overlay');
|
|
4859
4859
|
}
|
|
4860
4860
|
}
|
|
4861
4861
|
qtArea.style.width = 'auto';
|
|
@@ -4909,11 +4909,11 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
4909
4909
|
parent.notify('shape', { prop: 'getHighestOrder', onPropertyChange: false, value: { obj: orderObj } });
|
|
4910
4910
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4911
4911
|
if (parent.getObjFromId(parent.pointColl[indexObj['freehandSelectedIndex']].id).order >= orderObj['order'] && document.getElementById(parent.element.id + '_bringToFront')) {
|
|
4912
|
-
document.getElementById(parent.element.id + '_bringToFront').classList.add('e-overlay');
|
|
4912
|
+
document.getElementById(parent.element.id + '_bringToFront').parentElement.classList.add('e-overlay');
|
|
4913
4913
|
}
|
|
4914
4914
|
else {
|
|
4915
4915
|
if (document.getElementById(parent.element.id + '_bringToFront')) {
|
|
4916
|
-
document.getElementById(parent.element.id + '_bringToFront').classList.remove('e-overlay');
|
|
4916
|
+
document.getElementById(parent.element.id + '_bringToFront').parentElement.classList.remove('e-overlay');
|
|
4917
4917
|
}
|
|
4918
4918
|
}
|
|
4919
4919
|
var obj = { activePoint: null };
|
|
@@ -5079,32 +5079,30 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
5079
5079
|
parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
|
|
5080
5080
|
break;
|
|
5081
5081
|
case 'bringtofront':
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
isDisabled = order > orderObj['order'] ? true : false;
|
|
5099
|
-
}
|
|
5100
|
-
if (isDisabled) {
|
|
5101
|
-
document.getElementById(parent.element.id + '_bringToFront').classList.add('e-overlay');
|
|
5102
|
-
}
|
|
5103
|
-
else {
|
|
5104
|
-
document.getElementById(parent.element.id + '_bringToFront').classList.remove('e-overlay');
|
|
5105
|
-
}
|
|
5106
|
-
parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
|
|
5082
|
+
parent.notify('freehand-draw', { prop: 'getFreehandSelectedIndex', onPropertyChange: false, value: { obj: indexObj } });
|
|
5083
|
+
shapeId = indexObj['freehandSelectedIndex'] !== null ? parent.pointColl[indexObj['freehandSelectedIndex']].id :
|
|
5084
|
+
parent.activeObj.currIndex;
|
|
5085
|
+
parent.updateShapeOrder(shapeId, type);
|
|
5086
|
+
isDisabled = false;
|
|
5087
|
+
parent.notify('shape', { prop: 'getHighestOrder', onPropertyChange: false, value: { obj: orderObj } });
|
|
5088
|
+
if (shapeId.indexOf('pen') > -1) {
|
|
5089
|
+
parent.notify('shape', { prop: 'updateShapeColl', onPropertyChange: false });
|
|
5090
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
5091
|
+
var order = parent.getObjFromId(shapeId).order;
|
|
5092
|
+
isDisabled = order >= orderObj['order'] ? true : false;
|
|
5093
|
+
}
|
|
5094
|
+
else {
|
|
5095
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
5096
|
+
var order = parent.getObjFromId(shapeId).order;
|
|
5097
|
+
isDisabled = order > orderObj['order'] ? true : false;
|
|
5107
5098
|
}
|
|
5099
|
+
if (isDisabled) {
|
|
5100
|
+
document.getElementById(parent.element.id + '_bringToFront').classList.add('e-overlay');
|
|
5101
|
+
}
|
|
5102
|
+
else {
|
|
5103
|
+
document.getElementById(parent.element.id + '_bringToFront').classList.remove('e-overlay');
|
|
5104
|
+
}
|
|
5105
|
+
parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
|
|
5108
5106
|
break;
|
|
5109
5107
|
}
|
|
5110
5108
|
if (type === 'duplicate' || type === 'remove') {
|