@syncfusion/ej2-image-editor 24.1.43 → 24.1.45
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/CHANGELOG.md +16 -0
- package/README.md +1 -1
- 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 +74 -38
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +74 -38
- 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 +29 -18
- package/src/image-editor/action/selection.js +8 -0
- package/src/image-editor/action/transform.js +5 -7
- package/src/image-editor/action/undo-redo.js +11 -1
- package/src/image-editor/renderer/toolbar.js +21 -12
- package/styles/bootstrap-dark.css +29 -2
- package/styles/bootstrap.css +29 -2
- package/styles/bootstrap4.css +29 -2
- package/styles/bootstrap5-dark.css +29 -2
- package/styles/bootstrap5.css +29 -2
- package/styles/fabric-dark.css +29 -2
- package/styles/fabric.css +29 -2
- package/styles/fluent-dark.css +29 -2
- package/styles/fluent.css +29 -2
- package/styles/highcontrast-light.css +29 -2
- package/styles/highcontrast.css +29 -2
- package/styles/image-editor/_bootstrap-dark-definition.scss +2 -0
- package/styles/image-editor/_bootstrap-definition.scss +2 -0
- package/styles/image-editor/_bootstrap4-definition.scss +2 -0
- package/styles/image-editor/_bootstrap5-definition.scss +2 -0
- package/styles/image-editor/_fabric-dark-definition.scss +2 -0
- package/styles/image-editor/_fabric-definition.scss +2 -0
- package/styles/image-editor/_fluent-definition.scss +2 -0
- package/styles/image-editor/_highcontrast-definition.scss +2 -0
- package/styles/image-editor/_highcontrast-light-definition.scss +2 -0
- package/styles/image-editor/_layout.scss +37 -6
- package/styles/image-editor/_material-dark-definition.scss +3 -1
- package/styles/image-editor/_material-definition.scss +3 -1
- package/styles/image-editor/_material3-definition.scss +2 -0
- package/styles/image-editor/_tailwind-definition.scss +2 -0
- package/styles/image-editor/bootstrap-dark.css +29 -2
- package/styles/image-editor/bootstrap.css +29 -2
- package/styles/image-editor/bootstrap4.css +29 -2
- package/styles/image-editor/bootstrap5-dark.css +29 -2
- package/styles/image-editor/bootstrap5.css +29 -2
- package/styles/image-editor/fabric-dark.css +29 -2
- package/styles/image-editor/fabric.css +29 -2
- package/styles/image-editor/fluent-dark.css +29 -2
- package/styles/image-editor/fluent.css +29 -2
- package/styles/image-editor/highcontrast-light.css +29 -2
- package/styles/image-editor/highcontrast.css +29 -2
- package/styles/image-editor/material-dark.css +30 -3
- package/styles/image-editor/material.css +30 -3
- package/styles/image-editor/material3-dark.css +27 -2
- package/styles/image-editor/material3.css +27 -2
- package/styles/image-editor/tailwind-dark.css +29 -2
- package/styles/image-editor/tailwind.css +29 -2
- package/styles/material-dark.css +30 -3
- package/styles/material.css +30 -3
- package/styles/material3-dark.css +27 -2
- package/styles/material3.css +27 -2
- package/styles/tailwind-dark.css +29 -2
- package/styles/tailwind.css +29 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.1.
|
|
3
|
+
* version : 24.1.45
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-image-editor@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-image-editor@24.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-image-editor@24.1.44",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-W2VCeuMZRU4WP2BwfpPHF6O6Z0Bff5uCM4U0jWrezd8DQPM4EhOv0EtmzH7eeBnxQNccdBhNXH9H0nB/Txf1Jw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-image-editor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-image-editor",
|
|
24
24
|
"/@syncfusion/ej2-vue-image-editor"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-24.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-24.1.44.tgz",
|
|
27
|
+
"_shasum": "657a8d93d69ff858081ecc60981be7987f93ec89",
|
|
28
28
|
"_spec": "@syncfusion/ej2-image-editor@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@syncfusion/ej2-base": "~24.1.42",
|
|
36
|
-
"@syncfusion/ej2-buttons": "~24.1.
|
|
37
|
-
"@syncfusion/ej2-inputs": "~24.1.
|
|
36
|
+
"@syncfusion/ej2-buttons": "~24.1.45",
|
|
37
|
+
"@syncfusion/ej2-inputs": "~24.1.45",
|
|
38
38
|
"@syncfusion/ej2-navigations": "~24.1.41",
|
|
39
|
-
"@syncfusion/ej2-popups": "~24.1.
|
|
40
|
-
"@syncfusion/ej2-splitbuttons": "~24.1.
|
|
39
|
+
"@syncfusion/ej2-popups": "~24.1.44",
|
|
40
|
+
"@syncfusion/ej2-splitbuttons": "~24.1.45"
|
|
41
41
|
},
|
|
42
42
|
"deprecated": false,
|
|
43
43
|
"description": "Essential JS 2 ImageEditor",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
|
|
68
68
|
},
|
|
69
69
|
"typings": "index.d.ts",
|
|
70
|
-
"version": "24.1.
|
|
70
|
+
"version": "24.1.45",
|
|
71
71
|
"sideEffects": false,
|
|
72
72
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
73
73
|
}
|
|
@@ -82,7 +82,7 @@ var Draw = /** @class */ (function () {
|
|
|
82
82
|
this.updateCanvas();
|
|
83
83
|
break;
|
|
84
84
|
case 'performCancel':
|
|
85
|
-
this.performCancel(args.value['isContextualToolbar']);
|
|
85
|
+
this.performCancel(args.value['isContextualToolbar'], args.value['isUndoRedo']);
|
|
86
86
|
break;
|
|
87
87
|
case 'updateFlipPan':
|
|
88
88
|
this.updateFlipPan(args.value['tempSelectionObj']);
|
|
@@ -574,13 +574,11 @@ var Draw = /** @class */ (function () {
|
|
|
574
574
|
if (destTop < 0) {
|
|
575
575
|
height += destTop;
|
|
576
576
|
}
|
|
577
|
-
if (
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
height -= (destTop + destHeight - parent.lowerCanvas.height);
|
|
583
|
-
}
|
|
577
|
+
if (destLeft + destWidth > parent.lowerCanvas.width) {
|
|
578
|
+
width -= (destLeft + destWidth - parent.lowerCanvas.width);
|
|
579
|
+
}
|
|
580
|
+
if (destTop + destHeight > parent.lowerCanvas.height) {
|
|
581
|
+
height -= (destTop + destHeight - parent.lowerCanvas.height);
|
|
584
582
|
}
|
|
585
583
|
}
|
|
586
584
|
switch (parent.currObjType.shape.toLowerCase()) {
|
|
@@ -2202,7 +2200,7 @@ var Draw = /** @class */ (function () {
|
|
|
2202
2200
|
parent.img.destHeight = maxDimension.width;
|
|
2203
2201
|
}
|
|
2204
2202
|
parent.img.destLeft = (parent.lowerCanvas.clientWidth - maxDimension.height) / 2;
|
|
2205
|
-
parent.img.destTop = (parent.lowerCanvas.clientHeight - maxDimension.width
|
|
2203
|
+
parent.img.destTop = (parent.lowerCanvas.clientHeight - maxDimension.width) / 2;
|
|
2206
2204
|
parent.img.destWidth = maxDimension.height;
|
|
2207
2205
|
parent.img.destHeight = maxDimension.width;
|
|
2208
2206
|
}
|
|
@@ -2218,7 +2216,12 @@ var Draw = /** @class */ (function () {
|
|
|
2218
2216
|
parent.img.destHeight = maxDimension.height;
|
|
2219
2217
|
}
|
|
2220
2218
|
parent.img.destLeft = (parent.lowerCanvas.clientWidth - maxDimension.width) / 2;
|
|
2221
|
-
|
|
2219
|
+
if (degree === 0) {
|
|
2220
|
+
parent.img.destTop = (parent.lowerCanvas.clientHeight - maxDimension.height + 1) / 2;
|
|
2221
|
+
}
|
|
2222
|
+
else {
|
|
2223
|
+
parent.img.destTop = (parent.lowerCanvas.clientHeight - maxDimension.height) / 2;
|
|
2224
|
+
}
|
|
2222
2225
|
parent.img.destWidth = maxDimension.width;
|
|
2223
2226
|
parent.img.destHeight = maxDimension.height;
|
|
2224
2227
|
}
|
|
@@ -2533,14 +2536,14 @@ var Draw = /** @class */ (function () {
|
|
|
2533
2536
|
parent.cancelCropSelection = null;
|
|
2534
2537
|
}
|
|
2535
2538
|
};
|
|
2536
|
-
Draw.prototype.performCancel = function (isContextualToolbar) {
|
|
2539
|
+
Draw.prototype.performCancel = function (isContextualToolbar, isUndoRedo) {
|
|
2537
2540
|
var parent = this.parent;
|
|
2538
2541
|
var straightenObj = { bool: parent.isStraightening };
|
|
2539
2542
|
isContextualToolbar = isContextualToolbar ? isContextualToolbar : false;
|
|
2540
2543
|
var obj = { bool: false };
|
|
2541
2544
|
parent.allowDownScale = true;
|
|
2542
2545
|
parent.notify('selection', { prop: 'getFreehandDrawEditing', onPropertyChange: false, value: { obj: obj } });
|
|
2543
|
-
if (JSON.stringify(parent.frameObj) !== JSON.stringify(parent.tempFrameObj)) {
|
|
2546
|
+
if (isNullOrUndefined(isUndoRedo) && JSON.stringify(parent.frameObj) !== JSON.stringify(parent.tempFrameObj)) {
|
|
2544
2547
|
extend(parent.frameObj, parent.tempFrameObj);
|
|
2545
2548
|
this.renderImage(null, null, true);
|
|
2546
2549
|
}
|
|
@@ -2614,11 +2617,19 @@ var Draw = /** @class */ (function () {
|
|
|
2614
2617
|
if (!isBlazor()) {
|
|
2615
2618
|
parent.element.querySelector('.e-contextual-toolbar-wrapper').classList.add('e-hide');
|
|
2616
2619
|
parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: eventargs });
|
|
2620
|
+
if (parent.activeObj.shape && parent.activeObj.shape === 'image') {
|
|
2621
|
+
parent.notify('toolbar', { prop: 'destroy-qa-toolbar', onPropertyChange: false });
|
|
2622
|
+
}
|
|
2617
2623
|
}
|
|
2618
2624
|
else {
|
|
2619
2625
|
parent.updateToolbar(parent.element, 'imageLoaded');
|
|
2626
|
+
if (parent.activeObj.shape && parent.activeObj.shape === 'image') {
|
|
2627
|
+
parent.updateToolbar(parent.element, 'destroyQuickAccessToolbar');
|
|
2628
|
+
}
|
|
2620
2629
|
}
|
|
2621
2630
|
parent.notify('undo-redo', { prop: 'updateCurrUrc', value: { type: 'cancel' } });
|
|
2631
|
+
parent.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
|
|
2632
|
+
this.upperContext.clearRect(0, 0, parent.upperCanvas.width, parent.upperCanvas.height);
|
|
2622
2633
|
}
|
|
2623
2634
|
else {
|
|
2624
2635
|
if (isContextualToolbar && (!Browser.isDevice || (Browser.isDevice && !straightenObj['bool']))) {
|
|
@@ -3304,16 +3315,16 @@ var Draw = /** @class */ (function () {
|
|
|
3304
3315
|
Draw.prototype.setClientTransDim = function (isPreventDimension) {
|
|
3305
3316
|
var parent = this.parent;
|
|
3306
3317
|
if (parent.transform.degree % 90 === 0 && parent.transform.degree % 180 !== 0) {
|
|
3307
|
-
parent.img.destLeft = (parent.lowerCanvas.
|
|
3308
|
-
parent.img.destTop = (parent.lowerCanvas.
|
|
3318
|
+
parent.img.destLeft = (parent.lowerCanvas.clientWidth - parent.img.destHeight) / 2;
|
|
3319
|
+
parent.img.destTop = (parent.lowerCanvas.clientHeight - parent.img.destWidth + 1) / 2;
|
|
3309
3320
|
var temp = parent.img.destWidth;
|
|
3310
3321
|
parent.img.destWidth = parent.img.destHeight;
|
|
3311
3322
|
parent.img.destHeight = temp;
|
|
3312
3323
|
}
|
|
3313
3324
|
else {
|
|
3314
3325
|
if (isNullOrUndefined(isPreventDimension)) {
|
|
3315
|
-
parent.img.destLeft = (parent.lowerCanvas.
|
|
3316
|
-
parent.img.destTop = (parent.lowerCanvas.
|
|
3326
|
+
parent.img.destLeft = (parent.lowerCanvas.clientWidth - parent.img.destWidth) / 2;
|
|
3327
|
+
parent.img.destTop = (parent.lowerCanvas.clientHeight - parent.img.destHeight + 1) / 2;
|
|
3317
3328
|
}
|
|
3318
3329
|
}
|
|
3319
3330
|
};
|
|
@@ -4027,9 +4038,9 @@ var Draw = /** @class */ (function () {
|
|
|
4027
4038
|
}
|
|
4028
4039
|
}
|
|
4029
4040
|
}
|
|
4030
|
-
var panX = (parent.lowerCanvas.clientWidth / 2) -
|
|
4041
|
+
var panX = (parent.lowerCanvas.clientWidth / 2) - (currObj.activePoint.startX +
|
|
4031
4042
|
(currObj.activePoint.width / 2));
|
|
4032
|
-
var panY = (parent.lowerCanvas.clientHeight / 2) -
|
|
4043
|
+
var panY = ((parent.lowerCanvas.clientHeight + 1) / 2) - (currObj.activePoint.startY +
|
|
4033
4044
|
(currObj.activePoint.height / 2));
|
|
4034
4045
|
if (isNullOrUndefined(parent.activeObj.shape)) {
|
|
4035
4046
|
parent.activeObj = extend({}, activeObj, {}, true);
|
|
@@ -4364,7 +4364,15 @@ var Selection = /** @class */ (function () {
|
|
|
4364
4364
|
this.getCurrentFlipState();
|
|
4365
4365
|
}
|
|
4366
4366
|
else {
|
|
4367
|
+
var totalPannedInternalPoint = extend({}, parent.panPoint.totalPannedInternalPoint, {}, true);
|
|
4368
|
+
var destPoints = { startX: parent.img.destLeft, startY: parent.img.destTop, width: parent.img.destWidth,
|
|
4369
|
+
height: parent.img.destHeight };
|
|
4367
4370
|
parent.notify('draw', { prop: 'callUpdateCurrTransState', onPropertyChange: false });
|
|
4371
|
+
parent.panPoint.totalPannedInternalPoint = totalPannedInternalPoint;
|
|
4372
|
+
parent.img.destLeft = destPoints.startX;
|
|
4373
|
+
parent.img.destTop = destPoints.startY;
|
|
4374
|
+
parent.img.destWidth = destPoints.width;
|
|
4375
|
+
parent.img.destHeight = destPoints.height;
|
|
4368
4376
|
parent.notify('freehand-draw', { prop: 'freehandRedraw', onPropertyChange: false,
|
|
4369
4377
|
value: { context: this.lowerContext, points: null } });
|
|
4370
4378
|
}
|
|
@@ -1189,11 +1189,11 @@ var Transform = /** @class */ (function () {
|
|
|
1189
1189
|
if (parent.img.destTop > 0) {
|
|
1190
1190
|
parent.img.destTop = 0;
|
|
1191
1191
|
}
|
|
1192
|
-
if (parent.img.destLeft + maxDimension.width < parent.lowerCanvas.
|
|
1193
|
-
parent.img.destLeft = parent.lowerCanvas.
|
|
1192
|
+
if (parent.img.destLeft + maxDimension.width < parent.lowerCanvas.clientWidth) {
|
|
1193
|
+
parent.img.destLeft = parent.lowerCanvas.clientWidth - parent.img.destWidth;
|
|
1194
1194
|
}
|
|
1195
|
-
if (parent.img.destTop + maxDimension.height < parent.lowerCanvas.
|
|
1196
|
-
parent.img.destTop = parent.lowerCanvas.
|
|
1195
|
+
if (parent.img.destTop + maxDimension.height < parent.lowerCanvas.clientHeight) {
|
|
1196
|
+
parent.img.destTop = parent.lowerCanvas.clientHeight - parent.img.destHeight;
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
1199
|
return maxDimension;
|
|
@@ -2420,9 +2420,7 @@ var Transform = /** @class */ (function () {
|
|
|
2420
2420
|
parent.notify('toolbar', { prop: 'performCropTransformClick', value: { shape: null } });
|
|
2421
2421
|
}
|
|
2422
2422
|
parent.setStraighten(degree, true);
|
|
2423
|
-
|
|
2424
|
-
parent.okBtn();
|
|
2425
|
-
}
|
|
2423
|
+
parent.okBtn();
|
|
2426
2424
|
};
|
|
2427
2425
|
return Transform;
|
|
2428
2426
|
}());
|
|
@@ -382,7 +382,7 @@ var UndoRedo = /** @class */ (function () {
|
|
|
382
382
|
this.tempCurrSelPoint = extend({}, parent.currSelectionPoint, {}, true);
|
|
383
383
|
parent.currSelectionPoint = null;
|
|
384
384
|
}
|
|
385
|
-
parent.notify('draw', { prop: 'performCancel', value: { isContextualToolbar: null } });
|
|
385
|
+
parent.notify('draw', { prop: 'performCancel', value: { isContextualToolbar: null, isUndoRedo: true } });
|
|
386
386
|
parent.currObjType.isActiveObj = false;
|
|
387
387
|
if (parent.transform.straighten !== 0) {
|
|
388
388
|
parent.notify('draw', { prop: 'setStraightenActObj', value: { activeObj: null } });
|
|
@@ -945,6 +945,16 @@ var UndoRedo = /** @class */ (function () {
|
|
|
945
945
|
this.parent.notify('draw', { prop: 'getArrowDimension', onPropertyChange: false, value: { obj: arrowObj } });
|
|
946
946
|
var tempArrowObj = extend({}, arrowObj['arrowDimension'], {}, true);
|
|
947
947
|
if (parent.transform.zoomFactor > 0 && (obj.length > 0 || point.length > 0)) {
|
|
948
|
+
if (obj.length > 0) {
|
|
949
|
+
for (var i = 0; i < obj.length; i++) {
|
|
950
|
+
if (obj[i].currIndex) {
|
|
951
|
+
continue;
|
|
952
|
+
}
|
|
953
|
+
else {
|
|
954
|
+
obj[i].currIndex = 'shape_' + (i + 1);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
}
|
|
948
958
|
parent.objColl = obj;
|
|
949
959
|
parent.pointColl = point;
|
|
950
960
|
var isUndoRedo = parent.isUndoRedo;
|
|
@@ -442,7 +442,7 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
442
442
|
this.createLeftToolbarControls();
|
|
443
443
|
var mToolbar = document.getElementById(id + '_toolbar');
|
|
444
444
|
if (toolbar_1) {
|
|
445
|
-
this.toolbarHeight = mToolbar.
|
|
445
|
+
this.toolbarHeight = mToolbar.clientHeight;
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
else {
|
|
@@ -745,10 +745,10 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
745
745
|
}
|
|
746
746
|
if (!isBlazor()) {
|
|
747
747
|
if (parent.toolbarTemplate) {
|
|
748
|
-
this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbarArea').
|
|
748
|
+
this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbarArea').clientHeight;
|
|
749
749
|
}
|
|
750
750
|
else if (parent.element.querySelector('#' + parent.element.id + '_toolbar')) {
|
|
751
|
-
this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbar').
|
|
751
|
+
this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbar').clientHeight;
|
|
752
752
|
}
|
|
753
753
|
parent.toolbarHeight = this.toolbarHeight;
|
|
754
754
|
}
|
|
@@ -759,7 +759,7 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
759
759
|
cHt = cusWrapper.offsetHeight + 2;
|
|
760
760
|
}
|
|
761
761
|
var ht = parent.element.querySelector('#' + id + '_canvasWrapper').offsetHeight;
|
|
762
|
-
contextualToolbarArea.style.top = this.toolbarHeight + ht - cHt + 'px';
|
|
762
|
+
contextualToolbarArea.style.top = this.toolbarHeight + 1 + ht - cHt + 'px';
|
|
763
763
|
if (cType === 'straighten') {
|
|
764
764
|
parent.isStraightening = true;
|
|
765
765
|
var ctxToolbar = parent.element.querySelector('#' + id + '_contextualToolbarArea');
|
|
@@ -776,7 +776,7 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
else {
|
|
779
|
-
contextualToolbarArea.style.top = this.toolbarHeight + 'px';
|
|
779
|
+
contextualToolbarArea.style.top = this.toolbarHeight + 1 + 'px';
|
|
780
780
|
}
|
|
781
781
|
};
|
|
782
782
|
ToolbarModule.prototype.processToolbar = function (position) {
|
|
@@ -1600,8 +1600,8 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
var slider = parent.element.querySelector('#' + id + '_straightenSlider');
|
|
1602
1602
|
if ((isNullOrUndefined(parent.toolbar) || (parent.toolbar && parent.toolbar.indexOf('Straightening') > -1))
|
|
1603
|
-
&& slider && slider.parentElement.
|
|
1604
|
-
this.toolbarHeight = parent.toolbarHeight = slider.parentElement.
|
|
1603
|
+
&& slider && slider.parentElement.clientHeight > this.toolbarHeight) {
|
|
1604
|
+
this.toolbarHeight = parent.toolbarHeight = slider.parentElement.clientHeight;
|
|
1605
1605
|
}
|
|
1606
1606
|
this.enableDisableTbrBtn();
|
|
1607
1607
|
parent.notify('transform', { prop: 'disableZoomOutBtn', value: { isZoomOut: true } });
|
|
@@ -3644,6 +3644,9 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
3644
3644
|
qtArea.style.top = point.startY - (height + (height / 1.5)) + 'px';
|
|
3645
3645
|
}
|
|
3646
3646
|
}
|
|
3647
|
+
if (parseFloat(qtArea.style.top) < 0) {
|
|
3648
|
+
qtArea.style.top = '0px';
|
|
3649
|
+
}
|
|
3647
3650
|
}
|
|
3648
3651
|
};
|
|
3649
3652
|
ToolbarModule.prototype.refreshDropDownBtn = function (isDisabled) {
|
|
@@ -4494,20 +4497,23 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
4494
4497
|
if (type === 'transparency') {
|
|
4495
4498
|
labelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
|
|
4496
4499
|
id: id + '_labelWrapper',
|
|
4497
|
-
|
|
4498
|
-
|
|
4500
|
+
className: 'e-ie-finetune-slider-label',
|
|
4501
|
+
styles: Browser.isDevice ? 'position: absolute; top: 31%; left: calc(50% - 150px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
|
|
4502
|
+
: 'position: absolute; top: 31%; left: calc(50% - 220px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
|
|
4499
4503
|
}));
|
|
4500
4504
|
}
|
|
4501
4505
|
else {
|
|
4502
4506
|
labelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
|
|
4503
4507
|
id: id + '_labelWrapper',
|
|
4504
|
-
|
|
4508
|
+
className: 'e-ie-finetune-slider-label',
|
|
4509
|
+
styles: Browser.isDevice ? ('position: absolute; top: 31%; left: calc(50% - 160px); font-size: 15px; text-transform: capitalize; font-weight: 400;')
|
|
4505
4510
|
: 'position: absolute; top: 25%; left: calc(50% - 226px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
|
|
4506
4511
|
}));
|
|
4507
4512
|
}
|
|
4508
4513
|
labelWrapper.textContent = this.l10n.getConstant(parent.toPascalCase(type === 'transparency' ? 'opacity' : type));
|
|
4509
4514
|
var sliderWrapper = hdrWrapper.appendChild(parent.createElement('div', {
|
|
4510
4515
|
id: id + '_sliderWrapper',
|
|
4516
|
+
className: 'e-ie-finetune-slider-wrap',
|
|
4511
4517
|
styles: 'position: absolute'
|
|
4512
4518
|
}));
|
|
4513
4519
|
var value = parent.getCurrAdjustmentValue(type);
|
|
@@ -4586,8 +4592,8 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
4586
4592
|
if (type === 'straighten' && Browser.isDevice) {
|
|
4587
4593
|
var sLabelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
|
|
4588
4594
|
id: id + '_sLabelWrapper',
|
|
4589
|
-
className: 'e-ie-straighten-value-span',
|
|
4590
|
-
styles: 'position: absolute; top:
|
|
4595
|
+
className: 'e-ie-straighten-value-span e-ie-finetune-value-span',
|
|
4596
|
+
styles: 'position: absolute; top: 31%; margin-left: 20px; font-size: 15px; text-transform: capitalize; font-weight: 400;'
|
|
4591
4597
|
}));
|
|
4592
4598
|
sLabelWrapper.innerHTML = parent.transform.straighten.toString() + '°';
|
|
4593
4599
|
sliderWrapper.parentElement.classList.add('e-straighten-slider');
|
|
@@ -4600,6 +4606,9 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
4600
4606
|
'position: absolute; top: 25%; left: calc(50% + 190px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
|
|
4601
4607
|
}));
|
|
4602
4608
|
sliderWrapper.parentElement.classList.add('e-finetune-slider');
|
|
4609
|
+
if (type === 'transparency' && Browser.isDevice) {
|
|
4610
|
+
sliderWrapper.parentElement.classList.add('e-ie-device-transparency-slider');
|
|
4611
|
+
}
|
|
4603
4612
|
this.updateFinetuneSpan(type);
|
|
4604
4613
|
}
|
|
4605
4614
|
};
|
|
@@ -496,14 +496,17 @@
|
|
|
496
496
|
height: 54px !important; /* stylelint-disable-line declaration-no-important */
|
|
497
497
|
}
|
|
498
498
|
.e-ie-straighten-value-span,
|
|
499
|
-
.e-ie-straighten-span
|
|
500
|
-
|
|
499
|
+
.e-ie-straighten-span,
|
|
500
|
+
.e-ie-toolbar-straighten {
|
|
501
|
+
font-size: 14px !important; /* stylelint-disable-line declaration-no-important */
|
|
501
502
|
padding-left: 10px !important; /* stylelint-disable-line declaration-no-important */
|
|
502
503
|
padding-right: 10px !important; /* stylelint-disable-line declaration-no-important */
|
|
503
504
|
}
|
|
504
505
|
|
|
505
506
|
.e-straighten .e-control-wrapper.e-slider-container.e-horizontal {
|
|
506
507
|
height: auto;
|
|
508
|
+
margin-left: 8px;
|
|
509
|
+
padding-right: 2px;
|
|
507
510
|
}
|
|
508
511
|
|
|
509
512
|
.e-straighten .e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
@@ -519,6 +522,26 @@
|
|
|
519
522
|
top: calc(50% - 5px) !important; /* stylelint-disable-line declaration-no-important */
|
|
520
523
|
}
|
|
521
524
|
|
|
525
|
+
.e-ie-finetune-value-span {
|
|
526
|
+
top: 31% !important; /* stylelint-disable-line declaration-no-important */
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.e-ie-finetune-slider-label {
|
|
530
|
+
top: 31% !important; /* stylelint-disable-line declaration-no-important */
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.e-ie-finetune-slider-wrap {
|
|
534
|
+
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.e-transparency-slider-wrap {
|
|
538
|
+
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.e-ie-slider-wrap {
|
|
542
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
543
|
+
}
|
|
544
|
+
|
|
522
545
|
.e-bigger .e-straighten .e-control-wrapper.e-slider-container .e-slider .e-handle {
|
|
523
546
|
top: calc(50% - 7px) !important; /* stylelint-disable-line declaration-no-important */
|
|
524
547
|
}
|
|
@@ -532,6 +555,10 @@
|
|
|
532
555
|
background: none !important; /* stylelint-disable-line declaration-no-important */
|
|
533
556
|
}
|
|
534
557
|
|
|
558
|
+
.e-device.e-image-editor .e-ie-device-transparency-slider {
|
|
559
|
+
margin-left: calc(50% - 80px) !important; /* stylelint-disable-line declaration-no-important */
|
|
560
|
+
}
|
|
561
|
+
|
|
535
562
|
.e-image-editor {
|
|
536
563
|
background: #959595;
|
|
537
564
|
}
|
package/styles/bootstrap.css
CHANGED
|
@@ -496,14 +496,17 @@
|
|
|
496
496
|
height: 54px !important; /* stylelint-disable-line declaration-no-important */
|
|
497
497
|
}
|
|
498
498
|
.e-ie-straighten-value-span,
|
|
499
|
-
.e-ie-straighten-span
|
|
500
|
-
|
|
499
|
+
.e-ie-straighten-span,
|
|
500
|
+
.e-ie-toolbar-straighten {
|
|
501
|
+
font-size: 14px !important; /* stylelint-disable-line declaration-no-important */
|
|
501
502
|
padding-left: 10px !important; /* stylelint-disable-line declaration-no-important */
|
|
502
503
|
padding-right: 10px !important; /* stylelint-disable-line declaration-no-important */
|
|
503
504
|
}
|
|
504
505
|
|
|
505
506
|
.e-straighten .e-control-wrapper.e-slider-container.e-horizontal {
|
|
506
507
|
height: auto;
|
|
508
|
+
margin-left: 8px;
|
|
509
|
+
padding-right: 2px;
|
|
507
510
|
}
|
|
508
511
|
|
|
509
512
|
.e-straighten .e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
@@ -519,6 +522,26 @@
|
|
|
519
522
|
top: calc(50% - 5px) !important; /* stylelint-disable-line declaration-no-important */
|
|
520
523
|
}
|
|
521
524
|
|
|
525
|
+
.e-ie-finetune-value-span {
|
|
526
|
+
top: 31% !important; /* stylelint-disable-line declaration-no-important */
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.e-ie-finetune-slider-label {
|
|
530
|
+
top: 31% !important; /* stylelint-disable-line declaration-no-important */
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.e-ie-finetune-slider-wrap {
|
|
534
|
+
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.e-transparency-slider-wrap {
|
|
538
|
+
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.e-ie-slider-wrap {
|
|
542
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
543
|
+
}
|
|
544
|
+
|
|
522
545
|
.e-bigger .e-straighten .e-control-wrapper.e-slider-container .e-slider .e-handle {
|
|
523
546
|
top: calc(50% - 7px) !important; /* stylelint-disable-line declaration-no-important */
|
|
524
547
|
}
|
|
@@ -532,6 +555,10 @@
|
|
|
532
555
|
background: none !important; /* stylelint-disable-line declaration-no-important */
|
|
533
556
|
}
|
|
534
557
|
|
|
558
|
+
.e-device.e-image-editor .e-ie-device-transparency-slider {
|
|
559
|
+
margin-left: calc(50% - 80px) !important; /* stylelint-disable-line declaration-no-important */
|
|
560
|
+
}
|
|
561
|
+
|
|
535
562
|
.e-image-editor {
|
|
536
563
|
background: #e6e6e6;
|
|
537
564
|
}
|
package/styles/bootstrap4.css
CHANGED
|
@@ -494,14 +494,17 @@
|
|
|
494
494
|
height: 54px !important; /* stylelint-disable-line declaration-no-important */
|
|
495
495
|
}
|
|
496
496
|
.e-ie-straighten-value-span,
|
|
497
|
-
.e-ie-straighten-span
|
|
498
|
-
|
|
497
|
+
.e-ie-straighten-span,
|
|
498
|
+
.e-ie-toolbar-straighten {
|
|
499
|
+
font-size: 14px !important; /* stylelint-disable-line declaration-no-important */
|
|
499
500
|
padding-left: 10px !important; /* stylelint-disable-line declaration-no-important */
|
|
500
501
|
padding-right: 10px !important; /* stylelint-disable-line declaration-no-important */
|
|
501
502
|
}
|
|
502
503
|
|
|
503
504
|
.e-straighten .e-control-wrapper.e-slider-container.e-horizontal {
|
|
504
505
|
height: auto;
|
|
506
|
+
margin-left: 8px;
|
|
507
|
+
padding-right: 2px;
|
|
505
508
|
}
|
|
506
509
|
|
|
507
510
|
.e-straighten .e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
@@ -517,6 +520,26 @@
|
|
|
517
520
|
top: calc(50% - 6px) !important; /* stylelint-disable-line declaration-no-important */
|
|
518
521
|
}
|
|
519
522
|
|
|
523
|
+
.e-ie-finetune-value-span {
|
|
524
|
+
top: 31% !important; /* stylelint-disable-line declaration-no-important */
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.e-ie-finetune-slider-label {
|
|
528
|
+
top: 31% !important; /* stylelint-disable-line declaration-no-important */
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.e-ie-finetune-slider-wrap {
|
|
532
|
+
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.e-transparency-slider-wrap {
|
|
536
|
+
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.e-ie-slider-wrap {
|
|
540
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
541
|
+
}
|
|
542
|
+
|
|
520
543
|
.e-bigger .e-straighten .e-control-wrapper.e-slider-container .e-slider .e-handle {
|
|
521
544
|
top: calc(50% - 7px) !important; /* stylelint-disable-line declaration-no-important */
|
|
522
545
|
}
|
|
@@ -530,6 +553,10 @@
|
|
|
530
553
|
background: none !important; /* stylelint-disable-line declaration-no-important */
|
|
531
554
|
}
|
|
532
555
|
|
|
556
|
+
.e-device.e-image-editor .e-ie-device-transparency-slider {
|
|
557
|
+
margin-left: calc(50% - 80px) !important; /* stylelint-disable-line declaration-no-important */
|
|
558
|
+
}
|
|
559
|
+
|
|
533
560
|
.e-image-editor {
|
|
534
561
|
background: #e9ecef;
|
|
535
562
|
}
|
|
@@ -512,14 +512,17 @@
|
|
|
512
512
|
height: 54px !important; /* stylelint-disable-line declaration-no-important */
|
|
513
513
|
}
|
|
514
514
|
.e-ie-straighten-value-span,
|
|
515
|
-
.e-ie-straighten-span
|
|
516
|
-
|
|
515
|
+
.e-ie-straighten-span,
|
|
516
|
+
.e-ie-toolbar-straighten {
|
|
517
|
+
font-size: 14px !important; /* stylelint-disable-line declaration-no-important */
|
|
517
518
|
padding-left: 10px !important; /* stylelint-disable-line declaration-no-important */
|
|
518
519
|
padding-right: 10px !important; /* stylelint-disable-line declaration-no-important */
|
|
519
520
|
}
|
|
520
521
|
|
|
521
522
|
.e-straighten .e-control-wrapper.e-slider-container.e-horizontal {
|
|
522
523
|
height: auto;
|
|
524
|
+
margin-left: 8px;
|
|
525
|
+
padding-right: 2px;
|
|
523
526
|
}
|
|
524
527
|
|
|
525
528
|
.e-straighten .e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
@@ -535,6 +538,26 @@
|
|
|
535
538
|
top: calc(50% - 5px) !important; /* stylelint-disable-line declaration-no-important */
|
|
536
539
|
}
|
|
537
540
|
|
|
541
|
+
.e-ie-finetune-value-span {
|
|
542
|
+
top: 29% !important; /* stylelint-disable-line declaration-no-important */
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.e-ie-finetune-slider-label {
|
|
546
|
+
top: 29% !important; /* stylelint-disable-line declaration-no-important */
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.e-ie-finetune-slider-wrap {
|
|
550
|
+
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.e-transparency-slider-wrap {
|
|
554
|
+
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.e-ie-slider-wrap {
|
|
558
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
559
|
+
}
|
|
560
|
+
|
|
538
561
|
.e-bigger .e-straighten .e-control-wrapper.e-slider-container .e-slider .e-handle {
|
|
539
562
|
top: calc(50% - 6px) !important; /* stylelint-disable-line declaration-no-important */
|
|
540
563
|
}
|
|
@@ -548,6 +571,10 @@
|
|
|
548
571
|
background: none !important; /* stylelint-disable-line declaration-no-important */
|
|
549
572
|
}
|
|
550
573
|
|
|
574
|
+
.e-device.e-image-editor .e-ie-device-transparency-slider {
|
|
575
|
+
margin-left: calc(50% - 80px) !important; /* stylelint-disable-line declaration-no-important */
|
|
576
|
+
}
|
|
577
|
+
|
|
551
578
|
.e-image-editor {
|
|
552
579
|
background: #444c54;
|
|
553
580
|
}
|
package/styles/bootstrap5.css
CHANGED
|
@@ -512,14 +512,17 @@
|
|
|
512
512
|
height: 54px !important; /* stylelint-disable-line declaration-no-important */
|
|
513
513
|
}
|
|
514
514
|
.e-ie-straighten-value-span,
|
|
515
|
-
.e-ie-straighten-span
|
|
516
|
-
|
|
515
|
+
.e-ie-straighten-span,
|
|
516
|
+
.e-ie-toolbar-straighten {
|
|
517
|
+
font-size: 14px !important; /* stylelint-disable-line declaration-no-important */
|
|
517
518
|
padding-left: 10px !important; /* stylelint-disable-line declaration-no-important */
|
|
518
519
|
padding-right: 10px !important; /* stylelint-disable-line declaration-no-important */
|
|
519
520
|
}
|
|
520
521
|
|
|
521
522
|
.e-straighten .e-control-wrapper.e-slider-container.e-horizontal {
|
|
522
523
|
height: auto;
|
|
524
|
+
margin-left: 8px;
|
|
525
|
+
padding-right: 2px;
|
|
523
526
|
}
|
|
524
527
|
|
|
525
528
|
.e-straighten .e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
@@ -535,6 +538,26 @@
|
|
|
535
538
|
top: calc(50% - 5px) !important; /* stylelint-disable-line declaration-no-important */
|
|
536
539
|
}
|
|
537
540
|
|
|
541
|
+
.e-ie-finetune-value-span {
|
|
542
|
+
top: 29% !important; /* stylelint-disable-line declaration-no-important */
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.e-ie-finetune-slider-label {
|
|
546
|
+
top: 29% !important; /* stylelint-disable-line declaration-no-important */
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.e-ie-finetune-slider-wrap {
|
|
550
|
+
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
.e-transparency-slider-wrap {
|
|
554
|
+
top: calc(50% - 15px) !important; /* stylelint-disable-line declaration-no-important */
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.e-ie-slider-wrap {
|
|
558
|
+
top: calc(50% - 14px) !important; /* stylelint-disable-line declaration-no-important */
|
|
559
|
+
}
|
|
560
|
+
|
|
538
561
|
.e-bigger .e-straighten .e-control-wrapper.e-slider-container .e-slider .e-handle {
|
|
539
562
|
top: calc(50% - 6px) !important; /* stylelint-disable-line declaration-no-important */
|
|
540
563
|
}
|
|
@@ -548,6 +571,10 @@
|
|
|
548
571
|
background: none !important; /* stylelint-disable-line declaration-no-important */
|
|
549
572
|
}
|
|
550
573
|
|
|
574
|
+
.e-device.e-image-editor .e-ie-device-transparency-slider {
|
|
575
|
+
margin-left: calc(50% - 80px) !important; /* stylelint-disable-line declaration-no-important */
|
|
576
|
+
}
|
|
577
|
+
|
|
551
578
|
.e-image-editor {
|
|
552
579
|
background: #dee2e6;
|
|
553
580
|
}
|