@syncfusion/ej2-image-editor 29.2.5 → 30.1.37
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/.eslintrc.json +2 -0
- 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 +883 -225
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +905 -235
- 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 +15 -47
- package/src/image-editor/action/crop.js +1 -1
- package/src/image-editor/action/draw.d.ts +1 -0
- package/src/image-editor/action/draw.js +103 -31
- package/src/image-editor/action/export.js +3 -0
- package/src/image-editor/action/selection.d.ts +1 -0
- package/src/image-editor/action/selection.js +39 -4
- package/src/image-editor/action/shape.d.ts +1 -0
- package/src/image-editor/action/shape.js +334 -49
- package/src/image-editor/action/transform.js +50 -43
- package/src/image-editor/action/undo-redo.d.ts +2 -0
- package/src/image-editor/action/undo-redo.js +22 -1
- package/src/image-editor/base/enum.d.ts +3 -1
- package/src/image-editor/base/enum.js +2 -0
- package/src/image-editor/base/image-editor.d.ts +13 -2
- package/src/image-editor/base/image-editor.js +242 -27
- package/src/image-editor/base/interface.d.ts +17 -1
- package/src/image-editor/renderer/toolbar.d.ts +2 -0
- package/src/image-editor/renderer/toolbar.js +110 -79
- package/styles/bds-lite.css +4 -0
- package/styles/bds.css +8 -0
- package/styles/bootstrap-dark-lite.css +4 -0
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap-lite.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4-lite.css +4 -0
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark-lite.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5-lite.css +4 -0
- package/styles/bootstrap5.3-lite.css +4 -0
- package/styles/bootstrap5.3.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/fabric-dark-lite.css +4 -0
- package/styles/fabric-dark.css +19 -0
- package/styles/fabric-lite.css +4 -0
- package/styles/fabric.css +19 -0
- package/styles/fluent-dark-lite.css +4 -0
- package/styles/fluent-dark.css +13 -0
- package/styles/fluent-lite.css +4 -0
- package/styles/fluent.css +13 -0
- package/styles/fluent2-lite.css +8 -0
- package/styles/fluent2.css +12 -0
- package/styles/highcontrast-light-lite.css +4 -0
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast-lite.css +9 -1
- package/styles/highcontrast.css +14 -1
- package/styles/image-editor/_bigger.scss +56 -0
- package/styles/image-editor/_highcontrast-definition.scss +1 -1
- package/styles/image-editor/_layout.scss +36 -0
- package/styles/image-editor/bds.css +8 -0
- package/styles/image-editor/bootstrap-dark.css +4 -0
- package/styles/image-editor/bootstrap.css +4 -0
- package/styles/image-editor/bootstrap4.css +4 -0
- package/styles/image-editor/bootstrap5-dark.css +4 -0
- package/styles/image-editor/bootstrap5.3.css +4 -0
- package/styles/image-editor/bootstrap5.css +4 -0
- package/styles/image-editor/fabric-dark.css +19 -0
- package/styles/image-editor/fabric.css +19 -0
- package/styles/image-editor/fluent-dark.css +13 -0
- package/styles/image-editor/fluent.css +13 -0
- package/styles/image-editor/fluent2.css +12 -0
- package/styles/image-editor/highcontrast-light.css +4 -0
- package/styles/image-editor/highcontrast.css +14 -1
- package/styles/image-editor/material-dark.css +4 -0
- package/styles/image-editor/material.css +8 -0
- package/styles/image-editor/material3-dark.css +21 -1
- package/styles/image-editor/material3.css +21 -1
- package/styles/image-editor/tailwind-dark.css +8 -0
- package/styles/image-editor/tailwind.css +8 -0
- package/styles/image-editor/tailwind3.css +4 -0
- package/styles/material-dark-lite.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material-lite.css +4 -0
- package/styles/material.css +8 -0
- package/styles/material3-dark-lite.css +12 -0
- package/styles/material3-dark.css +21 -1
- package/styles/material3-lite.css +12 -0
- package/styles/material3.css +21 -1
- package/styles/tailwind-dark-lite.css +4 -0
- package/styles/tailwind-dark.css +8 -0
- package/styles/tailwind-lite.css +4 -0
- package/styles/tailwind.css +8 -0
- package/styles/tailwind3-lite.css +4 -0
- package/styles/tailwind3.css +4 -0
|
@@ -111,7 +111,9 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
111
111
|
Path: 'Path',
|
|
112
112
|
Bold: 'Bold',
|
|
113
113
|
Italic: 'Italic',
|
|
114
|
+
Underline: 'Underline',
|
|
114
115
|
BoldItalic: 'Bold Italic',
|
|
116
|
+
Strikethrough: 'Strikethrough',
|
|
115
117
|
XSmall: 'X-Small',
|
|
116
118
|
Small: 'Small',
|
|
117
119
|
Medium: 'Medium',
|
|
@@ -2185,12 +2187,16 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
2185
2187
|
if (!Browser.isDevice) {
|
|
2186
2188
|
var obj = { shape: null };
|
|
2187
2189
|
parent.notify('selection', { prop: 'getCurrentDrawingShape', value: { obj: obj } });
|
|
2188
|
-
if (obj['shape']
|
|
2190
|
+
if (obj['shape'] === 'path') {
|
|
2191
|
+
toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
|
|
2192
|
+
tooltipText: this.l10n.getConstant('OK'), align: 'Right', tabIndex: 0, disabled: true });
|
|
2193
|
+
}
|
|
2194
|
+
else {
|
|
2189
2195
|
toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
|
|
2190
2196
|
tooltipText: this.l10n.getConstant('OK'), align: 'Right', tabIndex: 0 });
|
|
2191
|
-
toolbarItems.push({ id: id + '_cancel', prefixIcon: 'e-icons e-close', cssClass: 'top-icon e-save',
|
|
2192
|
-
tooltipText: this.l10n.getConstant('Cancel'), align: 'Right' });
|
|
2193
2197
|
}
|
|
2198
|
+
toolbarItems.push({ id: id + '_cancel', prefixIcon: 'e-icons e-close', cssClass: 'top-icon e-save',
|
|
2199
|
+
tooltipText: this.l10n.getConstant('Cancel'), align: 'Right' });
|
|
2194
2200
|
}
|
|
2195
2201
|
return toolbarItems;
|
|
2196
2202
|
};
|
|
@@ -2846,6 +2852,14 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
2846
2852
|
toolbarItems.push({ id: id + '_italic', prefixIcon: 'e-icons e-italic', cssClass: 'top-icon e-italic',
|
|
2847
2853
|
tooltipText: this.l10n.getConstant('Italic'), align: 'Center' });
|
|
2848
2854
|
}
|
|
2855
|
+
if (items.indexOf('underline') > -1) {
|
|
2856
|
+
toolbarItems.push({ id: id + '_underline', prefixIcon: 'e-icons e-underline', cssClass: 'top-icon e-underline',
|
|
2857
|
+
tooltipText: this.l10n.getConstant('Underline'), align: 'Center' });
|
|
2858
|
+
}
|
|
2859
|
+
if (items.indexOf('strikethrough') > -1) {
|
|
2860
|
+
toolbarItems.push({ id: id + '_strikethrough', prefixIcon: 'e-icons e-strikethrough', cssClass: 'top-icon e-strikethrough',
|
|
2861
|
+
tooltipText: this.l10n.getConstant('Strikethrough'), align: 'Center' });
|
|
2862
|
+
}
|
|
2849
2863
|
if (items.indexOf('strokeWidth') > -1) {
|
|
2850
2864
|
toolbarItems.push({ id: id + '_strokeWidth', cssClass: 'top-icon e-size', tooltipText: this.l10n.getConstant('TextOutlineWidth'), align: 'Center',
|
|
2851
2865
|
type: 'Input', template: '<button id="' + id + '_borderWidthBtn"></button>' });
|
|
@@ -3328,6 +3342,12 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
3328
3342
|
}
|
|
3329
3343
|
if (Browser.isDevice) {
|
|
3330
3344
|
this.initMainToolbar(false, true, true);
|
|
3345
|
+
var okBtn = document.getElementById(parent.element.id + '_ok');
|
|
3346
|
+
var drawingObject = { shape: '' };
|
|
3347
|
+
parent.notify('selection', { prop: 'getCurrentDrawingShape', onPropertyChange: false, value: { obj: drawingObject } });
|
|
3348
|
+
if (drawingObject['shape'] === 'path' && okBtn) {
|
|
3349
|
+
okBtn.classList.add('e-overlay');
|
|
3350
|
+
}
|
|
3331
3351
|
}
|
|
3332
3352
|
if (parent.activeObj.shape === 'line' || parent.activeObj.shape === 'path') {
|
|
3333
3353
|
args.toolbarItems = ['strokeColor', 'strokeWidth', 'z-order', 'duplicate', 'remove'];
|
|
@@ -3359,7 +3379,7 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
3359
3379
|
if (Browser.isDevice) {
|
|
3360
3380
|
this.initMainToolbar(false, true, true);
|
|
3361
3381
|
}
|
|
3362
|
-
args.toolbarItems = ['fontFamily', 'fontSize', 'fontColor', 'fillColor', 'strokeColor', 'strokeWidth', 'bold', 'italic', 'z-order', 'duplicate', 'remove', 'text'];
|
|
3382
|
+
args.toolbarItems = ['fontFamily', 'fontSize', 'fontColor', 'fillColor', 'strokeColor', 'strokeWidth', 'bold', 'italic', 'underline', 'strikethrough', 'z-order', 'duplicate', 'remove', 'text'];
|
|
3363
3383
|
this.initTextToolbarItem(args.toolbarItems);
|
|
3364
3384
|
break;
|
|
3365
3385
|
case 'pen':
|
|
@@ -3495,8 +3515,13 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
3495
3515
|
parent.notify('transform', { prop: 'getPanMove', onPropertyChange: false,
|
|
3496
3516
|
value: { obj: panMoveObj } });
|
|
3497
3517
|
if (panMoveObj['panMove']) {
|
|
3518
|
+
var currentPannedPoint = extend({}, parent.panPoint.currentPannedPoint, {}, true);
|
|
3519
|
+
parent.panPoint.currentPannedPoint = { x: parent.panPoint.totalPannedClientPoint.x, y: parent.panPoint.totalPannedClientPoint.y };
|
|
3520
|
+
parent.panPoint.totalPannedClientPoint = { x: 0, y: 0 };
|
|
3521
|
+
parent.panPoint.totalPannedInternalPoint = { x: 0, y: 0 };
|
|
3498
3522
|
parent.notify('transform', { prop: 'drawPannedImage', onPropertyChange: false,
|
|
3499
|
-
value: { xDiff:
|
|
3523
|
+
value: { xDiff: parent.panPoint.currentPannedPoint.x, yDiff: parent.panPoint.currentPannedPoint.y } });
|
|
3524
|
+
parent.panPoint.currentPannedPoint = currentPannedPoint;
|
|
3500
3525
|
}
|
|
3501
3526
|
};
|
|
3502
3527
|
ToolbarModule.prototype.updateKBDNavigation = function (type) {
|
|
@@ -5482,60 +5507,10 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
5482
5507
|
}
|
|
5483
5508
|
break;
|
|
5484
5509
|
case 'bold':
|
|
5485
|
-
parent.notify('selection', { prop: 'setInitialTextEdit', value: { bool: false } });
|
|
5486
|
-
if (parent.activeObj.textSettings.bold && parent.activeObj.textSettings.italic) {
|
|
5487
|
-
parent.notify('shape', { prop: 'applyFontStyle', onPropertyChange: false,
|
|
5488
|
-
value: { item: 'italic' } });
|
|
5489
|
-
}
|
|
5490
|
-
else if (parent.activeObj.textSettings.bold && !parent.activeObj.textSettings.italic) {
|
|
5491
|
-
parent.notify('shape', { prop: 'applyFontStyle', onPropertyChange: false,
|
|
5492
|
-
value: { item: 'default' } });
|
|
5493
|
-
}
|
|
5494
|
-
else if (!parent.activeObj.textSettings.bold && parent.activeObj.textSettings.italic) {
|
|
5495
|
-
parent.notify('shape', { prop: 'applyFontStyle', onPropertyChange: false,
|
|
5496
|
-
value: { item: 'bolditalic' } });
|
|
5497
|
-
}
|
|
5498
|
-
else if (!parent.activeObj.textSettings.bold && !parent.activeObj.textSettings.italic) {
|
|
5499
|
-
parent.notify('shape', { prop: 'applyFontStyle', onPropertyChange: false,
|
|
5500
|
-
value: { item: 'bold' } });
|
|
5501
|
-
}
|
|
5502
|
-
if (parent.element.querySelector('#' + id + '_bold').classList.contains('e-selected-btn')) {
|
|
5503
|
-
parent.element.querySelector('#' + id + '_bold').classList.remove('e-selected-btn');
|
|
5504
|
-
}
|
|
5505
|
-
else {
|
|
5506
|
-
parent.element.querySelector('#' + id + '_bold').classList.add('e-selected-btn');
|
|
5507
|
-
}
|
|
5508
|
-
if (parent.activeObj.activePoint.width !== 0 || parent.activeObj.activePoint.height !== 0) {
|
|
5509
|
-
parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
|
|
5510
|
-
}
|
|
5511
|
-
break;
|
|
5512
5510
|
case 'italic':
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
value: { item: 'bold' } });
|
|
5517
|
-
}
|
|
5518
|
-
else if (parent.activeObj.textSettings.bold && !parent.activeObj.textSettings.italic) {
|
|
5519
|
-
parent.notify('shape', { prop: 'applyFontStyle', onPropertyChange: false,
|
|
5520
|
-
value: { item: 'bolditalic' } });
|
|
5521
|
-
}
|
|
5522
|
-
else if (!parent.activeObj.textSettings.bold && parent.activeObj.textSettings.italic) {
|
|
5523
|
-
parent.notify('shape', { prop: 'applyFontStyle', onPropertyChange: false,
|
|
5524
|
-
value: { item: 'default' } });
|
|
5525
|
-
}
|
|
5526
|
-
else if (!parent.activeObj.textSettings.bold && !parent.activeObj.textSettings.italic) {
|
|
5527
|
-
parent.notify('shape', { prop: 'applyFontStyle', onPropertyChange: false,
|
|
5528
|
-
value: { item: 'italic' } });
|
|
5529
|
-
}
|
|
5530
|
-
if (parent.element.querySelector('#' + id + '_italic').classList.contains('e-selected-btn')) {
|
|
5531
|
-
parent.element.querySelector('#' + id + '_italic').classList.remove('e-selected-btn');
|
|
5532
|
-
}
|
|
5533
|
-
else {
|
|
5534
|
-
parent.element.querySelector('#' + id + '_italic').classList.add('e-selected-btn');
|
|
5535
|
-
}
|
|
5536
|
-
if (parent.activeObj.activePoint.width !== 0 || parent.activeObj.activePoint.height !== 0) {
|
|
5537
|
-
parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
|
|
5538
|
-
}
|
|
5511
|
+
case 'underline':
|
|
5512
|
+
case 'strikethrough':
|
|
5513
|
+
this.toggleStyle(id, type);
|
|
5539
5514
|
break;
|
|
5540
5515
|
case 'croptransform':
|
|
5541
5516
|
this.performCropTransformClick();
|
|
@@ -5716,6 +5691,43 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
5716
5691
|
}
|
|
5717
5692
|
}
|
|
5718
5693
|
};
|
|
5694
|
+
ToolbarModule.prototype.getFontStyle = function (settings) {
|
|
5695
|
+
var parts = [];
|
|
5696
|
+
if (settings.bold) {
|
|
5697
|
+
parts.push('bold');
|
|
5698
|
+
}
|
|
5699
|
+
if (settings.italic) {
|
|
5700
|
+
parts.push('italic');
|
|
5701
|
+
}
|
|
5702
|
+
if (settings.underline) {
|
|
5703
|
+
parts.push('underline');
|
|
5704
|
+
}
|
|
5705
|
+
if (settings.strikethrough) {
|
|
5706
|
+
parts.push('strikethrough');
|
|
5707
|
+
}
|
|
5708
|
+
return parts.length === 0 ? 'default' : parts.join('');
|
|
5709
|
+
};
|
|
5710
|
+
ToolbarModule.prototype.toggleStyle = function (id, style) {
|
|
5711
|
+
var parent = this.parent;
|
|
5712
|
+
parent.notify('selection', { prop: 'setInitialTextEdit', value: { bool: false } });
|
|
5713
|
+
var settings = parent.activeObj.textSettings;
|
|
5714
|
+
settings[style] = !settings[style];
|
|
5715
|
+
var fontStyle = this.getFontStyle(settings);
|
|
5716
|
+
parent.notify('shape', { prop: 'applyFontStyle', onPropertyChange: false, value: { item: fontStyle } });
|
|
5717
|
+
var button = parent.element.querySelector("#" + id + "_" + style);
|
|
5718
|
+
if (button) {
|
|
5719
|
+
if (button.classList.contains('e-selected-btn')) {
|
|
5720
|
+
button.classList.remove('e-selected-btn');
|
|
5721
|
+
}
|
|
5722
|
+
else {
|
|
5723
|
+
button.classList.add('e-selected-btn');
|
|
5724
|
+
}
|
|
5725
|
+
}
|
|
5726
|
+
if (parent.activeObj.activePoint.width !== 0 ||
|
|
5727
|
+
parent.activeObj.activePoint.height !== 0) {
|
|
5728
|
+
parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
|
|
5729
|
+
}
|
|
5730
|
+
};
|
|
5719
5731
|
ToolbarModule.prototype.updateRedactType = function (value) {
|
|
5720
5732
|
var parent = this.parent;
|
|
5721
5733
|
parent.activeObj.redactType = value;
|
|
@@ -5734,7 +5746,7 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
5734
5746
|
if (parent.currObjType.isFiltered || parent.currObjType.isRedact) {
|
|
5735
5747
|
parent.okBtn();
|
|
5736
5748
|
}
|
|
5737
|
-
if (frame
|
|
5749
|
+
if (!frame || !frame.classList.contains('e-overlay')) {
|
|
5738
5750
|
zoom = parent.transform.zoomFactor;
|
|
5739
5751
|
parent.frameDestPoints = extend({}, parent.img, {}, true);
|
|
5740
5752
|
if (isNullOrUndefined(parent.cxtTbarHeight)) {
|
|
@@ -5743,7 +5755,10 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
5743
5755
|
this.callFrameToolbar();
|
|
5744
5756
|
parent.frameObj.type = 'mat';
|
|
5745
5757
|
this.callFrameToolbar();
|
|
5746
|
-
|
|
5758
|
+
var elem = parent.element.querySelector('#' + id + '_customizeWrapper');
|
|
5759
|
+
if (elem) {
|
|
5760
|
+
parent.cxtTbarHeight = elem.scrollHeight;
|
|
5761
|
+
}
|
|
5747
5762
|
parent.frameObj = frameObj;
|
|
5748
5763
|
parent.tempFrameObj = tempFrameObj;
|
|
5749
5764
|
}
|
|
@@ -6309,6 +6324,8 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
6309
6324
|
var fontSizeElem = parent.element.querySelector('.e-text-font-size');
|
|
6310
6325
|
var boldBtn = parent.element.querySelector('#' + id + '_bold');
|
|
6311
6326
|
var italicBtn = parent.element.querySelector('#' + id + '_italic');
|
|
6327
|
+
var underlineBtn = parent.element.querySelector('#' + id + '_underline');
|
|
6328
|
+
var strikethroughBtn = parent.element.querySelector('#' + id + '_strikethrough');
|
|
6312
6329
|
if (parent.activeObj.strokeSettings && parent.activeObj.textSettings) {
|
|
6313
6330
|
if (isNullOrUndefined(parent.activeObj.strokeSettings.strokeWidth)) {
|
|
6314
6331
|
parent.activeObj.strokeSettings.strokeWidth = 2;
|
|
@@ -6421,6 +6438,22 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
6421
6438
|
italicBtn.classList.remove('e-selected-btn');
|
|
6422
6439
|
}
|
|
6423
6440
|
}
|
|
6441
|
+
if (underlineBtn) {
|
|
6442
|
+
if (parent.activeObj.textSettings.underline) {
|
|
6443
|
+
underlineBtn.classList.add('e-selected-btn');
|
|
6444
|
+
}
|
|
6445
|
+
else {
|
|
6446
|
+
underlineBtn.classList.remove('e-selected-btn');
|
|
6447
|
+
}
|
|
6448
|
+
}
|
|
6449
|
+
if (strikethroughBtn) {
|
|
6450
|
+
if (parent.activeObj.textSettings.strikethrough) {
|
|
6451
|
+
strikethroughBtn.classList.add('e-selected-btn');
|
|
6452
|
+
}
|
|
6453
|
+
else {
|
|
6454
|
+
strikethroughBtn.classList.remove('e-selected-btn');
|
|
6455
|
+
}
|
|
6456
|
+
}
|
|
6424
6457
|
if (strokeWidthElem) {
|
|
6425
6458
|
var width = parent.activeObj.shape === 'text' ? parent.activeObj.strokeSettings.outlineWidth : parent.activeObj.strokeSettings.strokeWidth;
|
|
6426
6459
|
var strokeWidth = Math.round(width).toString();
|
|
@@ -6436,25 +6469,23 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
6436
6469
|
ToolbarModule.prototype.getStrokeWidth = function (text) {
|
|
6437
6470
|
var strokeWidth;
|
|
6438
6471
|
var currentWidth = parseInt(text, 10) / 2;
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
strokeWidth = this.l10n.getConstant('XLarge');
|
|
6457
|
-
break;
|
|
6472
|
+
if (currentWidth === 0) {
|
|
6473
|
+
strokeWidth = this.l10n.getConstant('NoOutline');
|
|
6474
|
+
}
|
|
6475
|
+
else if (currentWidth > 0 && currentWidth <= 1) {
|
|
6476
|
+
strokeWidth = this.l10n.getConstant('XSmall');
|
|
6477
|
+
}
|
|
6478
|
+
else if (currentWidth > 1 && currentWidth <= 2) {
|
|
6479
|
+
strokeWidth = this.l10n.getConstant('Small');
|
|
6480
|
+
}
|
|
6481
|
+
else if (currentWidth > 2 && currentWidth <= 3) {
|
|
6482
|
+
strokeWidth = this.l10n.getConstant('Medium');
|
|
6483
|
+
}
|
|
6484
|
+
else if (currentWidth > 3 && currentWidth <= 4) {
|
|
6485
|
+
strokeWidth = this.l10n.getConstant('Large');
|
|
6486
|
+
}
|
|
6487
|
+
else {
|
|
6488
|
+
strokeWidth = this.l10n.getConstant('XLarge');
|
|
6458
6489
|
}
|
|
6459
6490
|
return strokeWidth;
|
|
6460
6491
|
};
|
package/styles/bds-lite.css
CHANGED
|
@@ -801,6 +801,10 @@
|
|
|
801
801
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
805
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
806
|
+
}
|
|
807
|
+
|
|
804
808
|
.e-image-editor {
|
|
805
809
|
background: var(--color-sf-border-secondary);
|
|
806
810
|
}
|
package/styles/bds.css
CHANGED
|
@@ -801,6 +801,10 @@
|
|
|
801
801
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
805
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
806
|
+
}
|
|
807
|
+
|
|
804
808
|
.e-image-editor {
|
|
805
809
|
background: var(--color-sf-border-secondary);
|
|
806
810
|
}
|
|
@@ -981,4 +985,8 @@
|
|
|
981
985
|
.e-bigger .e-ie-save-dialog .e-ie-img-save-name {
|
|
982
986
|
width: calc(71% - 30px) !important; /* stylelint-disable-line declaration-no-important */
|
|
983
987
|
width: calc(65% - 13px) !important; /* stylelint-disable-line declaration-no-important */
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.e-bigger .e-device.e-image-editor .e-ie-img-save-dlg {
|
|
991
|
+
width: 106px;
|
|
984
992
|
}
|
|
@@ -688,6 +688,10 @@
|
|
|
688
688
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
689
689
|
}
|
|
690
690
|
|
|
691
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
692
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
693
|
+
}
|
|
694
|
+
|
|
691
695
|
.e-image-editor {
|
|
692
696
|
background: #959595;
|
|
693
697
|
}
|
|
@@ -688,6 +688,10 @@
|
|
|
688
688
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
689
689
|
}
|
|
690
690
|
|
|
691
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
692
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
693
|
+
}
|
|
694
|
+
|
|
691
695
|
.e-image-editor {
|
|
692
696
|
background: #959595;
|
|
693
697
|
}
|
|
@@ -689,6 +689,10 @@
|
|
|
689
689
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
690
690
|
}
|
|
691
691
|
|
|
692
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
693
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
694
|
+
}
|
|
695
|
+
|
|
692
696
|
.e-image-editor {
|
|
693
697
|
background: #e6e6e6;
|
|
694
698
|
}
|
package/styles/bootstrap.css
CHANGED
|
@@ -689,6 +689,10 @@
|
|
|
689
689
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
690
690
|
}
|
|
691
691
|
|
|
692
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
693
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
694
|
+
}
|
|
695
|
+
|
|
692
696
|
.e-image-editor {
|
|
693
697
|
background: #e6e6e6;
|
|
694
698
|
}
|
|
@@ -687,6 +687,10 @@
|
|
|
687
687
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
688
688
|
}
|
|
689
689
|
|
|
690
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
691
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
692
|
+
}
|
|
693
|
+
|
|
690
694
|
.e-image-editor {
|
|
691
695
|
background: #e9ecef;
|
|
692
696
|
}
|
package/styles/bootstrap4.css
CHANGED
|
@@ -687,6 +687,10 @@
|
|
|
687
687
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
688
688
|
}
|
|
689
689
|
|
|
690
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
691
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
692
|
+
}
|
|
693
|
+
|
|
690
694
|
.e-image-editor {
|
|
691
695
|
background: #e9ecef;
|
|
692
696
|
}
|
|
@@ -694,6 +694,10 @@
|
|
|
694
694
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
695
695
|
}
|
|
696
696
|
|
|
697
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
698
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
699
|
+
}
|
|
700
|
+
|
|
697
701
|
.e-image-editor {
|
|
698
702
|
background: rgb(68.0034482759, 75.85, 83.6965517241);
|
|
699
703
|
}
|
|
@@ -694,6 +694,10 @@
|
|
|
694
694
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
695
695
|
}
|
|
696
696
|
|
|
697
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
698
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
699
|
+
}
|
|
700
|
+
|
|
697
701
|
.e-image-editor {
|
|
698
702
|
background: rgb(68.0034482759, 75.85, 83.6965517241);
|
|
699
703
|
}
|
|
@@ -694,6 +694,10 @@
|
|
|
694
694
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
695
695
|
}
|
|
696
696
|
|
|
697
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
698
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
699
|
+
}
|
|
700
|
+
|
|
697
701
|
.e-image-editor {
|
|
698
702
|
background: #dee2e6;
|
|
699
703
|
}
|
|
@@ -698,6 +698,10 @@
|
|
|
698
698
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
702
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
703
|
+
}
|
|
704
|
+
|
|
701
705
|
.e-image-editor {
|
|
702
706
|
background: var(--color-sf-border-light);
|
|
703
707
|
}
|
package/styles/bootstrap5.3.css
CHANGED
|
@@ -698,6 +698,10 @@
|
|
|
698
698
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
699
699
|
}
|
|
700
700
|
|
|
701
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
702
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
703
|
+
}
|
|
704
|
+
|
|
701
705
|
.e-image-editor {
|
|
702
706
|
background: var(--color-sf-border-light);
|
|
703
707
|
}
|
package/styles/bootstrap5.css
CHANGED
|
@@ -694,6 +694,10 @@
|
|
|
694
694
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
695
695
|
}
|
|
696
696
|
|
|
697
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
698
|
+
top: calc(50% - 16px) !important; /* stylelint-disable-line declaration-no-important */
|
|
699
|
+
}
|
|
700
|
+
|
|
697
701
|
.e-image-editor {
|
|
698
702
|
background: #dee2e6;
|
|
699
703
|
}
|
|
@@ -690,6 +690,10 @@
|
|
|
690
690
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
691
691
|
}
|
|
692
692
|
|
|
693
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
694
|
+
top: calc(50% - 18px) !important; /* stylelint-disable-line declaration-no-important */
|
|
695
|
+
}
|
|
696
|
+
|
|
693
697
|
.e-image-editor {
|
|
694
698
|
background: #201f1f;
|
|
695
699
|
}
|
package/styles/fabric-dark.css
CHANGED
|
@@ -690,6 +690,10 @@
|
|
|
690
690
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
691
691
|
}
|
|
692
692
|
|
|
693
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
694
|
+
top: calc(50% - 18px) !important; /* stylelint-disable-line declaration-no-important */
|
|
695
|
+
}
|
|
696
|
+
|
|
693
697
|
.e-image-editor {
|
|
694
698
|
background: #201f1f;
|
|
695
699
|
}
|
|
@@ -869,4 +873,19 @@
|
|
|
869
873
|
}
|
|
870
874
|
.e-bigger .e-ie-save-dialog .e-ie-img-save-name {
|
|
871
875
|
width: calc(71% - 30px) !important; /* stylelint-disable-line declaration-no-important */
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.e-bigger .e-device.e-image-editor .e-ie-img-save-dlg {
|
|
879
|
+
width: 120px;
|
|
880
|
+
}
|
|
881
|
+
.e-bigger .e-device.e-image-editor .e-ie-img-save-name {
|
|
882
|
+
width: calc(64% - 27px) !important; /* stylelint-disable-line declaration-no-important */
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.e-bigger .e-device.e-image-editor .e-blr-ie-save-dialog .e-ie-img-save-dlg {
|
|
886
|
+
width: 115px;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.e-blr-ie-save-dialog.e-device .e-ie-img-save-name {
|
|
890
|
+
width: calc(64% - 35px) !important; /* stylelint-disable-line declaration-no-important */
|
|
872
891
|
}
|
package/styles/fabric-lite.css
CHANGED
|
@@ -692,6 +692,10 @@
|
|
|
692
692
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
693
693
|
}
|
|
694
694
|
|
|
695
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
696
|
+
top: calc(50% - 18px) !important; /* stylelint-disable-line declaration-no-important */
|
|
697
|
+
}
|
|
698
|
+
|
|
695
699
|
.e-image-editor {
|
|
696
700
|
background: #fff;
|
|
697
701
|
}
|
package/styles/fabric.css
CHANGED
|
@@ -692,6 +692,10 @@
|
|
|
692
692
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
693
693
|
}
|
|
694
694
|
|
|
695
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
696
|
+
top: calc(50% - 18px) !important; /* stylelint-disable-line declaration-no-important */
|
|
697
|
+
}
|
|
698
|
+
|
|
695
699
|
.e-image-editor {
|
|
696
700
|
background: #fff;
|
|
697
701
|
}
|
|
@@ -872,4 +876,19 @@
|
|
|
872
876
|
.e-bigger .e-ie-save-dialog .e-ie-img-save-name {
|
|
873
877
|
width: calc(71% - 30px) !important; /* stylelint-disable-line declaration-no-important */
|
|
874
878
|
width: calc(64% - 13px) !important; /* stylelint-disable-line declaration-no-important */
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
.e-bigger .e-device.e-image-editor .e-ie-img-save-dlg {
|
|
882
|
+
width: 120px;
|
|
883
|
+
}
|
|
884
|
+
.e-bigger .e-device.e-image-editor .e-ie-img-save-name {
|
|
885
|
+
width: calc(64% - 27px) !important; /* stylelint-disable-line declaration-no-important */
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.e-bigger .e-device.e-image-editor .e-blr-ie-save-dialog .e-ie-img-save-dlg {
|
|
889
|
+
width: 115px;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.e-blr-ie-save-dialog.e-device .e-ie-img-save-name {
|
|
893
|
+
width: calc(64% - 35px) !important; /* stylelint-disable-line declaration-no-important */
|
|
875
894
|
}
|
|
@@ -697,6 +697,10 @@
|
|
|
697
697
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
701
|
+
top: calc(50% - 18px) !important; /* stylelint-disable-line declaration-no-important */
|
|
702
|
+
}
|
|
703
|
+
|
|
700
704
|
.e-image-editor {
|
|
701
705
|
background: #201f1e;
|
|
702
706
|
}
|
package/styles/fluent-dark.css
CHANGED
|
@@ -697,6 +697,10 @@
|
|
|
697
697
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
701
|
+
top: calc(50% - 18px) !important; /* stylelint-disable-line declaration-no-important */
|
|
702
|
+
}
|
|
703
|
+
|
|
700
704
|
.e-image-editor {
|
|
701
705
|
background: #201f1e;
|
|
702
706
|
}
|
|
@@ -847,6 +851,11 @@
|
|
|
847
851
|
.e-image-editor.e-bigger .e-toolbar .e-toolbar-items.e-tbar-pos .e-toolbar-left {
|
|
848
852
|
line-height: 1;
|
|
849
853
|
}
|
|
854
|
+
.e-bigger .e-image-editor .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn, .e-bigger .e-image-editor .e-blr-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn,
|
|
855
|
+
.e-image-editor.e-bigger .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn,
|
|
856
|
+
.e-image-editor.e-bigger .e-blr-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn {
|
|
857
|
+
padding: 7px 14px;
|
|
858
|
+
}
|
|
850
859
|
.e-bigger .e-straighten .e-control-wrapper.e-slider-container .e-slider .e-handle {
|
|
851
860
|
top: calc(50% - 8px) !important; /* stylelint-disable-line declaration-no-important */
|
|
852
861
|
}
|
|
@@ -878,4 +887,8 @@
|
|
|
878
887
|
.e-bigger .e-ie-save-dialog .e-ie-img-save-name {
|
|
879
888
|
width: calc(71% - 30px) !important; /* stylelint-disable-line declaration-no-important */
|
|
880
889
|
width: calc(68% - 30px) !important; /* stylelint-disable-line declaration-no-important */
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.e-bigger .e-device.e-image-editor .e-ie-img-save-dlg {
|
|
893
|
+
width: 107px;
|
|
881
894
|
}
|
package/styles/fluent-lite.css
CHANGED
|
@@ -697,6 +697,10 @@
|
|
|
697
697
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
701
|
+
top: calc(50% - 18px) !important; /* stylelint-disable-line declaration-no-important */
|
|
702
|
+
}
|
|
703
|
+
|
|
700
704
|
.e-image-editor {
|
|
701
705
|
background: #faf9f8;
|
|
702
706
|
}
|
package/styles/fluent.css
CHANGED
|
@@ -697,6 +697,10 @@
|
|
|
697
697
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
701
|
+
top: calc(50% - 18px) !important; /* stylelint-disable-line declaration-no-important */
|
|
702
|
+
}
|
|
703
|
+
|
|
700
704
|
.e-image-editor {
|
|
701
705
|
background: #faf9f8;
|
|
702
706
|
}
|
|
@@ -847,6 +851,11 @@
|
|
|
847
851
|
.e-image-editor.e-bigger .e-toolbar .e-toolbar-items.e-tbar-pos .e-toolbar-left {
|
|
848
852
|
line-height: 1;
|
|
849
853
|
}
|
|
854
|
+
.e-bigger .e-image-editor .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn, .e-bigger .e-image-editor .e-blr-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn,
|
|
855
|
+
.e-image-editor.e-bigger .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn,
|
|
856
|
+
.e-image-editor.e-bigger .e-blr-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-dropdown-btn {
|
|
857
|
+
padding: 7px 14px;
|
|
858
|
+
}
|
|
850
859
|
.e-bigger .e-straighten .e-control-wrapper.e-slider-container .e-slider .e-handle {
|
|
851
860
|
top: calc(50% - 8px) !important; /* stylelint-disable-line declaration-no-important */
|
|
852
861
|
}
|
|
@@ -878,4 +887,8 @@
|
|
|
878
887
|
.e-bigger .e-ie-save-dialog .e-ie-img-save-name {
|
|
879
888
|
width: calc(71% - 30px) !important; /* stylelint-disable-line declaration-no-important */
|
|
880
889
|
width: calc(68% - 30px) !important; /* stylelint-disable-line declaration-no-important */
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.e-bigger .e-device.e-image-editor .e-ie-img-save-dlg {
|
|
893
|
+
width: 107px;
|
|
881
894
|
}
|
package/styles/fluent2-lite.css
CHANGED
|
@@ -316,6 +316,10 @@
|
|
|
316
316
|
.e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn .e-icons.e-btn-icon {
|
|
317
317
|
font-size: 16px;
|
|
318
318
|
}
|
|
319
|
+
.e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-dropdown-btn.e-btn.e-icon-btn {
|
|
320
|
+
padding-top: 7.5px;
|
|
321
|
+
padding-bottom: 7.5px;
|
|
322
|
+
}
|
|
319
323
|
.e-image-editor .e-toolbar .e-toolbar-items .e-upload {
|
|
320
324
|
border: none;
|
|
321
325
|
}
|
|
@@ -720,6 +724,10 @@
|
|
|
720
724
|
opacity: 1 !important; /* stylelint-disable-line declaration-no-important */
|
|
721
725
|
}
|
|
722
726
|
|
|
727
|
+
.e-device.e-image-editor .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal .e-slider {
|
|
728
|
+
top: calc(50% - 18px) !important; /* stylelint-disable-line declaration-no-important */
|
|
729
|
+
}
|
|
730
|
+
|
|
723
731
|
.e-image-editor {
|
|
724
732
|
background: var(--color-sf-content-bg-color-alt1);
|
|
725
733
|
}
|