@syncfusion/ej2-image-editor 29.2.5 → 30.1.38
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 +898 -227
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +920 -237
- 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 +43 -5
- 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 +121 -80
- 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 +39 -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 +24 -1
- package/styles/image-editor/material3.css +24 -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 +15 -0
- package/styles/material3-dark.css +24 -1
- package/styles/material3-lite.css +15 -0
- package/styles/material3.css +24 -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',
|
|
@@ -423,7 +425,17 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
423
425
|
};
|
|
424
426
|
ToolbarModule.prototype.reset = function () {
|
|
425
427
|
var parent = this.parent;
|
|
426
|
-
|
|
428
|
+
if (isNullOrUndefined(parent.toolbar) || (parent.toolbar && parent.toolbar.length > 0) || parent.toolbarTemplate) {
|
|
429
|
+
if (parent.toolbarTemplate) {
|
|
430
|
+
this.toolbarHeight = parent.element.querySelector('#' + parent.element.id + '_toolbarArea').clientHeight;
|
|
431
|
+
}
|
|
432
|
+
else {
|
|
433
|
+
this.toolbarHeight = 46;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
this.toolbarHeight = 0;
|
|
438
|
+
}
|
|
427
439
|
parent.prevCurrSelectionPoint = null;
|
|
428
440
|
this.zoomBtnHold = null;
|
|
429
441
|
this.currToolbar = '';
|
|
@@ -2185,12 +2197,16 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
2185
2197
|
if (!Browser.isDevice) {
|
|
2186
2198
|
var obj = { shape: null };
|
|
2187
2199
|
parent.notify('selection', { prop: 'getCurrentDrawingShape', value: { obj: obj } });
|
|
2188
|
-
if (obj['shape']
|
|
2200
|
+
if (obj['shape'] === 'path') {
|
|
2201
|
+
toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
|
|
2202
|
+
tooltipText: this.l10n.getConstant('OK'), align: 'Right', tabIndex: 0, disabled: true });
|
|
2203
|
+
}
|
|
2204
|
+
else {
|
|
2189
2205
|
toolbarItems.push({ id: id + '_ok', prefixIcon: 'e-icons e-check', cssClass: 'top-icon e-tick',
|
|
2190
2206
|
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
2207
|
}
|
|
2208
|
+
toolbarItems.push({ id: id + '_cancel', prefixIcon: 'e-icons e-close', cssClass: 'top-icon e-save',
|
|
2209
|
+
tooltipText: this.l10n.getConstant('Cancel'), align: 'Right' });
|
|
2194
2210
|
}
|
|
2195
2211
|
return toolbarItems;
|
|
2196
2212
|
};
|
|
@@ -2846,6 +2862,14 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
2846
2862
|
toolbarItems.push({ id: id + '_italic', prefixIcon: 'e-icons e-italic', cssClass: 'top-icon e-italic',
|
|
2847
2863
|
tooltipText: this.l10n.getConstant('Italic'), align: 'Center' });
|
|
2848
2864
|
}
|
|
2865
|
+
if (items.indexOf('underline') > -1) {
|
|
2866
|
+
toolbarItems.push({ id: id + '_underline', prefixIcon: 'e-icons e-underline', cssClass: 'top-icon e-underline',
|
|
2867
|
+
tooltipText: this.l10n.getConstant('Underline'), align: 'Center' });
|
|
2868
|
+
}
|
|
2869
|
+
if (items.indexOf('strikethrough') > -1) {
|
|
2870
|
+
toolbarItems.push({ id: id + '_strikethrough', prefixIcon: 'e-icons e-strikethrough', cssClass: 'top-icon e-strikethrough',
|
|
2871
|
+
tooltipText: this.l10n.getConstant('Strikethrough'), align: 'Center' });
|
|
2872
|
+
}
|
|
2849
2873
|
if (items.indexOf('strokeWidth') > -1) {
|
|
2850
2874
|
toolbarItems.push({ id: id + '_strokeWidth', cssClass: 'top-icon e-size', tooltipText: this.l10n.getConstant('TextOutlineWidth'), align: 'Center',
|
|
2851
2875
|
type: 'Input', template: '<button id="' + id + '_borderWidthBtn"></button>' });
|
|
@@ -3328,6 +3352,12 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
3328
3352
|
}
|
|
3329
3353
|
if (Browser.isDevice) {
|
|
3330
3354
|
this.initMainToolbar(false, true, true);
|
|
3355
|
+
var okBtn = document.getElementById(parent.element.id + '_ok');
|
|
3356
|
+
var drawingObject = { shape: '' };
|
|
3357
|
+
parent.notify('selection', { prop: 'getCurrentDrawingShape', onPropertyChange: false, value: { obj: drawingObject } });
|
|
3358
|
+
if (drawingObject['shape'] === 'path' && okBtn) {
|
|
3359
|
+
okBtn.classList.add('e-overlay');
|
|
3360
|
+
}
|
|
3331
3361
|
}
|
|
3332
3362
|
if (parent.activeObj.shape === 'line' || parent.activeObj.shape === 'path') {
|
|
3333
3363
|
args.toolbarItems = ['strokeColor', 'strokeWidth', 'z-order', 'duplicate', 'remove'];
|
|
@@ -3359,7 +3389,7 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
3359
3389
|
if (Browser.isDevice) {
|
|
3360
3390
|
this.initMainToolbar(false, true, true);
|
|
3361
3391
|
}
|
|
3362
|
-
args.toolbarItems = ['fontFamily', 'fontSize', 'fontColor', 'fillColor', 'strokeColor', 'strokeWidth', 'bold', 'italic', 'z-order', 'duplicate', 'remove', 'text'];
|
|
3392
|
+
args.toolbarItems = ['fontFamily', 'fontSize', 'fontColor', 'fillColor', 'strokeColor', 'strokeWidth', 'bold', 'italic', 'underline', 'strikethrough', 'z-order', 'duplicate', 'remove', 'text'];
|
|
3363
3393
|
this.initTextToolbarItem(args.toolbarItems);
|
|
3364
3394
|
break;
|
|
3365
3395
|
case 'pen':
|
|
@@ -3495,8 +3525,13 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
3495
3525
|
parent.notify('transform', { prop: 'getPanMove', onPropertyChange: false,
|
|
3496
3526
|
value: { obj: panMoveObj } });
|
|
3497
3527
|
if (panMoveObj['panMove']) {
|
|
3528
|
+
var currentPannedPoint = extend({}, parent.panPoint.currentPannedPoint, {}, true);
|
|
3529
|
+
parent.panPoint.currentPannedPoint = { x: parent.panPoint.totalPannedClientPoint.x, y: parent.panPoint.totalPannedClientPoint.y };
|
|
3530
|
+
parent.panPoint.totalPannedClientPoint = { x: 0, y: 0 };
|
|
3531
|
+
parent.panPoint.totalPannedInternalPoint = { x: 0, y: 0 };
|
|
3498
3532
|
parent.notify('transform', { prop: 'drawPannedImage', onPropertyChange: false,
|
|
3499
|
-
value: { xDiff:
|
|
3533
|
+
value: { xDiff: parent.panPoint.currentPannedPoint.x, yDiff: parent.panPoint.currentPannedPoint.y } });
|
|
3534
|
+
parent.panPoint.currentPannedPoint = currentPannedPoint;
|
|
3500
3535
|
}
|
|
3501
3536
|
};
|
|
3502
3537
|
ToolbarModule.prototype.updateKBDNavigation = function (type) {
|
|
@@ -5482,60 +5517,10 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
5482
5517
|
}
|
|
5483
5518
|
break;
|
|
5484
5519
|
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
5520
|
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
|
-
}
|
|
5521
|
+
case 'underline':
|
|
5522
|
+
case 'strikethrough':
|
|
5523
|
+
this.toggleStyle(id, type);
|
|
5539
5524
|
break;
|
|
5540
5525
|
case 'croptransform':
|
|
5541
5526
|
this.performCropTransformClick();
|
|
@@ -5716,6 +5701,43 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
5716
5701
|
}
|
|
5717
5702
|
}
|
|
5718
5703
|
};
|
|
5704
|
+
ToolbarModule.prototype.getFontStyle = function (settings) {
|
|
5705
|
+
var parts = [];
|
|
5706
|
+
if (settings.bold) {
|
|
5707
|
+
parts.push('bold');
|
|
5708
|
+
}
|
|
5709
|
+
if (settings.italic) {
|
|
5710
|
+
parts.push('italic');
|
|
5711
|
+
}
|
|
5712
|
+
if (settings.underline) {
|
|
5713
|
+
parts.push('underline');
|
|
5714
|
+
}
|
|
5715
|
+
if (settings.strikethrough) {
|
|
5716
|
+
parts.push('strikethrough');
|
|
5717
|
+
}
|
|
5718
|
+
return parts.length === 0 ? 'default' : parts.join('');
|
|
5719
|
+
};
|
|
5720
|
+
ToolbarModule.prototype.toggleStyle = function (id, style) {
|
|
5721
|
+
var parent = this.parent;
|
|
5722
|
+
parent.notify('selection', { prop: 'setInitialTextEdit', value: { bool: false } });
|
|
5723
|
+
var settings = parent.activeObj.textSettings;
|
|
5724
|
+
settings[style] = !settings[style];
|
|
5725
|
+
var fontStyle = this.getFontStyle(settings);
|
|
5726
|
+
parent.notify('shape', { prop: 'applyFontStyle', onPropertyChange: false, value: { item: fontStyle } });
|
|
5727
|
+
var button = parent.element.querySelector("#" + id + "_" + style);
|
|
5728
|
+
if (button) {
|
|
5729
|
+
if (button.classList.contains('e-selected-btn')) {
|
|
5730
|
+
button.classList.remove('e-selected-btn');
|
|
5731
|
+
}
|
|
5732
|
+
else {
|
|
5733
|
+
button.classList.add('e-selected-btn');
|
|
5734
|
+
}
|
|
5735
|
+
}
|
|
5736
|
+
if (parent.activeObj.activePoint.width !== 0 ||
|
|
5737
|
+
parent.activeObj.activePoint.height !== 0) {
|
|
5738
|
+
parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
|
|
5739
|
+
}
|
|
5740
|
+
};
|
|
5719
5741
|
ToolbarModule.prototype.updateRedactType = function (value) {
|
|
5720
5742
|
var parent = this.parent;
|
|
5721
5743
|
parent.activeObj.redactType = value;
|
|
@@ -5734,7 +5756,7 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
5734
5756
|
if (parent.currObjType.isFiltered || parent.currObjType.isRedact) {
|
|
5735
5757
|
parent.okBtn();
|
|
5736
5758
|
}
|
|
5737
|
-
if (frame
|
|
5759
|
+
if (!frame || !frame.classList.contains('e-overlay')) {
|
|
5738
5760
|
zoom = parent.transform.zoomFactor;
|
|
5739
5761
|
parent.frameDestPoints = extend({}, parent.img, {}, true);
|
|
5740
5762
|
if (isNullOrUndefined(parent.cxtTbarHeight)) {
|
|
@@ -5743,7 +5765,10 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
5743
5765
|
this.callFrameToolbar();
|
|
5744
5766
|
parent.frameObj.type = 'mat';
|
|
5745
5767
|
this.callFrameToolbar();
|
|
5746
|
-
|
|
5768
|
+
var elem = parent.element.querySelector('#' + id + '_customizeWrapper');
|
|
5769
|
+
if (elem) {
|
|
5770
|
+
parent.cxtTbarHeight = elem.scrollHeight;
|
|
5771
|
+
}
|
|
5747
5772
|
parent.frameObj = frameObj;
|
|
5748
5773
|
parent.tempFrameObj = tempFrameObj;
|
|
5749
5774
|
}
|
|
@@ -6309,6 +6334,8 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
6309
6334
|
var fontSizeElem = parent.element.querySelector('.e-text-font-size');
|
|
6310
6335
|
var boldBtn = parent.element.querySelector('#' + id + '_bold');
|
|
6311
6336
|
var italicBtn = parent.element.querySelector('#' + id + '_italic');
|
|
6337
|
+
var underlineBtn = parent.element.querySelector('#' + id + '_underline');
|
|
6338
|
+
var strikethroughBtn = parent.element.querySelector('#' + id + '_strikethrough');
|
|
6312
6339
|
if (parent.activeObj.strokeSettings && parent.activeObj.textSettings) {
|
|
6313
6340
|
if (isNullOrUndefined(parent.activeObj.strokeSettings.strokeWidth)) {
|
|
6314
6341
|
parent.activeObj.strokeSettings.strokeWidth = 2;
|
|
@@ -6421,6 +6448,22 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
6421
6448
|
italicBtn.classList.remove('e-selected-btn');
|
|
6422
6449
|
}
|
|
6423
6450
|
}
|
|
6451
|
+
if (underlineBtn) {
|
|
6452
|
+
if (parent.activeObj.textSettings.underline) {
|
|
6453
|
+
underlineBtn.classList.add('e-selected-btn');
|
|
6454
|
+
}
|
|
6455
|
+
else {
|
|
6456
|
+
underlineBtn.classList.remove('e-selected-btn');
|
|
6457
|
+
}
|
|
6458
|
+
}
|
|
6459
|
+
if (strikethroughBtn) {
|
|
6460
|
+
if (parent.activeObj.textSettings.strikethrough) {
|
|
6461
|
+
strikethroughBtn.classList.add('e-selected-btn');
|
|
6462
|
+
}
|
|
6463
|
+
else {
|
|
6464
|
+
strikethroughBtn.classList.remove('e-selected-btn');
|
|
6465
|
+
}
|
|
6466
|
+
}
|
|
6424
6467
|
if (strokeWidthElem) {
|
|
6425
6468
|
var width = parent.activeObj.shape === 'text' ? parent.activeObj.strokeSettings.outlineWidth : parent.activeObj.strokeSettings.strokeWidth;
|
|
6426
6469
|
var strokeWidth = Math.round(width).toString();
|
|
@@ -6436,25 +6479,23 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
6436
6479
|
ToolbarModule.prototype.getStrokeWidth = function (text) {
|
|
6437
6480
|
var strokeWidth;
|
|
6438
6481
|
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;
|
|
6482
|
+
if (currentWidth === 0) {
|
|
6483
|
+
strokeWidth = this.l10n.getConstant('NoOutline');
|
|
6484
|
+
}
|
|
6485
|
+
else if (currentWidth > 0 && currentWidth <= 1) {
|
|
6486
|
+
strokeWidth = this.l10n.getConstant('XSmall');
|
|
6487
|
+
}
|
|
6488
|
+
else if (currentWidth > 1 && currentWidth <= 2) {
|
|
6489
|
+
strokeWidth = this.l10n.getConstant('Small');
|
|
6490
|
+
}
|
|
6491
|
+
else if (currentWidth > 2 && currentWidth <= 3) {
|
|
6492
|
+
strokeWidth = this.l10n.getConstant('Medium');
|
|
6493
|
+
}
|
|
6494
|
+
else if (currentWidth > 3 && currentWidth <= 4) {
|
|
6495
|
+
strokeWidth = this.l10n.getConstant('Large');
|
|
6496
|
+
}
|
|
6497
|
+
else {
|
|
6498
|
+
strokeWidth = this.l10n.getConstant('XLarge');
|
|
6458
6499
|
}
|
|
6459
6500
|
return strokeWidth;
|
|
6460
6501
|
};
|
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
|
}
|