@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
@@ -5051,7 +5051,7 @@ var Draw = /** @__PURE__ @class */ (function () {
5051
5051
  this.errorLoading();
5052
5052
  parent.showDialogPopup('unsupported', fileTypeError);
5053
5053
  if (dropArea && !parent.isImageLoaded) {
5054
- dropArea.style.display = 'block';
5054
+ dropArea.style.display = 'flex';
5055
5055
  }
5056
5056
  }
5057
5057
  else {
@@ -6437,12 +6437,8 @@ var Export = /** @__PURE__ @class */ (function () {
6437
6437
  type = type ? type : 'Png';
6438
6438
  parent.notify('shape', { prop: 'redrawActObj', onPropertyChange: false,
6439
6439
  value: { x: null, y: null, isMouseDown: null } });
6440
- var imageQualityObj = { currentImageQuality: 1 };
6441
- if (type.toLowerCase() === 'jpeg') {
6442
- parent.notify('toolbar', { prop: 'getcurrentImageQuality', onPropertyChange: false, value: { obj: imageQualityObj } });
6443
- }
6444
6440
  var beforeSave = { cancel: false, fileName: fileName ? fileName : imageName,
6445
- fileType: type, imageQuality: imgQuality || imageQualityObj['currentImageQuality'] };
6441
+ fileType: type, imageQuality: imgQuality };
6446
6442
  parent.trigger('beforeSave', beforeSave);
6447
6443
  this.beforeSaveEvent(beforeSave, type, fileName, imageName, imgQuality);
6448
6444
  }
@@ -8956,11 +8952,6 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
8956
8952
  var parent = this.parent;
8957
8953
  var point = parent.pointColl[this.fhdSelIdx];
8958
8954
  parent.trigger('shapeChanging', shapeChangingArgs);
8959
- if (shapeChangingArgs.cancel) {
8960
- parent.editCompleteArgs = shapeChangingArgs;
8961
- this.cancelFhd();
8962
- return;
8963
- }
8964
8955
  if (parent.element.getAttribute('data-value') === 'mask-drawing' && !this.isMasking) {
8965
8956
  this.isMasking = true;
8966
8957
  parent.upperCanvas.style.cursor = 'crosshair';
@@ -12231,6 +12222,10 @@ var Selection = /** @__PURE__ @class */ (function () {
12231
12222
  };
12232
12223
  Selection.prototype.mouseDownEventHandler = function (e) {
12233
12224
  var parent = this.parent;
12225
+ if (parent.isSafari && e.buttons === 0 && (this.parent.isShapeDrawing || this.parent.togglePen) && this.parent.drawingShape !== 'path') {
12226
+ e.stopImmediatePropagation();
12227
+ return;
12228
+ }
12234
12229
  parent.isKBDNavigation = false;
12235
12230
  this.mouseDown = e.currentTarget === parent.lowerCanvas || e.currentTarget === parent.upperCanvas ?
12236
12231
  'canvas' : '';
@@ -12508,9 +12503,6 @@ var Selection = /** @__PURE__ @class */ (function () {
12508
12503
  var objColl = extend([], parent.objColl, [], true);
12509
12504
  if (!isNullOrUndefined(obj['index']) && obj['index'] > -1) {
12510
12505
  parent.notify('freehand-draw', { prop: 'selectFhd', value: { type: 'ok' } });
12511
- if (!this.isFhdPoint) {
12512
- return;
12513
- }
12514
12506
  parent.notify('freehand-draw', { prop: 'hoverFhd', onPropertyChange: false,
12515
12507
  value: { strokeColor: null, strokeWidth: null } });
12516
12508
  parent.notify('toolbar', { prop: 'renderQAT', onPropertyChange: false, value: { isPenEdit: true } });
@@ -13055,9 +13047,7 @@ var Selection = /** @__PURE__ @class */ (function () {
13055
13047
  this.currentDrawingShape = parent.drawingShape.toLowerCase();
13056
13048
  if (dummyClick) {
13057
13049
  parent.enableShapeDrawing(parent.toPascalCase(parent.drawingShape), true);
13058
- if (parent.cursor !== 'move') {
13059
- parent.upperCanvas.style.cursor = 'crosshair';
13060
- }
13050
+ parent.upperCanvas.style.cursor = 'crosshair';
13061
13051
  }
13062
13052
  }
13063
13053
  parent.isShapeDrawing = false;
@@ -14079,14 +14069,7 @@ var Selection = /** @__PURE__ @class */ (function () {
14079
14069
  }
14080
14070
  if (!this.isCropSelection && parent.activeObj.shape !== 'redact') {
14081
14071
  parent.trigger('shapeChanging', shapeChangingArgs);
14082
- if (shapeChangingArgs.cancel) {
14083
- parent.objColl.splice(i, 0, temp);
14084
- parent.notify('shape', { prop: 'refreshActiveObj', onPropertyChange: false });
14085
- parent.notify('draw', { prop: 'render-image', value: { isMouseWheel: null } });
14086
- }
14087
- else {
14088
- this.shapeEvent(shapeChangingArgs);
14089
- }
14072
+ this.shapeEvent(shapeChangingArgs);
14090
14073
  parent.editCompleteArgs = shapeChangingArgs;
14091
14074
  }
14092
14075
  else {
@@ -14756,7 +14739,6 @@ var Shape = /** @__PURE__ @class */ (function () {
14756
14739
  this.keyHistory = ''; // text history
14757
14740
  this.preventFrameAnnotation = false;
14758
14741
  this.redactType = 'blur';
14759
- this.isPublicUpdateShape = false;
14760
14742
  this.parent = parent;
14761
14743
  this.addEventListener();
14762
14744
  }
@@ -15030,9 +15012,6 @@ var Shape = /** @__PURE__ @class */ (function () {
15030
15012
  case 'setRedactType':
15031
15013
  this.redactType = args.value['redactType'];
15032
15014
  break;
15033
- case 'setPublicUpdateShape':
15034
- this.isPublicUpdateShape = args.value['isPublicUpdateShape'];
15035
- break;
15036
15015
  }
15037
15016
  };
15038
15017
  Shape.prototype.getModuleName = function () {
@@ -15059,7 +15038,7 @@ var Shape = /** @__PURE__ @class */ (function () {
15059
15038
  this.textSettings =
15060
15039
  { text: 'Enter Text', fontFamily: this.parent.fontFamily.default, fontSize: null, fontRatio: null, bold: false, italic: false, underline: false, strikethrough: false };
15061
15040
  this.strokeSettings = { strokeColor: '#fff', fillColor: '', strokeWidth: null, radius: null, outlineColor: '', outlineWidth: null };
15062
- this.preventFrameAnnotation = this.isPublicUpdateShape = false;
15041
+ this.preventFrameAnnotation = false;
15063
15042
  };
15064
15043
  Shape.prototype.drawEllipse = function (x, y, radiusX, radiusY, strokeWidth, strokeColor, fillColor, degree, isSelected) {
15065
15044
  this.initializeShape('ellipse');
@@ -15772,7 +15751,7 @@ var Shape = /** @__PURE__ @class */ (function () {
15772
15751
  }
15773
15752
  parent.notify('selection', { prop: 'setTextSelection', onPropertyChange: false,
15774
15753
  value: { width: width, height: height } });
15775
- if (parent.activeObj.rotatedAngle !== 0 && !this.isPublicUpdateShape) {
15754
+ if (parent.activeObj.rotatedAngle !== 0) {
15776
15755
  var width_1 = parent.activeObj.activePoint.width - tempActiveObj.activePoint.width;
15777
15756
  var height_1 = parent.activeObj.activePoint.height - tempActiveObj.activePoint.height;
15778
15757
  var value = '';
@@ -15791,20 +15770,6 @@ var Shape = /** @__PURE__ @class */ (function () {
15791
15770
  parent.notify('shape', { prop: 'updateFontSize', onPropertyChange: false,
15792
15771
  value: { obj: parent.activeObj } });
15793
15772
  }
15794
- else if (this.isPublicUpdateShape) {
15795
- var width_2 = parent.activeObj.activePoint.width - tempActiveObj.activePoint.width;
15796
- var height_2 = parent.activeObj.activePoint.height - tempActiveObj.activePoint.height;
15797
- var value = '';
15798
- if (parent.transform.degree === 0 || parent.transform.degree === 180) {
15799
- value = 'width';
15800
- }
15801
- else if (parent.transform.degree === 90 || parent.transform.degree === 270) {
15802
- value = 'height';
15803
- }
15804
- parent.activeObj.activePoint = extend({}, tempActiveObj.activePoint, {}, true);
15805
- parent.notify('selection', { prop: 'adjustRotationPoints', onPropertyChange: false, value: { rectangle: parent.activeObj.activePoint,
15806
- x: width_2, y: height_2, angle: parent.activeObj.rotatedAngle, type: 'text', elem: value } });
15807
- }
15808
15773
  parent.notify('draw', { prop: 'updateActiveObject', onPropertyChange: false, value: { actPoint: parent.activeObj.activePoint, obj: parent.activeObj,
15809
15774
  isMouseMove: null, x: null, y: null } });
15810
15775
  this.updImgRatioForActObj();
@@ -23399,12 +23364,10 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
23399
23364
  var dropAreaElement = this.createElement('div', { id: this.element.id + '_dropArea', className: 'e-ie-drop-area' });
23400
23365
  dropAreaElement.style.position = 'relative';
23401
23366
  var dropIconElement = this.createElement('span', { className: 'e-ie-drop-icon e-icons e-image' });
23402
- dropIconElement.style.position = 'absolute';
23403
23367
  var dropContentElement = this.createElement('span', { className: 'e-ie-drop-content' });
23404
- dropContentElement.style.cssText = 'position: absolute; display: none;';
23368
+ dropContentElement.style.cssText = 'display: none;';
23405
23369
  dropContentElement.textContent = dragObj['value'] + ' ';
23406
23370
  var minDropContentElem = this.createElement('span', { className: 'e-ie-min-drop-content' });
23407
- minDropContentElem.style.position = 'absolute';
23408
23371
  minDropContentElem.textContent = dropObj['value'] + ' ';
23409
23372
  var dropAnchorElement = this.createElement('a', { id: this.element.id + '_dropBrowse', className: 'e-ie-drop-browse' });
23410
23373
  dropAnchorElement.textContent = browseObj['value'];
@@ -23414,7 +23377,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
23414
23377
  minDropContentElem.appendChild(minDropAnchorElem);
23415
23378
  dropAnchorElement.href = '';
23416
23379
  minDropAnchorElem.href = '';
23417
- var dropInfoElement = this.createElement('span', { className: 'e-ie-drop-info', attrs: { position: 'absolute' } });
23380
+ var dropInfoElement = this.createElement('span', { className: 'e-ie-drop-info' });
23418
23381
  this.updateDropInfoContent(dropInfoElement);
23419
23382
  var dropUploader = dropAreaElement.appendChild(this.createElement('input', {
23420
23383
  id: this.element.id + '_dropfileUpload', className: 'e-fileUpload e-image-upload'
@@ -24279,9 +24242,6 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
24279
24242
  *
24280
24243
  */
24281
24244
  ImageEditor.prototype.updateShape = function (setting, isSelected) {
24282
- if (setting.type.toLowerCase() === 'text') {
24283
- this.notify('shape', { prop: 'setPublicUpdateShape', onPropertyChange: false, value: { isPublicUpdateShape: true } });
24284
- }
24285
24245
  var obj = { isSelected: false };
24286
24246
  var isTextArea = false;
24287
24247
  var freehandObj = { bool: false };
@@ -24353,9 +24313,6 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
24353
24313
  }
24354
24314
  }
24355
24315
  }
24356
- if (setting.type.toLowerCase() === 'text') {
24357
- this.notify('shape', { prop: 'setPublicUpdateShape', onPropertyChange: false, value: { isPublicUpdateShape: false } });
24358
- }
24359
24316
  return obj['isSelected'];
24360
24317
  };
24361
24318
  /**
@@ -24986,7 +24943,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
24986
24943
  this.notify('toolbar', { prop: 'create-contextual-toolbar', onPropertyChange: false });
24987
24944
  var dropArea = document.getElementById(this.element.id + '_dropArea');
24988
24945
  if (dropArea) {
24989
- dropArea.style.display = 'block';
24946
+ dropArea.style.display = 'flex';
24990
24947
  }
24991
24948
  };
24992
24949
  // AI related codes
@@ -28054,9 +28011,6 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
28054
28011
  case 'getToolbarHeight':
28055
28012
  args.value['obj']['toolbarHeight'] = this.toolbarHeight;
28056
28013
  break;
28057
- case 'getcurrentImageQuality':
28058
- args.value['obj']['currentImageQuality'] = this.currentQuality;
28059
- break;
28060
28014
  case 'setToolbarHeight':
28061
28015
  if (isNullOrUndefined(parent.toolbar) || (parent.toolbar && parent.toolbar.length > 0 && parent.toolbar.indexOf('Open') > -1)) {
28062
28016
  this.toolbarHeight = args.value['height'];
@@ -32871,10 +32825,10 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
32871
32825
  isDisabled = order > orderObj['order'] ? true : false;
32872
32826
  }
32873
32827
  if (isDisabled) {
32874
- document.getElementById(parent.element.id + '_bringToFront').classList.add('e-overlay');
32828
+ document.getElementById(parent.element.id + '_bringToFront').parentElement.classList.add('e-overlay');
32875
32829
  }
32876
32830
  else {
32877
- document.getElementById(parent.element.id + '_bringToFront').classList.remove('e-overlay');
32831
+ document.getElementById(parent.element.id + '_bringToFront').parentElement.classList.remove('e-overlay');
32878
32832
  }
32879
32833
  parent.notify('undo-redo', { prop: 'updateUndoRedoStack', onPropertyChange: false });
32880
32834
  break;
@@ -33821,29 +33775,25 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
33821
33775
  }
33822
33776
  hdrWrapper = canvasWrapper.appendChild(parent.createElement('div', {
33823
33777
  id: id + '_headWrapper',
33778
+ className: 'e-ie-head-wrapper',
33824
33779
  styles: 'position: relative'
33825
33780
  }));
33826
33781
  if (type === 'transparency') {
33827
33782
  labelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
33828
33783
  id: id + '_labelWrapper',
33829
- className: 'e-ie-finetune-slider-label',
33830
- styles: Browser.isDevice ? 'position: absolute; top: 31%; left: calc(50% - 150px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
33831
- : 'position: absolute; top: 31%; left: calc(50% - 220px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
33784
+ className: 'e-ie-finetune-slider-label'
33832
33785
  }));
33833
33786
  }
33834
33787
  else {
33835
33788
  labelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
33836
33789
  id: id + '_labelWrapper',
33837
- className: 'e-ie-finetune-slider-label',
33838
- styles: Browser.isDevice ? ('position: absolute; top: 31%; left: calc(50% - 160px); font-size: 15px; text-transform: capitalize; font-weight: 400;')
33839
- : 'position: absolute; top: 25%; left: calc(50% - 226px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
33790
+ className: 'e-ie-finetune-slider-label'
33840
33791
  }));
33841
33792
  }
33842
33793
  labelWrapper.textContent = this.l10n.getConstant(parent.toPascalCase(type === 'transparency' ? 'opacity' : type));
33843
33794
  var sliderWrapper = hdrWrapper.appendChild(parent.createElement('div', {
33844
33795
  id: id + '_sliderWrapper',
33845
- className: 'e-ie-finetune-slider-wrap',
33846
- styles: 'position: absolute'
33796
+ className: 'e-ie-finetune-slider-wrap'
33847
33797
  }));
33848
33798
  var value = parent.getCurrAdjustmentValue(type);
33849
33799
  if (isSelect && type === 'straighten' && Browser.isDevice) {
@@ -33921,8 +33871,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
33921
33871
  if (type === 'straighten' && Browser.isDevice) {
33922
33872
  var sLabelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
33923
33873
  id: id + '_sLabelWrapper',
33924
- className: 'e-ie-straighten-value-span e-ie-finetune-value-span',
33925
- styles: 'position: absolute; top: 31%; margin-left: 20px; font-size: 15px; text-transform: capitalize; font-weight: 400;'
33874
+ className: 'e-ie-straighten-value-span e-ie-finetune-value-span'
33926
33875
  }));
33927
33876
  sLabelWrapper.innerHTML = parent.transform.straighten.toString() + '&#176';
33928
33877
  sliderWrapper.parentElement.classList.add('e-straighten-slider');
@@ -33930,9 +33879,7 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
33930
33879
  if (type !== 'straighten') {
33931
33880
  hdrWrapper.appendChild(parent.createElement('label', {
33932
33881
  id: id + '_finetuneSpan',
33933
- className: 'e-ie-finetune-value-span',
33934
- styles: Browser.isDevice ? ('position: absolute; top: 25%; margin-left: 20px; font-size: 15px; text-transform: capitalize; font-weight: 400;') :
33935
- 'position: absolute; top: 25%; left: calc(50% + 190px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
33882
+ className: 'e-ie-finetune-value-span'
33936
33883
  }));
33937
33884
  sliderWrapper.parentElement.classList.add('e-finetune-slider');
33938
33885
  if (type === 'transparency' && Browser.isDevice) {
@@ -34449,26 +34396,22 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
34449
34396
  }
34450
34397
  hdrWrapper = canvasWrapper.appendChild(parent.createElement('div', {
34451
34398
  id: id + '_headWrapper',
34399
+ className: 'e-ie-head-wrapper',
34452
34400
  styles: 'position: relative'
34453
34401
  }));
34454
34402
  labelWrapper = hdrWrapper.appendChild(parent.createElement('label', {
34455
34403
  id: id + '_labelWrapper',
34456
- className: 'e-ie-finetune-slider-label',
34457
- styles: Browser.isDevice ? ('position: absolute; top: 31%; left: calc(50% - 160px); font-size: 15px; text-transform: capitalize; font-weight: 400;')
34458
- : 'position: absolute; top: 25%; left: calc(50% - 226px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
34404
+ className: 'e-ie-finetune-slider-label'
34459
34405
  }));
34460
34406
  var text = type === 'blur' ? this.l10n.getConstant('Blur') : this.l10n.getConstant('PixelSize');
34461
34407
  labelWrapper.textContent = text;
34462
34408
  var sliderWrapper = hdrWrapper.appendChild(parent.createElement('div', {
34463
34409
  id: id + '_sliderWrapper',
34464
- className: 'e-ie-finetune-slider-wrap',
34465
- styles: 'position: absolute'
34410
+ className: 'e-ie-finetune-slider-wrap'
34466
34411
  }));
34467
34412
  hdrWrapper.appendChild(parent.createElement('label', {
34468
34413
  id: id + '_redactSpan',
34469
- className: 'e-ie-redact-value-span',
34470
- styles: Browser.isDevice ? ('position: absolute; top: 30%; margin-left: 20px; font-size: 15px; text-transform: capitalize; font-weight: 400;') :
34471
- 'position: absolute; top: 30%; left: calc(50% + 190px); font-size: 15px; text-transform: capitalize; font-weight: 400;'
34414
+ className: 'e-ie-redact-value-span'
34472
34415
  }));
34473
34416
  sliderWrapper.parentElement.classList.add('e-finetune-slider');
34474
34417
  var value = parent.activeObj.redactType === 'blur' ? parent.activeObj.redactBlur :
@@ -34508,6 +34451,9 @@ var ToolbarModule = /** @__PURE__ @class */ (function () {
34508
34451
  var ht = parent.element.querySelector('#' + id + '_canvasWrapper').offsetHeight;
34509
34452
  contextualToolbarArea.style.top = this.toolbarHeight + 1 + ht - cHt + 'px';
34510
34453
  }
34454
+ else {
34455
+ contextualToolbarArea.style.top = parent.element.querySelector('#' + parent.element.id + '_toolbarArea').clientHeight + 'px';
34456
+ }
34511
34457
  };
34512
34458
  return ToolbarModule;
34513
34459
  }());