@syncfusion/ej2-image-editor 26.1.41 → 26.2.5

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.
Files changed (53) hide show
  1. package/dist/ej2-image-editor.umd.min.js +2 -2
  2. package/dist/ej2-image-editor.umd.min.js.map +1 -1
  3. package/dist/es6/ej2-image-editor.es2015.js +83 -19
  4. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  5. package/dist/es6/ej2-image-editor.es5.js +82 -18
  6. package/dist/es6/ej2-image-editor.es5.js.map +1 -1
  7. package/dist/global/ej2-image-editor.min.js +2 -2
  8. package/dist/global/ej2-image-editor.min.js.map +1 -1
  9. package/dist/global/index.d.ts +1 -1
  10. package/hotfix/26.1.35_Vol2.txt +1 -0
  11. package/package.json +12 -12
  12. package/src/image-editor/action/selection.js +6 -3
  13. package/src/image-editor/action/transform.js +2 -1
  14. package/src/image-editor/base/image-editor.js +56 -7
  15. package/src/image-editor/renderer/toolbar.js +18 -7
  16. package/styles/bootstrap-dark.css +0 -2
  17. package/styles/bootstrap.css +0 -2
  18. package/styles/bootstrap4.css +2 -0
  19. package/styles/bootstrap5-dark.css +2 -0
  20. package/styles/bootstrap5.css +2 -0
  21. package/styles/fabric-dark.css +1 -2
  22. package/styles/fabric.css +1 -2
  23. package/styles/fluent-dark.css +3 -2
  24. package/styles/fluent.css +3 -2
  25. package/styles/fluent2.css +26 -12
  26. package/styles/highcontrast-light.css +3 -2
  27. package/styles/highcontrast.css +3 -2
  28. package/styles/image-editor/_layout.scss +16 -0
  29. package/styles/image-editor/_theme.scss +34 -1
  30. package/styles/image-editor/bootstrap-dark.css +0 -2
  31. package/styles/image-editor/bootstrap.css +0 -2
  32. package/styles/image-editor/bootstrap4.css +2 -0
  33. package/styles/image-editor/bootstrap5-dark.css +2 -0
  34. package/styles/image-editor/bootstrap5.css +2 -0
  35. package/styles/image-editor/fabric-dark.css +1 -2
  36. package/styles/image-editor/fabric.css +1 -2
  37. package/styles/image-editor/fluent-dark.css +3 -2
  38. package/styles/image-editor/fluent.css +3 -2
  39. package/styles/image-editor/fluent2.css +26 -12
  40. package/styles/image-editor/highcontrast-light.css +3 -2
  41. package/styles/image-editor/highcontrast.css +3 -2
  42. package/styles/image-editor/material-dark.css +0 -2
  43. package/styles/image-editor/material.css +0 -2
  44. package/styles/image-editor/material3-dark.css +2 -3
  45. package/styles/image-editor/material3.css +2 -3
  46. package/styles/image-editor/tailwind-dark.css +2 -2
  47. package/styles/image-editor/tailwind.css +2 -2
  48. package/styles/material-dark.css +0 -2
  49. package/styles/material.css +0 -2
  50. package/styles/material3-dark.css +2 -3
  51. package/styles/material3.css +2 -3
  52. package/styles/tailwind-dark.css +2 -2
  53. package/styles/tailwind.css +2 -2
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 26.1.41
3
+ * version : 26.2.5
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
@@ -0,0 +1 @@
1
+ hotfix/26.1.35_Vol2
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-image-editor@*",
3
- "_id": "@syncfusion/ej2-image-editor@26.1.40",
3
+ "_id": "@syncfusion/ej2-image-editor@26.2.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-JkKZm0ZX+CT8SxX4R5rwflCIAkpN+SNRGGzqoaA0Ds/tZyeZ3sGWV4oRubOw7CYi1mvFhdc5d9324shHPz/bjA==",
5
+ "_integrity": "sha512-qP15xeRZJ0LuRT3Na9Sa/tWg3mYzNzYlBzPuPod6ILfk4WEbo8/tH7JV5cipBpyXrsdHBd9fXZ+0nOpWEW0Tfg==",
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-26.1.40.tgz",
27
- "_shasum": "3fbde6876ebd51369e500d656bbf616aeeb2bac7",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-26.2.4.tgz",
27
+ "_shasum": "ac77b28875b507241c3f70bfc279d5debb727a84",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
30
30
  "author": {
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
- "@syncfusion/ej2-base": "~26.1.37",
36
- "@syncfusion/ej2-buttons": "~26.1.40",
37
- "@syncfusion/ej2-dropdowns": "~26.1.41",
38
- "@syncfusion/ej2-inputs": "~26.1.41",
39
- "@syncfusion/ej2-navigations": "~26.1.41",
40
- "@syncfusion/ej2-popups": "~26.1.41",
41
- "@syncfusion/ej2-splitbuttons": "~26.1.35"
35
+ "@syncfusion/ej2-base": "~26.2.5",
36
+ "@syncfusion/ej2-buttons": "~26.2.5",
37
+ "@syncfusion/ej2-dropdowns": "~26.2.5",
38
+ "@syncfusion/ej2-inputs": "~26.2.5",
39
+ "@syncfusion/ej2-navigations": "~26.2.5",
40
+ "@syncfusion/ej2-popups": "~26.2.5",
41
+ "@syncfusion/ej2-splitbuttons": "~26.2.5"
42
42
  },
43
43
  "deprecated": false,
44
44
  "description": "Essential JS 2 ImageEditor",
@@ -68,7 +68,7 @@
68
68
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
69
69
  },
70
70
  "typings": "index.d.ts",
71
- "version": "26.1.41",
71
+ "version": "26.2.5",
72
72
  "sideEffects": false,
73
73
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
74
74
  }
@@ -950,6 +950,10 @@ var Selection = /** @class */ (function () {
950
950
  return;
951
951
  }
952
952
  var actObj = extend({}, obj[i], {}, true);
953
+ if (actObj.activePoint.width === 0 && actObj.activePoint.height === 0) {
954
+ obj.splice(i, 1);
955
+ return;
956
+ }
953
957
  this.cursorTargetId = actObj.currIndex;
954
958
  if (actObj.shape === 'line' || actObj.shape === 'arrow') {
955
959
  this.setCursorForLineArrow(actObj, x, y, upperCanvas);
@@ -3539,7 +3543,6 @@ var Selection = /** @class */ (function () {
3539
3543
  var tempObj = extend({}, parent.objColl[parent.objColl.length - 1], {}, true);
3540
3544
  parent.objColl.pop();
3541
3545
  this.redrawShape(tempObj);
3542
- parent.objColl.push(tempObj);
3543
3546
  this.tempObjColl = undefined;
3544
3547
  }
3545
3548
  if (!this.isFhdEditing) {
@@ -4025,10 +4028,10 @@ var Selection = /** @class */ (function () {
4025
4028
  this.panDown = null;
4026
4029
  parent.notify('transform', { prop: 'setPanMove', onPropertyChange: false,
4027
4030
  value: { point: null } });
4028
- parent.notify('transform', { prop: 'setTempPanMove', onPropertyChange: false,
4029
- value: { point: null } });
4030
4031
  }
4031
4032
  }
4033
+ parent.notify('transform', { prop: 'setTempPanMove', onPropertyChange: false,
4034
+ value: { point: null } });
4032
4035
  if (this.currentDrawingShape !== 'path') {
4033
4036
  parent.currObjType.isDragging = false;
4034
4037
  }
@@ -1557,7 +1557,8 @@ var Transform = /** @class */ (function () {
1557
1557
  if (freehandObj['bool']) {
1558
1558
  parent.notify('toolbar', { prop: 'destroy-qa-toolbar', onPropertyChange: false });
1559
1559
  }
1560
- if (parent.activeObj.shape !== undefined) {
1560
+ var actPoint = extend({}, parent.activeObj.activePoint, {}, true);
1561
+ if (parent.activeObj.shape && (actPoint.width !== 0 || actPoint.height !== 0)) {
1561
1562
  isActiveObj = true;
1562
1563
  if (parent.textArea.style.display === 'block' || parent.textArea.style.display === 'inline-block') {
1563
1564
  parent.notify('shape', { prop: 'redrawActObj', onPropertyChange: false,
@@ -2576,7 +2576,12 @@ var ImageEditor = /** @class */ (function (_super) {
2576
2576
  * @returns {void}.
2577
2577
  */
2578
2578
  ImageEditor.prototype.updateArrow = function (type, id) {
2579
+ var isObjPushed = false;
2580
+ var collLength = this.objColl.length;
2579
2581
  this.notify('shape', { prop: 'pushActItemIntoObj' });
2582
+ if (collLength !== this.objColl.length) {
2583
+ isObjPushed = true;
2584
+ }
2580
2585
  var prevCropObj = extend({}, this.cropObj, {}, true);
2581
2586
  var object = { currObj: {} };
2582
2587
  var objt = { shapeSettingsObj: {} };
@@ -2587,7 +2592,9 @@ var ImageEditor = /** @class */ (function (_super) {
2587
2592
  prevObj.objColl = extend([], this.objColl, [], true);
2588
2593
  prevObj.pointColl = extend([], this.pointColl, [], true);
2589
2594
  prevObj.afterCropActions = extend([], this.afterCropActions, [], true);
2590
- this.objColl.pop();
2595
+ if (isObjPushed) {
2596
+ this.objColl.pop();
2597
+ }
2591
2598
  if (type === 'startArrow') {
2592
2599
  this.activeObj.start = this.getTextFromId(id);
2593
2600
  }
@@ -2631,7 +2638,12 @@ var ImageEditor = /** @class */ (function (_super) {
2631
2638
  */
2632
2639
  ImageEditor.prototype.updateFontFamily = function (id) {
2633
2640
  this.notify('selection', { prop: 'setInitialTextEdit', value: { bool: false } });
2641
+ var isObjPushed = false;
2642
+ var collLength = this.objColl.length;
2634
2643
  this.notify('shape', { prop: 'pushActItemIntoObj' });
2644
+ if (collLength !== this.objColl.length) {
2645
+ isObjPushed = true;
2646
+ }
2635
2647
  var objColl = extend([], this.objColl, [], true);
2636
2648
  var prevCropObj = extend({}, this.cropObj, {}, true);
2637
2649
  var objt = { shapeSettingsObj: {} };
@@ -2647,7 +2659,9 @@ var ImageEditor = /** @class */ (function (_super) {
2647
2659
  this.notify('freehand-draw', { prop: 'getSelPointColl', onPropertyChange: false,
2648
2660
  value: { obj: selPointCollObj } });
2649
2661
  prevObj.selPointColl = extend([], selPointCollObj['selPointColl'], [], true);
2650
- this.objColl.pop();
2662
+ if (isObjPushed) {
2663
+ this.objColl.pop();
2664
+ }
2651
2665
  if (this.textArea.style.display === 'block' || this.textArea.style.display === 'inline-block') {
2652
2666
  this.notify('shape', { prop: 'updateFontRatio', onPropertyChange: false,
2653
2667
  value: { obj: this.activeObj, isTextArea: true } });
@@ -2707,7 +2721,12 @@ var ImageEditor = /** @class */ (function (_super) {
2707
2721
  ImageEditor.prototype.updateFontSize = function (text) {
2708
2722
  var itemText = text;
2709
2723
  this.notify('selection', { prop: 'setInitialTextEdit', value: { bool: false } });
2724
+ var isObjPushed = false;
2725
+ var collLength = this.objColl.length;
2710
2726
  this.notify('shape', { prop: 'pushActItemIntoObj' });
2727
+ if (collLength !== this.objColl.length) {
2728
+ isObjPushed = true;
2729
+ }
2711
2730
  var prevCropObj = extend({}, this.cropObj, {}, true);
2712
2731
  var objt = { shapeSettingsObj: {} };
2713
2732
  this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
@@ -2722,7 +2741,9 @@ var ImageEditor = /** @class */ (function (_super) {
2722
2741
  this.notify('freehand-draw', { prop: 'getSelPointColl', onPropertyChange: false,
2723
2742
  value: { obj: selPointCollObj } });
2724
2743
  prevObj.selPointColl = extend([], selPointCollObj['selPointColl'], [], true);
2725
- this.objColl.pop();
2744
+ if (isObjPushed) {
2745
+ this.objColl.pop();
2746
+ }
2726
2747
  if (this.textArea.style.display === 'block' || this.textArea.style.display === 'inline-block') {
2727
2748
  this.notify('shape', { prop: 'updateFontRatio', onPropertyChange: false,
2728
2749
  value: { obj: this.activeObj, isTextArea: true } });
@@ -2810,7 +2831,12 @@ var ImageEditor = /** @class */ (function (_super) {
2810
2831
  */
2811
2832
  ImageEditor.prototype.updateFontColor = function (value) {
2812
2833
  this.notify('selection', { prop: 'setInitialTextEdit', value: { bool: false } });
2834
+ var isObjPushed = false;
2835
+ var collLength = this.objColl.length;
2813
2836
  this.notify('shape', { prop: 'pushActItemIntoObj' });
2837
+ if (collLength !== this.objColl.length) {
2838
+ isObjPushed = true;
2839
+ }
2814
2840
  var prevCropObj = extend({}, this.cropObj, {}, true);
2815
2841
  var objt = { shapeSettingsObj: {} };
2816
2842
  this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: objt } });
@@ -2825,7 +2851,9 @@ var ImageEditor = /** @class */ (function (_super) {
2825
2851
  this.notify('freehand-draw', { prop: 'getSelPointColl', onPropertyChange: false,
2826
2852
  value: { obj: selPointCollObj } });
2827
2853
  prevObj.selPointColl = extend([], selPointCollObj['selPointColl'], [], true);
2828
- this.objColl.pop();
2854
+ if (isObjPushed) {
2855
+ this.objColl.pop();
2856
+ }
2829
2857
  if (this.textArea.style.display === 'none') {
2830
2858
  this.activeObj.strokeSettings.strokeColor = value;
2831
2859
  this.notify('shape', { prop: 'setStrokeSettings', value: { strokeSettings: null,
@@ -3002,7 +3030,12 @@ var ImageEditor = /** @class */ (function (_super) {
3002
3030
  var obj = { shapeSettingsObj: {} };
3003
3031
  this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: obj } });
3004
3032
  var shapeSettings = obj['shapeSettingsObj'];
3033
+ var isObjPushed = false;
3034
+ var collLength = this.objColl.length;
3005
3035
  this.notify('shape', { prop: 'pushActItemIntoObj' });
3036
+ if (collLength !== this.objColl.length) {
3037
+ isObjPushed = true;
3038
+ }
3006
3039
  var prevCropObj = extend({}, this.cropObj, {}, true);
3007
3040
  var object = { currObj: {} };
3008
3041
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
@@ -3014,7 +3047,9 @@ var ImageEditor = /** @class */ (function (_super) {
3014
3047
  this.notify('freehand-draw', { prop: 'getSelPointColl', onPropertyChange: false,
3015
3048
  value: { obj: selPointCollObj } });
3016
3049
  prevObj.selPointColl = extend([], selPointCollObj['selPointColl'], [], true);
3017
- this.objColl.pop();
3050
+ if (isObjPushed) {
3051
+ this.objColl.pop();
3052
+ }
3018
3053
  this.activeObj.strokeSettings.strokeWidth = parseInt(id, 10);
3019
3054
  if (this.activeObj.shape === 'rectangle' || this.activeObj.shape === 'ellipse') {
3020
3055
  this.activeObj.strokeSettings.strokeWidth = parseInt(id, 10) - 1;
@@ -3056,7 +3091,12 @@ var ImageEditor = /** @class */ (function (_super) {
3056
3091
  var shapeSettings = objt['shapeSettingsObj'];
3057
3092
  if (this.activeObj.shape && (this.activeObj.shape !== 'path' || (this.activeObj.shape === 'path' &&
3058
3093
  this.activeObj.pointColl.length > 0))) {
3094
+ var isObjPushed = false;
3095
+ var collLength = this.objColl.length;
3059
3096
  this.notify('shape', { prop: 'pushActItemIntoObj' });
3097
+ if (collLength !== this.objColl.length) {
3098
+ isObjPushed = true;
3099
+ }
3060
3100
  var prevCropObj = extend({}, this.cropObj, {}, true);
3061
3101
  var object = { currObj: {} };
3062
3102
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
@@ -3068,7 +3108,9 @@ var ImageEditor = /** @class */ (function (_super) {
3068
3108
  this.notify('freehand-draw', { prop: 'getSelPointColl', onPropertyChange: false,
3069
3109
  value: { obj: selPointCollObj } });
3070
3110
  prevObj.selPointColl = extend([], selPointCollObj['selPointColl'], [], true);
3071
- this.objColl.pop();
3111
+ if (isObjPushed) {
3112
+ this.objColl.pop();
3113
+ }
3072
3114
  this.activeObj.strokeSettings.strokeColor = value;
3073
3115
  this.notify('shape', { prop: 'setStrokeSettings', value: { strokeSettings: null, strokeColor: this.activeObj.strokeSettings.strokeColor, fillColor: null, strokeWidth: null } });
3074
3116
  if (!this.togglePen) {
@@ -3103,7 +3145,12 @@ var ImageEditor = /** @class */ (function (_super) {
3103
3145
  var obj = { shapeSettingsObj: {} };
3104
3146
  this.notify('selection', { prop: 'updatePrevShapeSettings', onPropertyChange: false, value: { obj: obj } });
3105
3147
  var shapeSettings = obj['shapeSettingsObj'];
3148
+ var isObjPushed = false;
3149
+ var collLength = this.objColl.length;
3106
3150
  this.notify('shape', { prop: 'pushActItemIntoObj' });
3151
+ if (collLength !== this.objColl.length) {
3152
+ isObjPushed = true;
3153
+ }
3107
3154
  var prevCropObj = extend({}, this.cropObj, {}, true);
3108
3155
  var object = { currObj: {} };
3109
3156
  this.notify('filter', { prop: 'getCurrentObj', onPropertyChange: false, value: { object: object } });
@@ -3115,7 +3162,9 @@ var ImageEditor = /** @class */ (function (_super) {
3115
3162
  this.notify('freehand-draw', { prop: 'getSelPointColl', onPropertyChange: false,
3116
3163
  value: { obj: selPointCollObj } });
3117
3164
  prevObj.selPointColl = extend([], selPointCollObj['selPointColl'], [], true);
3118
- this.objColl.pop();
3165
+ if (isObjPushed) {
3166
+ this.objColl.pop();
3167
+ }
3119
3168
  this.activeObj.strokeSettings.fillColor = value;
3120
3169
  this.notify('shape', { prop: 'setStrokeSettings',
3121
3170
  value: { strokeSettings: null, strokeColor: null, fillColor: this.activeObj.strokeSettings.fillColor,
@@ -1649,7 +1649,7 @@ var ToolbarModule = /** @class */ (function () {
1649
1649
  }
1650
1650
  var fileObj = { fileName: '', fileType: '' };
1651
1651
  parent.notify('draw', { prop: 'getFileName', onPropertyChange: false, value: { obj: fileObj } });
1652
- this.fileType = fileObj['fileType'];
1652
+ this.fileType = fileObj['fileType'] ? fileObj['fileType'] : 'JPEG';
1653
1653
  parent.notify('export', { prop: 'exportToCanvas', value: { object: obj } });
1654
1654
  var tempCanvas = obj['canvas'];
1655
1655
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
@@ -1661,7 +1661,7 @@ var ToolbarModule = /** @class */ (function () {
1661
1661
  var ddbElem = document.getElementById(id + '_saveDropdownbtn');
1662
1662
  if (ddbElem) {
1663
1663
  var spanElem_1 = document.createElement('span');
1664
- spanElem_1.innerHTML = fileObj['fileType'].toUpperCase();
1664
+ spanElem_1.innerHTML = this.fileType.toUpperCase();
1665
1665
  if (ddbElem) {
1666
1666
  ddbElem.appendChild(spanElem_1);
1667
1667
  }
@@ -2872,6 +2872,15 @@ var ToolbarModule = /** @class */ (function () {
2872
2872
  args.toolbarItems = ['fillColor', 'strokeColor', 'strokeWidth', 'z-order', 'duplicate', 'remove'];
2873
2873
  }
2874
2874
  this.initShapesToolbarItem(args.toolbarItems);
2875
+ if (parent.activeObj.shape === 'image') {
2876
+ var actObj = extend({}, parent.activeObj, {}, true);
2877
+ parent.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
2878
+ parent.notify('draw', { prop: 'render-image', value: { isMouseWheel: null, isPreventClearRect: null, isFrame: true } });
2879
+ parent.activeObj = actObj;
2880
+ parent.notify('draw', { prop: 'drawObject', onPropertyChange: false, value: { canvas: 'duplicate', obj: parent.activeObj,
2881
+ isCropRatio: null, points: null, isPreventDrag: true } });
2882
+ this.renderQAT(false);
2883
+ }
2875
2884
  break;
2876
2885
  case 'text':
2877
2886
  if (Browser.isDevice) {
@@ -2955,14 +2964,14 @@ var ToolbarModule = /** @class */ (function () {
2955
2964
  parent.notify('draw', { prop: 'render-image', value: { isMouseWheel: null, isPreventClearRect: null, isFrame: true } });
2956
2965
  break;
2957
2966
  }
2958
- this.currToolbar = type;
2959
2967
  this.refreshDropDownBtn(isCropping);
2960
- this.updateKBDNavigation(this.currToolbar);
2968
+ this.updateKBDNavigation(type);
2969
+ this.currToolbar = type;
2961
2970
  };
2962
2971
  ToolbarModule.prototype.updateKBDNavigation = function (type) {
2963
2972
  var parent = this.parent;
2964
2973
  var id = parent.element.id;
2965
- if (!parent.isKBDNavigation) {
2974
+ if (!parent.isKBDNavigation || this.currToolbar === type) {
2966
2975
  return;
2967
2976
  }
2968
2977
  if (this.isToolbar()) {
@@ -5454,8 +5463,10 @@ var ToolbarModule = /** @class */ (function () {
5454
5463
  }
5455
5464
  parent.notify('selection', { prop: 'setSliderActive', onPropertyChange: false, value: { bool: false } });
5456
5465
  if (type === 'transparency') {
5457
- parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
5458
- parent.element.querySelector('#' + parent.element.id + '_transparency').click();
5466
+ setTimeout(function () {
5467
+ parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
5468
+ parent.element.querySelector('#' + parent.element.id + '_transparency').click();
5469
+ }, 50);
5459
5470
  }
5460
5471
  }
5461
5472
  });
@@ -757,8 +757,6 @@
757
757
  background: inherit;
758
758
  border: none;
759
759
  margin-top: 2px;
760
- background: #131313;
761
- color: #f0f0f0;
762
760
  }
763
761
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
764
762
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -759,8 +759,6 @@
759
759
  background: inherit;
760
760
  border: none;
761
761
  margin-top: 2px;
762
- background: #f8f8f8;
763
- color: #333;
764
762
  }
765
763
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
766
764
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -770,6 +770,8 @@
770
770
  -webkit-box-shadow: none;
771
771
  box-shadow: none;
772
772
  color: #fff;
773
+ -webkit-box-shadow: 0 0 0 0.25em rgba(115, 122, 129, 0.5) !important;
774
+ box-shadow: 0 0 0 0.25em rgba(115, 122, 129, 0.5) !important; /* stylelint-disable-line declaration-no-important */
773
775
  }
774
776
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
775
777
  background: #545b62;
@@ -787,6 +787,8 @@
787
787
  -webkit-box-shadow: none;
788
788
  box-shadow: none;
789
789
  color: #fff;
790
+ -webkit-box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important;
791
+ box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important; /* stylelint-disable-line declaration-no-important */
790
792
  }
791
793
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
792
794
  background: #565e64;
@@ -787,6 +787,8 @@
787
787
  -webkit-box-shadow: none;
788
788
  box-shadow: none;
789
789
  color: #fff;
790
+ -webkit-box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important;
791
+ box-shadow: 0 0 0 4px rgba(130, 138, 145, 0.5) !important; /* stylelint-disable-line declaration-no-important */
790
792
  }
791
793
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
792
794
  background: #565e64;
@@ -759,8 +759,6 @@
759
759
  background: inherit;
760
760
  border: none;
761
761
  margin-top: 0;
762
- background: #333232;
763
- color: #dadada;
764
762
  }
765
763
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
766
764
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -776,6 +774,7 @@
776
774
  -webkit-box-shadow: none;
777
775
  box-shadow: none;
778
776
  color: #fff;
777
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
779
778
  }
780
779
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
781
780
  background: #6f6c6c;
package/styles/fabric.css CHANGED
@@ -762,8 +762,6 @@
762
762
  background: inherit;
763
763
  border: none;
764
764
  margin-top: 0;
765
- background: #fff;
766
- color: #333;
767
765
  }
768
766
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
769
767
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -779,6 +777,7 @@
779
777
  -webkit-box-shadow: none;
780
778
  box-shadow: none;
781
779
  color: #333;
780
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
782
781
  }
783
782
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
784
783
  background: #c8c8c8;
@@ -772,8 +772,6 @@
772
772
  background: inherit;
773
773
  border: none;
774
774
  margin-top: 2px;
775
- background: #252423;
776
- color: #a19f9d;
777
775
  }
778
776
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
779
777
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -789,6 +787,9 @@
789
787
  -webkit-box-shadow: none;
790
788
  box-shadow: none;
791
789
  color: #fff;
790
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
791
+ -webkit-box-shadow: inset 0 0 0 1px !important;
792
+ box-shadow: inset 0 0 0 1px !important; /* stylelint-disable-line declaration-no-important */
792
793
  }
793
794
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
794
795
  background: #292827;
package/styles/fluent.css CHANGED
@@ -772,8 +772,6 @@
772
772
  background: inherit;
773
773
  border: none;
774
774
  margin-top: 2px;
775
- background: #f3f2f1;
776
- color: #605e5c;
777
775
  }
778
776
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
779
777
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -789,6 +787,9 @@
789
787
  -webkit-box-shadow: none;
790
788
  box-shadow: none;
791
789
  color: #323130;
790
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
791
+ -webkit-box-shadow: inset 0 0 0 1px !important;
792
+ box-shadow: inset 0 0 0 1px !important; /* stylelint-disable-line declaration-no-important */
792
793
  }
793
794
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
794
795
  background: #edebe9;
@@ -47,7 +47,7 @@
47
47
  --color-sf-flyout-bg-color-pressed: #e0e0e0;
48
48
  --color-sf-flyout-bg-color-selected: #ebebeb;
49
49
  --color-sf-flyout-bg-color-focus: #f5f5f5;
50
- --color-sf-overlay-bg-color: #000;
50
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
51
51
  --color-sf-table-bg-color-hover: #f5f5f5;
52
52
  --color-sf-table-bg-color-pressed: #e0e0e0;
53
53
  --color-sf-table-bg-color-selected: #ebf3fc;
@@ -369,7 +369,7 @@
369
369
  --color-sf-flyout-bg-color-pressed: var(--color-sf-black);
370
370
  --color-sf-flyout-bg-color-selected: #383838;
371
371
  --color-sf-flyout-bg-color-focus: var(--color-sf-flyout-bg-color-hover);
372
- --color-sf-overlay-bg-color: rgba($black, .4);
372
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
373
373
  --color-sf-table-bg-color-hover: #383838;
374
374
  --color-sf-table-bg-color-pressed: #2e2e2e;
375
375
  --color-sf-table-bg-color-selected: #082338;
@@ -711,9 +711,9 @@
711
711
  --color-sf-flyout-bg-color-pressed: var(--color-sf-content-bg-color-hover);
712
712
  --color-sf-flyout-bg-color-selected: var(--color-sf-content-bg-color-hover);
713
713
  --color-sf-flyout-bg-color-focus: var(--color-sf-content-bg-color-hover);
714
- --color-sf-overlay-bg-color: rgba($black, .4);
715
- --color-sf-table-bg-color-hover: var(--color-sf-black);
716
- --color-sf-table-bg-color-pressed: var(--color-sf-black);
714
+ --color-sf-overlay-bg-color: rgba(0, 0, 0, .4);
715
+ --color-sf-table-bg-color-hover: #1a3bff;
716
+ --color-sf-table-bg-color-pressed: #1a3bff;
717
717
  --color-sf-table-bg-color-selected: #1a3bff;
718
718
  --color-sf-content-text-color: #fff;
719
719
  --color-sf-content-text-color-alt1: var(--color-sf-content-text-color);
@@ -732,12 +732,12 @@
732
732
  --color-sf-flyout-text-color-selected: var(--color-sf-content-text-color-hover);
733
733
  --color-sf-flyout-text-color-focus: var(--color-sf-content-text-color-hover);
734
734
  --color-sf-flyout-text-color-disabled: var(--color-sf-content-text-color-disabled);
735
- --color-sf-table-text-color-hover: var(--color-sf-content-text-color-hover);
736
- --color-sf-table-text-color-pressed: var(--color-sf-content-text-color-hover);
737
- --color-sf-table-text-color-selected: var(--color-sf-content-text-color-hover);
735
+ --color-sf-table-text-color-hover: #000;
736
+ --color-sf-table-text-color-pressed: #000;
737
+ --color-sf-table-text-color-selected: #000;
738
738
  --color-sf-icon-color: #fff;
739
- --color-sf-icon-color-hover: var(--color-sf-content-text-color-hover);
740
- --color-sf-icon-color-pressed: var(--color-sf-content-text-color-hover);
739
+ --color-sf-icon-color-hover: #000;
740
+ --color-sf-icon-color-pressed: #000;
741
741
  --color-sf-icon-color-disabled: var(--color-sf-content-text-color-disabled);
742
742
  --color-sf-border-light: #fff;
743
743
  --color-sf-border: var(--color-sf-border-light);
@@ -1345,6 +1345,11 @@
1345
1345
  .e-image-editor.e-bigger .e-toolbar .e-toolbar-items.e-tbar-pos .e-toolbar-left {
1346
1346
  line-height: 1;
1347
1347
  }
1348
+ .e-bigger .e-image-editor .e-dropdown-btn.e-ie-ddb-popup,
1349
+ .e-image-editor.e-bigger .e-dropdown-btn.e-ie-ddb-popup {
1350
+ padding-left: 16px;
1351
+ }
1352
+
1348
1353
  .e-image-editor {
1349
1354
  border: 1px solid var(--color-sf-border-light);
1350
1355
  position: relative;
@@ -1514,6 +1519,13 @@
1514
1519
  margin-left: calc(50% - 137px);
1515
1520
  height: 54px !important; /* stylelint-disable-line declaration-no-important */
1516
1521
  }
1522
+ .e-image-editor .e-dropdown-btn.e-ie-ddb-popup {
1523
+ padding-left: 14px;
1524
+ }
1525
+ .e-image-editor .e-dropdown-btn, .e-image-editor .e-dropdown-btn span {
1526
+ font-weight: normal;
1527
+ }
1528
+
1517
1529
  .e-ie-straighten-value-span,
1518
1530
  .e-ie-straighten-span,
1519
1531
  .e-ie-toolbar-straighten {
@@ -1807,8 +1819,6 @@
1807
1819
  background: inherit;
1808
1820
  border: none;
1809
1821
  margin-top: 0;
1810
- background: var(--color-sf-content-bg-color-alt1);
1811
- color: var(--color-sf-icon-color);
1812
1822
  }
1813
1823
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
1814
1824
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -1825,6 +1835,10 @@
1825
1835
  box-shadow: none;
1826
1836
  color: var(--color-sf-secondary-text-color-hover);
1827
1837
  }
1838
+ .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:focus-visible {
1839
+ -webkit-box-shadow: inset 0 0 0 1px var(--color-sf-shadow-color), inset 0 0 0 2px var(--color-sf-shadow-color1) !important;
1840
+ box-shadow: inset 0 0 0 1px var(--color-sf-shadow-color), inset 0 0 0 2px var(--color-sf-shadow-color1) !important; /* stylelint-disable-line declaration-no-important */
1841
+ }
1828
1842
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
1829
1843
  background: var(--color-sf-secondary-bg-color-pressed);
1830
1844
  -webkit-box-shadow: none;
@@ -755,8 +755,7 @@
755
755
  background: inherit;
756
756
  border: none;
757
757
  margin-top: 0;
758
- background: #fff;
759
- color: #000;
758
+ border: 2px solid #000;
760
759
  }
761
760
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
762
761
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -772,6 +771,8 @@
772
771
  -webkit-box-shadow: none;
773
772
  box-shadow: none;
774
773
  color: #000;
774
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
775
+ border: 2px solid #fff !important; /* stylelint-disable-line declaration-no-important */
775
776
  }
776
777
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
777
778
  background: #400074;
@@ -764,8 +764,7 @@
764
764
  background: inherit;
765
765
  border: none;
766
766
  margin-top: 0;
767
- background: #000;
768
- color: #fff;
767
+ border: 2px solid #000;
769
768
  }
770
769
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn .e-caret-hide {
771
770
  display: none !important; /* stylelint-disable-line declaration-no-important */
@@ -781,6 +780,8 @@
781
780
  -webkit-box-shadow: none;
782
781
  box-shadow: none;
783
782
  color: #fff;
783
+ outline: none !important; /* stylelint-disable-line declaration-no-important */
784
+ border: 2px solid #fff !important; /* stylelint-disable-line declaration-no-important */
784
785
  }
785
786
  .e-image-editor .e-toolbar .e-toolbar-items .e-dropdown-btn:active {
786
787
  background: #ffd939;
@@ -185,6 +185,12 @@
185
185
  margin-top: 5px !important; /* stylelint-disable-line declaration-no-important */
186
186
  }
187
187
  }
188
+
189
+ @if $skin-name == 'fluent2' {
190
+ & .e-dropdown-btn.e-ie-ddb-popup {
191
+ padding-left: 16px;
192
+ }
193
+ }
188
194
  }
189
195
 
190
196
  .e-image-editor {
@@ -491,6 +497,16 @@
491
497
  width: 16px !important; /* stylelint-disable-line declaration-no-important */
492
498
  }
493
499
  }
500
+
501
+ @if $skin-name == 'fluent2' {
502
+ & .e-dropdown-btn.e-ie-ddb-popup {
503
+ padding-left: 14px;
504
+ }
505
+ & .e-dropdown-btn,
506
+ & .e-dropdown-btn span {
507
+ font-weight: normal;
508
+ }
509
+ }
494
510
  }
495
511
 
496
512
  .e-ie-img-save-dlg .e-btn {