@syncfusion/ej2-image-editor 31.2.16 → 32.1.19

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 (195) hide show
  1. package/README.md +2 -12
  2. package/aceconfig.js +17 -0
  3. package/dist/ej2-image-editor.umd.min.js +1 -10
  4. package/dist/ej2-image-editor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-image-editor.es2015.js +28 -82
  6. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-image-editor.es5.js +28 -82
  8. package/dist/es6/ej2-image-editor.es5.js.map +1 -1
  9. package/dist/global/ej2-image-editor.min.js +1 -10
  10. package/dist/global/ej2-image-editor.min.js.map +1 -1
  11. package/dist/global/index.d.ts +0 -9
  12. package/package.json +8 -8
  13. package/src/image-editor/action/draw.js +1 -1
  14. package/src/image-editor/action/export.js +1 -5
  15. package/src/image-editor/action/freehand-draw.js +0 -5
  16. package/src/image-editor/action/selection.js +6 -14
  17. package/src/image-editor/action/shape.d.ts +0 -1
  18. package/src/image-editor/action/shape.js +2 -20
  19. package/src/image-editor/base/image-editor.js +3 -11
  20. package/src/image-editor/renderer/toolbar.js +15 -26
  21. package/styles/bds-lite.css +58 -57
  22. package/styles/bds-lite.scss +12 -13
  23. package/styles/bds.css +82 -60
  24. package/styles/bds.scss +13 -14
  25. package/styles/bootstrap-dark-lite.css +58 -57
  26. package/styles/bootstrap-dark-lite.scss +12 -13
  27. package/styles/bootstrap-dark.css +82 -60
  28. package/styles/bootstrap-dark.scss +13 -14
  29. package/styles/bootstrap-lite.css +58 -57
  30. package/styles/bootstrap-lite.scss +12 -13
  31. package/styles/bootstrap.css +82 -60
  32. package/styles/bootstrap.scss +13 -14
  33. package/styles/bootstrap4-lite.css +58 -57
  34. package/styles/bootstrap4-lite.scss +12 -13
  35. package/styles/bootstrap4.css +82 -60
  36. package/styles/bootstrap4.scss +13 -14
  37. package/styles/bootstrap5-dark-lite.css +58 -57
  38. package/styles/bootstrap5-dark-lite.scss +12 -13
  39. package/styles/bootstrap5-dark.css +82 -60
  40. package/styles/bootstrap5-dark.scss +13 -14
  41. package/styles/bootstrap5-lite.css +58 -57
  42. package/styles/bootstrap5-lite.scss +13 -13
  43. package/styles/bootstrap5.3-lite.css +138 -57
  44. package/styles/bootstrap5.3-lite.scss +13 -13
  45. package/styles/bootstrap5.3.css +162 -60
  46. package/styles/bootstrap5.3.scss +14 -14
  47. package/styles/bootstrap5.css +82 -60
  48. package/styles/bootstrap5.scss +14 -14
  49. package/styles/fabric-dark-lite.css +58 -57
  50. package/styles/fabric-dark-lite.scss +13 -13
  51. package/styles/fabric-dark.css +82 -60
  52. package/styles/fabric-dark.scss +14 -14
  53. package/styles/fabric-lite.css +58 -57
  54. package/styles/fabric-lite.scss +13 -13
  55. package/styles/fabric.css +82 -60
  56. package/styles/fabric.scss +14 -14
  57. package/styles/fluent-dark-lite.css +58 -57
  58. package/styles/fluent-dark-lite.scss +13 -13
  59. package/styles/fluent-dark.css +82 -60
  60. package/styles/fluent-dark.scss +14 -14
  61. package/styles/fluent-lite.css +58 -57
  62. package/styles/fluent-lite.scss +13 -13
  63. package/styles/fluent.css +82 -60
  64. package/styles/fluent.scss +14 -14
  65. package/styles/fluent2-lite.css +139 -60
  66. package/styles/fluent2-lite.scss +13 -13
  67. package/styles/fluent2.css +163 -63
  68. package/styles/fluent2.scss +14 -14
  69. package/styles/highcontrast-light-lite.css +58 -57
  70. package/styles/highcontrast-light-lite.scss +13 -13
  71. package/styles/highcontrast-light.css +82 -60
  72. package/styles/highcontrast-light.scss +14 -14
  73. package/styles/highcontrast-lite.css +57 -57
  74. package/styles/highcontrast-lite.scss +13 -13
  75. package/styles/highcontrast.css +81 -60
  76. package/styles/highcontrast.scss +14 -14
  77. package/styles/image-editor/_all.scss +2 -2
  78. package/styles/image-editor/_bds-definition.scss +51 -0
  79. package/styles/image-editor/_bigger.scss +61 -9
  80. package/styles/image-editor/_bootstrap-dark-definition.scss +51 -0
  81. package/styles/image-editor/_bootstrap-definition.scss +51 -0
  82. package/styles/image-editor/_bootstrap4-definition.scss +55 -0
  83. package/styles/image-editor/_bootstrap5-dark-definition.scss +81 -1
  84. package/styles/image-editor/_bootstrap5-definition.scss +52 -0
  85. package/styles/image-editor/_bootstrap5.3-definition.scss +51 -0
  86. package/styles/image-editor/_fabric-dark-definition.scss +51 -0
  87. package/styles/image-editor/_fabric-definition.scss +51 -0
  88. package/styles/image-editor/_fluent-dark-definition.scss +81 -1
  89. package/styles/image-editor/_fluent-definition.scss +52 -0
  90. package/styles/image-editor/_fluent2-definition.scss +51 -0
  91. package/styles/image-editor/_fusionnew-definition.scss +51 -0
  92. package/styles/image-editor/_highcontrast-definition.scss +51 -0
  93. package/styles/image-editor/_highcontrast-light-definition.scss +51 -0
  94. package/styles/image-editor/_layout.scss +198 -115
  95. package/styles/image-editor/_material-dark-definition.scss +51 -0
  96. package/styles/image-editor/_material-definition.scss +51 -0
  97. package/styles/image-editor/_material3-dark-definition.scss +82 -1
  98. package/styles/image-editor/_material3-definition.scss +53 -0
  99. package/styles/image-editor/_tailwind-dark-definition.scss +81 -1
  100. package/styles/image-editor/_tailwind-definition.scss +52 -0
  101. package/styles/image-editor/_tailwind3-definition.scss +75 -1
  102. package/styles/image-editor/_theme-variables.scss +1 -0
  103. package/styles/image-editor/_theme.scss +59 -11
  104. package/styles/image-editor/bds.css +82 -60
  105. package/styles/image-editor/bds.scss +14 -14
  106. package/styles/image-editor/bootstrap-dark.css +82 -60
  107. package/styles/image-editor/bootstrap-dark.scss +14 -14
  108. package/styles/image-editor/bootstrap.css +82 -60
  109. package/styles/image-editor/bootstrap.scss +14 -14
  110. package/styles/image-editor/bootstrap4.css +82 -60
  111. package/styles/image-editor/bootstrap4.scss +14 -14
  112. package/styles/image-editor/bootstrap5-dark.css +82 -60
  113. package/styles/image-editor/bootstrap5-dark.scss +14 -14
  114. package/styles/image-editor/bootstrap5.3.css +162 -60
  115. package/styles/image-editor/bootstrap5.3.scss +14 -14
  116. package/styles/image-editor/bootstrap5.css +82 -60
  117. package/styles/image-editor/bootstrap5.scss +14 -14
  118. package/styles/image-editor/fabric-dark.css +82 -60
  119. package/styles/image-editor/fabric-dark.scss +14 -14
  120. package/styles/image-editor/fabric.css +82 -60
  121. package/styles/image-editor/fabric.scss +14 -14
  122. package/styles/image-editor/fluent-dark.css +82 -60
  123. package/styles/image-editor/fluent-dark.scss +14 -14
  124. package/styles/image-editor/fluent.css +82 -60
  125. package/styles/image-editor/fluent.scss +14 -14
  126. package/styles/image-editor/fluent2.css +163 -63
  127. package/styles/image-editor/fluent2.scss +14 -14
  128. package/styles/image-editor/highcontrast-light.css +82 -60
  129. package/styles/image-editor/highcontrast-light.scss +14 -14
  130. package/styles/image-editor/highcontrast.css +81 -60
  131. package/styles/image-editor/highcontrast.scss +14 -14
  132. package/styles/image-editor/icons/_bds.scss +1 -0
  133. package/styles/image-editor/icons/_bootstrap-dark.scss +1 -0
  134. package/styles/image-editor/icons/_bootstrap.scss +1 -0
  135. package/styles/image-editor/icons/_bootstrap4.scss +1 -0
  136. package/styles/image-editor/icons/_bootstrap5-dark.scss +1 -1
  137. package/styles/image-editor/icons/_bootstrap5.3.scss +1 -0
  138. package/styles/image-editor/icons/_bootstrap5.scss +1 -0
  139. package/styles/image-editor/icons/_fabric-dark.scss +1 -0
  140. package/styles/image-editor/icons/_fabric.scss +1 -0
  141. package/styles/image-editor/icons/_fluent-dark.scss +1 -1
  142. package/styles/image-editor/icons/_fluent.scss +1 -0
  143. package/styles/image-editor/icons/_fluent2.scss +1 -0
  144. package/styles/image-editor/icons/_fusionnew.scss +1 -0
  145. package/styles/image-editor/icons/_highcontrast-light.scss +1 -0
  146. package/styles/image-editor/icons/_highcontrast.scss +1 -0
  147. package/styles/image-editor/icons/_material-dark.scss +1 -0
  148. package/styles/image-editor/icons/_material.scss +1 -0
  149. package/styles/image-editor/icons/_material3-dark.scss +1 -1
  150. package/styles/image-editor/icons/_material3.scss +1 -0
  151. package/styles/image-editor/icons/_tailwind-dark.scss +1 -1
  152. package/styles/image-editor/icons/_tailwind.scss +1 -0
  153. package/styles/image-editor/icons/_tailwind3.scss +1 -0
  154. package/styles/image-editor/material-dark.css +82 -60
  155. package/styles/image-editor/material-dark.scss +14 -14
  156. package/styles/image-editor/material.css +82 -60
  157. package/styles/image-editor/material.scss +14 -14
  158. package/styles/image-editor/material3-dark.css +161 -60
  159. package/styles/image-editor/material3-dark.scss +14 -15
  160. package/styles/image-editor/material3.css +161 -60
  161. package/styles/image-editor/material3.scss +14 -15
  162. package/styles/image-editor/tailwind-dark.css +82 -60
  163. package/styles/image-editor/tailwind-dark.scss +14 -14
  164. package/styles/image-editor/tailwind.css +82 -60
  165. package/styles/image-editor/tailwind.scss +14 -14
  166. package/styles/image-editor/tailwind3.css +235 -84
  167. package/styles/image-editor/tailwind3.scss +14 -14
  168. package/styles/material-dark-lite.css +58 -57
  169. package/styles/material-dark-lite.scss +13 -13
  170. package/styles/material-dark.css +82 -60
  171. package/styles/material-dark.scss +14 -14
  172. package/styles/material-lite.css +58 -57
  173. package/styles/material-lite.scss +12 -13
  174. package/styles/material.css +82 -60
  175. package/styles/material.scss +13 -14
  176. package/styles/material3-dark-lite.css +137 -57
  177. package/styles/material3-dark-lite.scss +13 -13
  178. package/styles/material3-dark.css +161 -60
  179. package/styles/material3-dark.scss +14 -16
  180. package/styles/material3-lite.css +137 -57
  181. package/styles/material3-lite.scss +13 -13
  182. package/styles/material3.css +161 -60
  183. package/styles/material3.scss +14 -16
  184. package/styles/tailwind-dark-lite.css +58 -57
  185. package/styles/tailwind-dark-lite.scss +13 -13
  186. package/styles/tailwind-dark.css +82 -60
  187. package/styles/tailwind-dark.scss +14 -14
  188. package/styles/tailwind-lite.css +58 -57
  189. package/styles/tailwind-lite.scss +13 -13
  190. package/styles/tailwind.css +82 -60
  191. package/styles/tailwind.scss +14 -14
  192. package/styles/tailwind3-lite.css +195 -72
  193. package/styles/tailwind3-lite.scss +13 -13
  194. package/styles/tailwind3.css +235 -84
  195. package/styles/tailwind3.scss +14 -14
@@ -1,12 +1,3 @@
1
- /*!
2
- * filename: index.d.ts
3
- * version : 31.2.16
4
- * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
- * Use of this code is subject to the terms of our license.
6
- * A copy of the current license can be obtained at any time by e-mailing
7
- * licensing@syncfusion.com. Any infringement will be prosecuted under
8
- * applicable laws.
9
- */
10
1
  import * as _imageeditor from '@syncfusion/ej2-image-editor';
11
2
 
12
3
  export declare namespace ej {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-image-editor",
3
- "version": "31.2.16",
3
+ "version": "32.1.19",
4
4
  "description": "Essential JS 2 ImageEditor",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,13 +8,13 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-image-editor.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~31.2.12",
12
- "@syncfusion/ej2-buttons": "~31.2.16",
13
- "@syncfusion/ej2-dropdowns": "~31.2.16",
14
- "@syncfusion/ej2-inputs": "~31.2.15",
15
- "@syncfusion/ej2-navigations": "~31.2.16",
16
- "@syncfusion/ej2-popups": "~31.2.12",
17
- "@syncfusion/ej2-splitbuttons": "~31.2.12"
11
+ "@syncfusion/ej2-base": "~32.1.19",
12
+ "@syncfusion/ej2-buttons": "~32.1.19",
13
+ "@syncfusion/ej2-dropdowns": "~32.1.19",
14
+ "@syncfusion/ej2-inputs": "~32.1.19",
15
+ "@syncfusion/ej2-navigations": "~32.1.19",
16
+ "@syncfusion/ej2-popups": "~32.1.19",
17
+ "@syncfusion/ej2-splitbuttons": "~32.1.19"
18
18
  },
19
19
  "devDependencies": {},
20
20
  "keywords": [
@@ -4129,7 +4129,7 @@ var Draw = /** @class */ (function () {
4129
4129
  this.errorLoading();
4130
4130
  parent.showDialogPopup('unsupported', fileTypeError);
4131
4131
  if (dropArea && !parent.isImageLoaded) {
4132
- dropArea.style.display = 'block';
4132
+ dropArea.style.display = 'flex';
4133
4133
  }
4134
4134
  }
4135
4135
  else {
@@ -65,12 +65,8 @@ var Export = /** @class */ (function () {
65
65
  type = type ? type : 'Png';
66
66
  parent.notify('shape', { prop: 'redrawActObj', onPropertyChange: false,
67
67
  value: { x: null, y: null, isMouseDown: null } });
68
- var imageQualityObj = { currentImageQuality: 1 };
69
- if (type.toLowerCase() === 'jpeg') {
70
- parent.notify('toolbar', { prop: 'getcurrentImageQuality', onPropertyChange: false, value: { obj: imageQualityObj } });
71
- }
72
68
  var beforeSave = { cancel: false, fileName: fileName ? fileName : imageName,
73
- fileType: type, imageQuality: imgQuality || imageQualityObj['currentImageQuality'] };
69
+ fileType: type, imageQuality: imgQuality };
74
70
  parent.trigger('beforeSave', beforeSave);
75
71
  this.beforeSaveEvent(beforeSave, type, fileName, imageName, imgQuality);
76
72
  }
@@ -1164,11 +1164,6 @@ var FreehandDrawing = /** @class */ (function () {
1164
1164
  var parent = this.parent;
1165
1165
  var point = parent.pointColl[this.fhdSelIdx];
1166
1166
  parent.trigger('shapeChanging', shapeChangingArgs);
1167
- if (shapeChangingArgs.cancel) {
1168
- parent.editCompleteArgs = shapeChangingArgs;
1169
- this.cancelFhd();
1170
- return;
1171
- }
1172
1167
  if (parent.element.getAttribute('data-value') === 'mask-drawing' && !this.isMasking) {
1173
1168
  this.isMasking = true;
1174
1169
  parent.upperCanvas.style.cursor = 'crosshair';
@@ -3209,6 +3209,10 @@ var Selection = /** @class */ (function () {
3209
3209
  };
3210
3210
  Selection.prototype.mouseDownEventHandler = function (e) {
3211
3211
  var parent = this.parent;
3212
+ if (parent.isSafari && e.buttons === 0 && (this.parent.isShapeDrawing || this.parent.togglePen) && this.parent.drawingShape !== 'path') {
3213
+ e.stopImmediatePropagation();
3214
+ return;
3215
+ }
3212
3216
  parent.isKBDNavigation = false;
3213
3217
  this.mouseDown = e.currentTarget === parent.lowerCanvas || e.currentTarget === parent.upperCanvas ?
3214
3218
  'canvas' : '';
@@ -3486,9 +3490,6 @@ var Selection = /** @class */ (function () {
3486
3490
  var objColl = extend([], parent.objColl, [], true);
3487
3491
  if (!isNullOrUndefined(obj['index']) && obj['index'] > -1) {
3488
3492
  parent.notify('freehand-draw', { prop: 'selectFhd', value: { type: 'ok' } });
3489
- if (!this.isFhdPoint) {
3490
- return;
3491
- }
3492
3493
  parent.notify('freehand-draw', { prop: 'hoverFhd', onPropertyChange: false,
3493
3494
  value: { strokeColor: null, strokeWidth: null } });
3494
3495
  parent.notify('toolbar', { prop: 'renderQAT', onPropertyChange: false, value: { isPenEdit: true } });
@@ -4033,9 +4034,7 @@ var Selection = /** @class */ (function () {
4033
4034
  this.currentDrawingShape = parent.drawingShape.toLowerCase();
4034
4035
  if (dummyClick) {
4035
4036
  parent.enableShapeDrawing(parent.toPascalCase(parent.drawingShape), true);
4036
- if (parent.cursor !== 'move') {
4037
- parent.upperCanvas.style.cursor = 'crosshair';
4038
- }
4037
+ parent.upperCanvas.style.cursor = 'crosshair';
4039
4038
  }
4040
4039
  }
4041
4040
  parent.isShapeDrawing = false;
@@ -5057,14 +5056,7 @@ var Selection = /** @class */ (function () {
5057
5056
  }
5058
5057
  if (!this.isCropSelection && parent.activeObj.shape !== 'redact') {
5059
5058
  parent.trigger('shapeChanging', shapeChangingArgs);
5060
- if (shapeChangingArgs.cancel) {
5061
- parent.objColl.splice(i, 0, temp);
5062
- parent.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
5063
- parent.notify('draw', { prop: 'render-image', value: { isMouseWheel: null } });
5064
- }
5065
- else {
5066
- this.shapeEvent(shapeChangingArgs);
5067
- }
5059
+ this.shapeEvent(shapeChangingArgs);
5068
5060
  parent.editCompleteArgs = shapeChangingArgs;
5069
5061
  }
5070
5062
  else {
@@ -10,7 +10,6 @@ export declare class Shape {
10
10
  private shapeImg;
11
11
  private preventFrameAnnotation;
12
12
  private redactType;
13
- private isPublicUpdateShape;
14
13
  constructor(parent: ImageEditor);
15
14
  destroy(): void;
16
15
  private addEventListener;
@@ -8,7 +8,6 @@ var Shape = /** @class */ (function () {
8
8
  this.keyHistory = ''; // text history
9
9
  this.preventFrameAnnotation = false;
10
10
  this.redactType = 'blur';
11
- this.isPublicUpdateShape = false;
12
11
  this.parent = parent;
13
12
  this.addEventListener();
14
13
  }
@@ -282,9 +281,6 @@ var Shape = /** @class */ (function () {
282
281
  case 'setRedactType':
283
282
  this.redactType = args.value['redactType'];
284
283
  break;
285
- case 'setPublicUpdateShape':
286
- this.isPublicUpdateShape = args.value['isPublicUpdateShape'];
287
- break;
288
284
  }
289
285
  };
290
286
  Shape.prototype.getModuleName = function () {
@@ -311,7 +307,7 @@ var Shape = /** @class */ (function () {
311
307
  this.textSettings =
312
308
  { text: 'Enter Text', fontFamily: this.parent.fontFamily.default, fontSize: null, fontRatio: null, bold: false, italic: false, underline: false, strikethrough: false };
313
309
  this.strokeSettings = { strokeColor: '#fff', fillColor: '', strokeWidth: null, radius: null, outlineColor: '', outlineWidth: null };
314
- this.preventFrameAnnotation = this.isPublicUpdateShape = false;
310
+ this.preventFrameAnnotation = false;
315
311
  };
316
312
  Shape.prototype.drawEllipse = function (x, y, radiusX, radiusY, strokeWidth, strokeColor, fillColor, degree, isSelected) {
317
313
  this.initializeShape('ellipse');
@@ -1024,7 +1020,7 @@ var Shape = /** @class */ (function () {
1024
1020
  }
1025
1021
  parent.notify('selection', { prop: 'setTextSelection', onPropertyChange: false,
1026
1022
  value: { width: width, height: height } });
1027
- if (parent.activeObj.rotatedAngle !== 0 && !this.isPublicUpdateShape) {
1023
+ if (parent.activeObj.rotatedAngle !== 0) {
1028
1024
  var width_1 = parent.activeObj.activePoint.width - tempActiveObj.activePoint.width;
1029
1025
  var height_1 = parent.activeObj.activePoint.height - tempActiveObj.activePoint.height;
1030
1026
  var value = '';
@@ -1043,20 +1039,6 @@ var Shape = /** @class */ (function () {
1043
1039
  parent.notify('shape', { prop: 'updateFontSize', onPropertyChange: false,
1044
1040
  value: { obj: parent.activeObj } });
1045
1041
  }
1046
- else if (this.isPublicUpdateShape) {
1047
- var width_2 = parent.activeObj.activePoint.width - tempActiveObj.activePoint.width;
1048
- var height_2 = parent.activeObj.activePoint.height - tempActiveObj.activePoint.height;
1049
- var value = '';
1050
- if (parent.transform.degree === 0 || parent.transform.degree === 180) {
1051
- value = 'width';
1052
- }
1053
- else if (parent.transform.degree === 90 || parent.transform.degree === 270) {
1054
- value = 'height';
1055
- }
1056
- parent.activeObj.activePoint = extend({}, tempActiveObj.activePoint, {}, true);
1057
- parent.notify('selection', { prop: 'adjustRotationPoints', onPropertyChange: false, value: { rectangle: parent.activeObj.activePoint,
1058
- x: width_2, y: height_2, angle: parent.activeObj.rotatedAngle, type: 'text', elem: value } });
1059
- }
1060
1042
  parent.notify('draw', { prop: 'updateActiveObject', onPropertyChange: false, value: { actPoint: parent.activeObj.activePoint, obj: parent.activeObj,
1061
1043
  isMouseMove: null, x: null, y: null } });
1062
1044
  this.updImgRatioForActObj();
@@ -937,12 +937,10 @@ var ImageEditor = /** @class */ (function (_super) {
937
937
  var dropAreaElement = this.createElement('div', { id: this.element.id + '_dropArea', className: 'e-ie-drop-area' });
938
938
  dropAreaElement.style.position = 'relative';
939
939
  var dropIconElement = this.createElement('span', { className: 'e-ie-drop-icon e-icons e-image' });
940
- dropIconElement.style.position = 'absolute';
941
940
  var dropContentElement = this.createElement('span', { className: 'e-ie-drop-content' });
942
- dropContentElement.style.cssText = 'position: absolute; display: none;';
941
+ dropContentElement.style.cssText = 'display: none;';
943
942
  dropContentElement.textContent = dragObj['value'] + ' ';
944
943
  var minDropContentElem = this.createElement('span', { className: 'e-ie-min-drop-content' });
945
- minDropContentElem.style.position = 'absolute';
946
944
  minDropContentElem.textContent = dropObj['value'] + ' ';
947
945
  var dropAnchorElement = this.createElement('a', { id: this.element.id + '_dropBrowse', className: 'e-ie-drop-browse' });
948
946
  dropAnchorElement.textContent = browseObj['value'];
@@ -952,7 +950,7 @@ var ImageEditor = /** @class */ (function (_super) {
952
950
  minDropContentElem.appendChild(minDropAnchorElem);
953
951
  dropAnchorElement.href = '';
954
952
  minDropAnchorElem.href = '';
955
- var dropInfoElement = this.createElement('span', { className: 'e-ie-drop-info', attrs: { position: 'absolute' } });
953
+ var dropInfoElement = this.createElement('span', { className: 'e-ie-drop-info' });
956
954
  this.updateDropInfoContent(dropInfoElement);
957
955
  var dropUploader = dropAreaElement.appendChild(this.createElement('input', {
958
956
  id: this.element.id + '_dropfileUpload', className: 'e-fileUpload e-image-upload'
@@ -1817,9 +1815,6 @@ var ImageEditor = /** @class */ (function (_super) {
1817
1815
  *
1818
1816
  */
1819
1817
  ImageEditor.prototype.updateShape = function (setting, isSelected) {
1820
- if (setting.type.toLowerCase() === 'text') {
1821
- this.notify('shape', { prop: 'setPublicUpdateShape', onPropertyChange: false, value: { isPublicUpdateShape: true } });
1822
- }
1823
1818
  var obj = { isSelected: false };
1824
1819
  var isTextArea = false;
1825
1820
  var freehandObj = { bool: false };
@@ -1891,9 +1886,6 @@ var ImageEditor = /** @class */ (function (_super) {
1891
1886
  }
1892
1887
  }
1893
1888
  }
1894
- if (setting.type.toLowerCase() === 'text') {
1895
- this.notify('shape', { prop: 'setPublicUpdateShape', onPropertyChange: false, value: { isPublicUpdateShape: false } });
1896
- }
1897
1889
  return obj['isSelected'];
1898
1890
  };
1899
1891
  /**
@@ -2524,7 +2516,7 @@ var ImageEditor = /** @class */ (function (_super) {
2524
2516
  this.notify('toolbar', { prop: 'create-contextual-toolbar', onPropertyChange: false });
2525
2517
  var dropArea = document.getElementById(this.element.id + '_dropArea');
2526
2518
  if (dropArea) {
2527
- dropArea.style.display = 'block';
2519
+ dropArea.style.display = 'flex';
2528
2520
  }
2529
2521
  };
2530
2522
  // AI related codes
@@ -280,9 +280,6 @@ var ToolbarModule = /** @class */ (function () {
280
280
  case 'getToolbarHeight':
281
281
  args.value['obj']['toolbarHeight'] = this.toolbarHeight;
282
282
  break;
283
- case 'getcurrentImageQuality':
284
- args.value['obj']['currentImageQuality'] = this.currentQuality;
285
- break;
286
283
  case 'setToolbarHeight':
287
284
  if (isNullOrUndefined(parent.toolbar) || (parent.toolbar && parent.toolbar.length > 0 && parent.toolbar.indexOf('Open') > -1)) {
288
285
  this.toolbarHeight = args.value['height'];
@@ -5097,10 +5094,10 @@ var ToolbarModule = /** @class */ (function () {
5097
5094
  isDisabled = order > orderObj['order'] ? true : false;
5098
5095
  }
5099
5096
  if (isDisabled) {
5100
- document.getElementById(parent.element.id + '_bringToFront').classList.add('e-overlay');
5097
+ document.getElementById(parent.element.id + '_bringToFront').parentElement.classList.add('e-overlay');
5101
5098
  }
5102
5099
  else {
5103
- document.getElementById(parent.element.id + '_bringToFront').classList.remove('e-overlay');
5100
+ document.getElementById(parent.element.id + '_bringToFront').parentElement.classList.remove('e-overlay');
5104
5101
  }
5105
5102
  parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
5106
5103
  break;
@@ -6047,29 +6044,25 @@ var ToolbarModule = /** @class */ (function () {
6047
6044
  }
6048
6045
  hdrWrapper = canvasWrapper.appendChild(parent.createElement('div', {
6049
6046
  id: id + '_headWrapper',
6047
+ className: 'e-ie-head-wrapper',
6050
6048
  styles: 'position: relative'
6051
6049
  }));
6052
6050
  if (type === 'transparency') {
6053
6051
  labelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
6054
6052
  id: id + '_labelWrapper',
6055
- className: 'e-ie-finetune-slider-label',
6056
- styles: Browser.isDevice ? 'position: absolute; top: 31%; left: calc(50% - 150px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
6057
- : 'position: absolute; top: 31%; left: calc(50% - 220px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
6053
+ className: 'e-ie-finetune-slider-label'
6058
6054
  }));
6059
6055
  }
6060
6056
  else {
6061
6057
  labelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
6062
6058
  id: id + '_labelWrapper',
6063
- className: 'e-ie-finetune-slider-label',
6064
- styles: Browser.isDevice ? ('position: absolute; top: 31%; left: calc(50% - 160px); font-size: 15px; text-transform: capitalize; font-weight: 400;')
6065
- : 'position: absolute; top: 25%; left: calc(50% - 226px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
6059
+ className: 'e-ie-finetune-slider-label'
6066
6060
  }));
6067
6061
  }
6068
6062
  labelWrapper.textContent = this.l10n.getConstant(parent.toPascalCase(type === 'transparency' ? 'opacity' : type));
6069
6063
  var sliderWrapper = hdrWrapper.appendChild(parent.createElement('div', {
6070
6064
  id: id + '_sliderWrapper',
6071
- className: 'e-ie-finetune-slider-wrap',
6072
- styles: 'position: absolute'
6065
+ className: 'e-ie-finetune-slider-wrap'
6073
6066
  }));
6074
6067
  var value = parent.getCurrAdjustmentValue(type);
6075
6068
  if (isSelect && type === 'straighten' && Browser.isDevice) {
@@ -6147,8 +6140,7 @@ var ToolbarModule = /** @class */ (function () {
6147
6140
  if (type === 'straighten' && Browser.isDevice) {
6148
6141
  var sLabelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
6149
6142
  id: id + '_sLabelWrapper',
6150
- className: 'e-ie-straighten-value-span e-ie-finetune-value-span',
6151
- styles: 'position: absolute; top: 31%; margin-left: 20px; font-size: 15px; text-transform: capitalize; font-weight: 400;'
6143
+ className: 'e-ie-straighten-value-span e-ie-finetune-value-span'
6152
6144
  }));
6153
6145
  sLabelWrapper.innerHTML = parent.transform.straighten.toString() + '&#176';
6154
6146
  sliderWrapper.parentElement.classList.add('e-straighten-slider');
@@ -6156,9 +6148,7 @@ var ToolbarModule = /** @class */ (function () {
6156
6148
  if (type !== 'straighten') {
6157
6149
  hdrWrapper.appendChild(parent.createElement('label', {
6158
6150
  id: id + '_finetuneSpan',
6159
- className: 'e-ie-finetune-value-span',
6160
- styles: Browser.isDevice ? ('position: absolute; top: 25%; margin-left: 20px; font-size: 15px; text-transform: capitalize; font-weight: 400;') :
6161
- 'position: absolute; top: 25%; left: calc(50% + 190px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
6151
+ className: 'e-ie-finetune-value-span'
6162
6152
  }));
6163
6153
  sliderWrapper.parentElement.classList.add('e-finetune-slider');
6164
6154
  if (type === 'transparency' && Browser.isDevice) {
@@ -6675,26 +6665,22 @@ var ToolbarModule = /** @class */ (function () {
6675
6665
  }
6676
6666
  hdrWrapper = canvasWrapper.appendChild(parent.createElement('div', {
6677
6667
  id: id + '_headWrapper',
6668
+ className: 'e-ie-head-wrapper',
6678
6669
  styles: 'position: relative'
6679
6670
  }));
6680
6671
  labelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
6681
6672
  id: id + '_labelWrapper',
6682
- className: 'e-ie-finetune-slider-label',
6683
- styles: Browser.isDevice ? ('position: absolute; top: 31%; left: calc(50% - 160px); font-size: 15px; text-transform: capitalize; font-weight: 400;')
6684
- : 'position: absolute; top: 25%; left: calc(50% - 226px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
6673
+ className: 'e-ie-finetune-slider-label'
6685
6674
  }));
6686
6675
  var text = type === 'blur' ? this.l10n.getConstant('Blur') : this.l10n.getConstant('PixelSize');
6687
6676
  labelWrapper.textContent = text;
6688
6677
  var sliderWrapper = hdrWrapper.appendChild(parent.createElement('div', {
6689
6678
  id: id + '_sliderWrapper',
6690
- className: 'e-ie-finetune-slider-wrap',
6691
- styles: 'position: absolute'
6679
+ className: 'e-ie-finetune-slider-wrap'
6692
6680
  }));
6693
6681
  hdrWrapper.appendChild(parent.createElement('label', {
6694
6682
  id: id + '_redactSpan',
6695
- className: 'e-ie-redact-value-span',
6696
- styles: Browser.isDevice ? ('position: absolute; top: 30%; margin-left: 20px; font-size: 15px; text-transform: capitalize; font-weight: 400;') :
6697
- 'position: absolute; top: 30%; left: calc(50% + 190px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
6683
+ className: 'e-ie-redact-value-span'
6698
6684
  }));
6699
6685
  sliderWrapper.parentElement.classList.add('e-finetune-slider');
6700
6686
  var value = parent.activeObj.redactType === 'blur' ? parent.activeObj.redactBlur :
@@ -6734,6 +6720,9 @@ var ToolbarModule = /** @class */ (function () {
6734
6720
  var ht = parent.element.querySelector('#' + id + '_canvasWrapper').offsetHeight;
6735
6721
  contextualToolbarArea.style.top = this.toolbarHeight + 1 + ht - cHt + 'px';
6736
6722
  }
6723
+ else {
6724
+ contextualToolbarArea.style.top = parent.element.querySelector('#' + parent.element.id + '_toolbarArea').clientHeight + 'px';
6725
+ }
6737
6726
  };
6738
6727
  return ToolbarModule;
6739
6728
  }());
@@ -309,16 +309,6 @@
309
309
  .e-device.e-image-editor .e-img-font-style.e-template {
310
310
  margin-left: 0 !important; /* stylelint-disable-line declaration-no-important */
311
311
  }
312
- .e-device.e-image-editor .e-slider-container {
313
- margin-left: calc(50% - 70px) !important; /* stylelint-disable-line declaration-no-important */
314
- height: 54px !important; /* stylelint-disable-line declaration-no-important */
315
- }
316
- .e-device.e-image-editor .e-straighten-slider {
317
- margin-left: calc(50% - 70px) !important; /* stylelint-disable-line declaration-no-important */
318
- }
319
- .e-device.e-image-editor .e-ie-straighten-value-span {
320
- margin-left: 15px !important; /* stylelint-disable-line declaration-no-important */
321
- }
322
312
  .e-device.e-image-editor .e-hscroll .e-scroll-nav.e-scroll-right-nav, .e-device.e-image-editor .e-scroll-right-overlay {
323
313
  display: none !important; /* stylelint-disable-line declaration-no-important */
324
314
  }
@@ -363,8 +353,8 @@
363
353
  height: calc(100% - 18px);
364
354
  width: calc(100% - 20px);
365
355
  border: 2px dashed var(--color-sf-fg-secondary);
366
- border-radius: 10px;
367
356
  margin: 10px;
357
+ border-radius: 10px;
368
358
  }
369
359
  .e-image-editor .e-ie-drop-area .e-upload {
370
360
  display: none;
@@ -375,24 +365,30 @@
375
365
  .e-image-editor .e-ie-drop-area .e-ie-drop-icon {
376
366
  top: calc(50% - 60px);
377
367
  left: calc(50% - 25px);
368
+ position: absolute;
378
369
  }
379
370
  .e-image-editor .e-ie-drop-area .e-ie-drop-content {
380
371
  top: 50%;
381
372
  left: calc(50% - 160px);
382
373
  font-size: 14px;
374
+ position: absolute;
375
+ }
376
+ .e-image-editor .e-ie-drop-area .e-ie-drop-browse {
377
+ text-decoration: none;
383
378
  }
384
379
  .e-image-editor .e-ie-drop-area .e-ie-drop-info {
385
380
  top: calc(50% + 40px);
386
381
  left: 50%;
382
+ font-size: 14px;
383
+ position: absolute;
387
384
  -webkit-transform: translate(-50%, -50%);
388
385
  transform: translate(-50%, -50%);
389
- position: absolute;
390
- font-size: 14px;
391
386
  }
392
387
  .e-image-editor .e-ie-drop-area .e-ie-min-drop-content {
393
388
  left: calc(50% - 120px);
394
389
  top: 50%;
395
390
  font-size: 14px;
391
+ position: absolute;
396
392
  }
397
393
  .e-image-editor .e-toolbar {
398
394
  border: none;
@@ -403,9 +399,14 @@
403
399
  .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item.e-ie-resize-height {
404
400
  margin-left: 20px;
405
401
  min-width: 28px !important; /* stylelint-disable-line declaration-no-important */
402
+ font-size: 12px;
406
403
  }
407
404
  .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item.e-ie-resize-width {
408
405
  min-width: 28px !important; /* stylelint-disable-line declaration-no-important */
406
+ font-size: 12px;
407
+ }
408
+ .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item.e-stroke, .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item.e-frame-stroke, .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item.e-size {
409
+ font-size: 12px;
409
410
  }
410
411
  .e-image-editor .e-toolbar .e-toolbar-items .e-toolbar-item .e-tbar-btn.e-btn.e-tbtn-txt .e-icons.e-btn-icon {
411
412
  font-size: 18px;
@@ -463,6 +464,13 @@
463
464
  width: 100%;
464
465
  z-index: 1;
465
466
  }
467
+ .e-image-editor .e-contextual-toolbar-wrapper .e-ie-head-wrapper {
468
+ -ms-flex-line-pack: center;
469
+ align-content: center;
470
+ text-align: center;
471
+ height: auto;
472
+ min-height: 58px;
473
+ }
466
474
  .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar {
467
475
  border-bottom: none !important; /* stylelint-disable-line declaration-no-important */
468
476
  height: 130px !important; /* stylelint-disable-line declaration-no-important */
@@ -510,6 +518,7 @@
510
518
  .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item .filter-wrapper {
511
519
  -webkit-box-sizing: content-box;
512
520
  box-sizing: content-box;
521
+ font-size: 12px;
513
522
  }
514
523
  .e-image-editor .e-contextual-toolbar-wrapper .e-toolbar-item .filter-wrapper div {
515
524
  text-align: center;
@@ -519,9 +528,19 @@
519
528
  height: 100px;
520
529
  }
521
530
  .e-image-editor .e-contextual-toolbar-wrapper .e-slider-container {
522
- margin-left: calc(50% - 137px);
523
- height: 54px !important; /* stylelint-disable-line declaration-no-important */
531
+ margin: 0 16px 1px 16px;
532
+ height: auto;
533
+ }
534
+ .e-image-editor .e-ie-finetune-slider-wrap {
535
+ height: auto !important; /* stylelint-disable-line declaration-no-important */
536
+ }
537
+ .e-image-editor .e-ie-finetune-slider-label, .e-image-editor .e-ie-finetune-value-span, .e-image-editor .e-ie-redact-value-span {
538
+ font-size: 14px;
539
+ line-height: 20px;
540
+ letter-spacing: normal;
541
+ font-weight: 400;
524
542
  }
543
+
525
544
  .e-ie-straighten-value-span,
526
545
  .e-ie-straighten-span,
527
546
  .e-ie-toolbar-straighten {
@@ -530,10 +549,18 @@
530
549
  padding-right: 10px !important; /* stylelint-disable-line declaration-no-important */
531
550
  }
532
551
 
552
+ .e-device.e-image-editor .e-ie-straighten-value-span,
553
+ .e-device.e-image-editor .e-ie-straighten-span,
554
+ .e-device.e-image-editor .e-ie-toolbar-straighten {
555
+ font-size: 14px !important; /* stylelint-disable-line declaration-no-important */
556
+ padding-left: 0 !important; /* stylelint-disable-line declaration-no-important */
557
+ padding-right: 0 !important; /* stylelint-disable-line declaration-no-important */
558
+ }
559
+
533
560
  .e-straighten .e-control-wrapper.e-slider-container.e-horizontal {
534
561
  height: auto;
535
- margin-left: 8px;
536
562
  padding-right: 2px;
563
+ margin-left: 8px;
537
564
  }
538
565
 
539
566
  .e-straighten .e-control-wrapper.e-slider-container.e-horizontal .e-slider {
@@ -549,14 +576,6 @@
549
576
  top: calc(50% - 6px) !important; /* stylelint-disable-line declaration-no-important */
550
577
  }
551
578
 
552
- .e-ie-finetune-value-span {
553
- top: 28% !important; /* stylelint-disable-line declaration-no-important */
554
- }
555
-
556
- .e-ie-finetune-slider-label {
557
- top: 28% !important; /* stylelint-disable-line declaration-no-important */
558
- }
559
-
560
579
  .e-ie-finetune-slider-wrap {
561
580
  top: calc(50% - 12px) !important; /* stylelint-disable-line declaration-no-important */
562
581
  }
@@ -566,7 +585,8 @@
566
585
  }
567
586
 
568
587
  .e-ie-slider-wrap {
569
- top: calc(50% - 10px) !important; /* stylelint-disable-line declaration-no-important */
588
+ height: auto !important; /* stylelint-disable-line declaration-no-important */
589
+ top: auto !important; /* stylelint-disable-line declaration-no-important */
570
590
  }
571
591
 
572
592
  .e-dropdown-popup.e-ie-crop-ddb-popup ul {
@@ -578,10 +598,6 @@
578
598
  background: none !important; /* stylelint-disable-line declaration-no-important */
579
599
  }
580
600
 
581
- .e-device.e-image-editor .e-ie-device-transparency-slider {
582
- margin-left: calc(50% - 80px) !important; /* stylelint-disable-line declaration-no-important */
583
- }
584
-
585
601
  .e-ie-quality-slider.e-control-wrapper.e-slider-container.e-horizontal,
586
602
  .e-ie-quality-option-container .e-slider-container.e-horizontal {
587
603
  height: 28px;
@@ -640,6 +656,7 @@
640
656
  -webkit-box-pack: start;
641
657
  -ms-flex-pack: start;
642
658
  justify-content: flex-start;
659
+ text-align: center;
643
660
  }
644
661
 
645
662
  .e-ie-dlg-right-content {
@@ -648,13 +665,14 @@
648
665
 
649
666
  .e-ie-img-save-name {
650
667
  display: inline-block;
651
- margin-right: 10px;
652
668
  width: calc(69% - 13px);
669
+ margin-right: 10px;
653
670
  }
654
671
 
655
672
  .e-ie-img-save-dlg {
656
673
  display: inline-block;
657
- width: 92px;
674
+ width: auto;
675
+ min-width: 92px;
658
676
  }
659
677
 
660
678
  .e-ie-img-save-dlg .e-btn {
@@ -662,8 +680,8 @@
662
680
  }
663
681
 
664
682
  .e-ie-img-label-name {
665
- margin-bottom: 5px;
666
683
  display: block;
684
+ margin-bottom: 5px;
667
685
  }
668
686
 
669
687
  .e-ie-img-quality-name {
@@ -714,13 +732,13 @@
714
732
  }
715
733
 
716
734
  .e-ie-img-icon-button {
717
- margin-left: 10px;
718
735
  width: -webkit-max-content;
719
736
  width: -moz-max-content;
720
737
  width: max-content;
721
738
  margin-bottom: 3px;
722
739
  padding-top: 4px;
723
740
  padding-bottom: 4px;
741
+ margin-left: 10px;
724
742
  }
725
743
 
726
744
  .e-ie-quality-option-container .e-btn-group .e-btn {
@@ -753,24 +771,12 @@
753
771
  .e-blr-ie-save-dialog.e-device .e-ie-quality-option-container .e-ie-img-icon-button {
754
772
  margin-left: 0;
755
773
  }
756
- .e-blr-ie-save-dialog.e-device .e-slider-container {
757
- margin-left: 0 !important; /* stylelint-disable-line declaration-no-important */
758
- height: 28px !important; /* stylelint-disable-line declaration-no-important */
759
- }
760
774
  .e-blr-ie-save-dialog.e-device .e-ie-img-size-value-span {
761
775
  margin-left: calc(67% - 100px) !important; /* stylelint-disable-line declaration-no-important */
762
776
  }
763
777
  .e-blr-ie-save-dialog.e-device .e-btn-group .e-btn {
764
778
  padding: 0 15px;
765
779
  }
766
- .e-ie-straighten-value-span {
767
- margin-left: 7px !important; /* stylelint-disable-line declaration-no-important */
768
- }
769
-
770
- .e-device.e-image-editor .e-ie-straighten-value-span {
771
- margin-left: 15px !important; /* stylelint-disable-line declaration-no-important */
772
- }
773
-
774
780
  @media only screen and (max-width: 390px) {
775
781
  .e-device.e-image-editor .e-ie-save-dialog .e-dialog .e-dlg-content .e-ie-dlg-right-content .e-ie-img-quality-name .e-btn-group .e-btn {
776
782
  padding-left: 9px;
@@ -780,17 +786,13 @@
780
786
  width: calc(65% - 30px) !important; /* stylelint-disable-line declaration-no-important */
781
787
  }
782
788
  }
783
- .e-device.e-image-editor .e-contextual-toolbar-wrapper .e-ie-finetune-slider-label {
784
- left: calc(50% - 145px) !important; /* stylelint-disable-line declaration-no-important */
785
- }
786
-
787
- .e-device.e-image-editor .e-contextual-toolbar-wrapper .e-slider-container {
788
- width: 170px !important; /* stylelint-disable-line declaration-no-important */
789
- margin-left: calc(50% - 62px) !important; /* stylelint-disable-line declaration-no-important */
790
- }
791
-
792
- .e-device.e-image-editor .e-contextual-toolbar-wrapper .e-ie-finetune-value-span {
793
- margin-left: 10px !important; /* stylelint-disable-line declaration-no-important */
789
+ .e-device.e-image-editor .e-contextual-toolbar-wrapper .e-ie-finetune-slider-label,
790
+ .e-device.e-image-editor .e-contextual-toolbar-wrapper .e-ie-finetune-value-span,
791
+ .e-device.e-image-editor .e-contextual-toolbar-wrapper .e-ie-redact-value-span {
792
+ font-size: 16px;
793
+ line-height: 24px;
794
+ letter-spacing: normal;
795
+ font-weight: normal;
794
796
  }
795
797
 
796
798
  .e-device.e-image-editor .e-ie-drop-area .e-ie-drop-info {
@@ -870,7 +872,6 @@
870
872
  -webkit-box-shadow: none !important;
871
873
  box-shadow: none !important; /* stylelint-disable-line declaration-no-important */
872
874
  }
873
-
874
875
  .e-dropdown-popup .e-selected-btn {
875
876
  background: var(--color-sf-bg-tertiary) !important; /* stylelint-disable-line declaration-no-important */
876
877
  }