@syncfusion/ej2-image-editor 29.1.38 → 29.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 (81) 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 +69 -9
  4. package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
  5. package/dist/es6/ej2-image-editor.es5.js +69 -9
  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/package.json +12 -12
  11. package/src/image-editor/action/draw.js +1 -0
  12. package/src/image-editor/action/transform.js +1 -0
  13. package/src/image-editor/base/image-editor-model.d.ts +25 -0
  14. package/src/image-editor/base/image-editor.d.ts +24 -0
  15. package/src/image-editor/base/image-editor.js +14 -0
  16. package/src/image-editor/renderer/toolbar.d.ts +1 -0
  17. package/src/image-editor/renderer/toolbar.js +53 -9
  18. package/styles/bds-lite.css +2 -2
  19. package/styles/bds.css +2 -2
  20. package/styles/bootstrap-dark-lite.css +2 -2
  21. package/styles/bootstrap-dark.css +2 -2
  22. package/styles/bootstrap-lite.css +2 -2
  23. package/styles/bootstrap.css +2 -2
  24. package/styles/bootstrap4-lite.css +2 -2
  25. package/styles/bootstrap4.css +2 -2
  26. package/styles/bootstrap5-dark-lite.css +2 -2
  27. package/styles/bootstrap5-dark.css +2 -2
  28. package/styles/bootstrap5-lite.css +2 -2
  29. package/styles/bootstrap5.3-lite.css +2 -2
  30. package/styles/bootstrap5.3.css +2 -2
  31. package/styles/bootstrap5.css +2 -2
  32. package/styles/fabric-dark-lite.css +2 -2
  33. package/styles/fabric-dark.css +2 -2
  34. package/styles/fabric-lite.css +2 -2
  35. package/styles/fabric.css +2 -2
  36. package/styles/fluent-dark-lite.css +2 -2
  37. package/styles/fluent-dark.css +2 -2
  38. package/styles/fluent-lite.css +2 -2
  39. package/styles/fluent.css +2 -2
  40. package/styles/fluent2-lite.css +2 -2
  41. package/styles/fluent2.css +2 -2
  42. package/styles/highcontrast-light-lite.css +2 -2
  43. package/styles/highcontrast-light.css +2 -2
  44. package/styles/highcontrast-lite.css +2 -2
  45. package/styles/highcontrast.css +2 -2
  46. package/styles/image-editor/_layout.scss +2 -2
  47. package/styles/image-editor/bds.css +2 -2
  48. package/styles/image-editor/bootstrap-dark.css +2 -2
  49. package/styles/image-editor/bootstrap.css +2 -2
  50. package/styles/image-editor/bootstrap4.css +2 -2
  51. package/styles/image-editor/bootstrap5-dark.css +2 -2
  52. package/styles/image-editor/bootstrap5.3.css +2 -2
  53. package/styles/image-editor/bootstrap5.css +2 -2
  54. package/styles/image-editor/fabric-dark.css +2 -2
  55. package/styles/image-editor/fabric.css +2 -2
  56. package/styles/image-editor/fluent-dark.css +2 -2
  57. package/styles/image-editor/fluent.css +2 -2
  58. package/styles/image-editor/fluent2.css +2 -2
  59. package/styles/image-editor/highcontrast-light.css +2 -2
  60. package/styles/image-editor/highcontrast.css +2 -2
  61. package/styles/image-editor/material-dark.css +2 -2
  62. package/styles/image-editor/material.css +2 -2
  63. package/styles/image-editor/material3-dark.css +2 -2
  64. package/styles/image-editor/material3.css +2 -2
  65. package/styles/image-editor/tailwind-dark.css +2 -2
  66. package/styles/image-editor/tailwind.css +2 -2
  67. package/styles/image-editor/tailwind3.css +2 -2
  68. package/styles/material-dark-lite.css +2 -2
  69. package/styles/material-dark.css +2 -2
  70. package/styles/material-lite.css +2 -2
  71. package/styles/material.css +2 -2
  72. package/styles/material3-dark-lite.css +2 -2
  73. package/styles/material3-dark.css +2 -2
  74. package/styles/material3-lite.css +2 -2
  75. package/styles/material3.css +2 -2
  76. package/styles/tailwind-dark-lite.css +2 -2
  77. package/styles/tailwind-dark.css +2 -2
  78. package/styles/tailwind-lite.css +2 -2
  79. package/styles/tailwind.css +2 -2
  80. package/styles/tailwind3-lite.css +2 -2
  81. package/styles/tailwind3.css +2 -2
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 29.1.38
3
+ * version : 29.2.5
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-image-editor@*",
3
- "_id": "@syncfusion/ej2-image-editor@29.1.37",
3
+ "_id": "@syncfusion/ej2-image-editor@29.2.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-+D/VOqTX1RBLbM3+gbbmInoSbaM1xcBoesAdg44ilDafvOFFExMRM5ih45Ei11xHfyoEKNGDFTFMu2YT4OC1rA==",
5
+ "_integrity": "sha512-KGWJaBOobKxYzaAAsQUgkhCCnOhrWbSA7oHtqQOuqyUsWEws3YPHwnAA4mXVjBVQKnYyBRs8TFHW2AWhV9381Q==",
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-29.1.37.tgz",
27
- "_shasum": "cfd2ed4116a7fa6ff96b7e8c9ee34ae36d3f9b11",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-29.2.4.tgz",
27
+ "_shasum": "66450f7daa2da9e5ad610c2d891b093d4a2c913f",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_29.1.1/packages/included",
30
30
  "author": {
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
- "@syncfusion/ej2-base": "~29.1.36",
36
- "@syncfusion/ej2-buttons": "~29.1.34",
37
- "@syncfusion/ej2-dropdowns": "~29.1.38",
38
- "@syncfusion/ej2-inputs": "~29.1.38",
39
- "@syncfusion/ej2-navigations": "~29.1.38",
40
- "@syncfusion/ej2-popups": "~29.1.37",
41
- "@syncfusion/ej2-splitbuttons": "~29.1.33"
35
+ "@syncfusion/ej2-base": "~29.2.4",
36
+ "@syncfusion/ej2-buttons": "~29.2.5",
37
+ "@syncfusion/ej2-dropdowns": "~29.2.5",
38
+ "@syncfusion/ej2-inputs": "~29.2.5",
39
+ "@syncfusion/ej2-navigations": "~29.2.5",
40
+ "@syncfusion/ej2-popups": "~29.2.4",
41
+ "@syncfusion/ej2-splitbuttons": "~29.2.4"
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": "29.1.38",
71
+ "version": "29.2.5",
72
72
  "sideEffects": false,
73
73
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
74
74
  }
@@ -2560,6 +2560,7 @@ var Draw = /** @class */ (function () {
2560
2560
  if (!parent.isUndoRedo) {
2561
2561
  parent.notify('filter', { prop: 'update-finetunes', onPropertyChange: false });
2562
2562
  }
2563
+ proxy.lowerContext.imageSmoothingQuality = parent.imageSmoothingEnabled ? 'high' : 'low';
2563
2564
  proxy.lowerContext.drawImage(parent.baseImg, 0, 0, proxy.parent.lowerCanvas.width, proxy.parent.lowerCanvas.height);
2564
2565
  var isCropped = false;
2565
2566
  var isSameDimension = false;
@@ -1632,6 +1632,7 @@ var Transform = /** @class */ (function () {
1632
1632
  parent.lowerCanvas.height = parent.upperCanvas.height = parent.maskCanvas.height =
1633
1633
  parseFloat(canvasWrapper.style.height);
1634
1634
  this.lowerContext.filter = tempFilter;
1635
+ this.lowerContext.imageSmoothingQuality = parent.imageSmoothingEnabled ? 'high' : 'low';
1635
1636
  var obj = { width: 0, height: 0 };
1636
1637
  this.calcMaxDimension(parent.img.srcWidth, parent.img.srcHeight, obj);
1637
1638
  var maxDimension = obj;
@@ -434,6 +434,31 @@ export interface ImageEditorModel extends ComponentModel{
434
434
  */
435
435
  quickAccessToolbarTemplate?: string | Function;
436
436
 
437
+ /**
438
+ * Determines whether high-quality images should be smoothed when rendered.
439
+ *
440
+ * @default false
441
+ *
442
+ * @remarks
443
+ *
444
+ * When enabled (`true`), the image will be smoothed, reducing pixelation at the cost of sharpness.
445
+ *
446
+ * When disabled (`false`), the image will be rendered with crisp, unaltered pixels.
447
+ *
448
+ * ```html
449
+ * <div id='imageeditor'></div>
450
+ * ```
451
+ * ```typescript
452
+ * <script>
453
+ * var imageObj = new ImageEditor({
454
+ * imageSmoothingEnabled: true
455
+ * });
456
+ * imageObj.appendTo("#imageeditor");
457
+ * </script>
458
+ * ```
459
+ */
460
+ imageSmoothingEnabled?: boolean;
461
+
437
462
  /**
438
463
  * Specifies whether to prevent user interaction with the image editor control.
439
464
  * A boolean that specifies whether to prevent the interaction in image editor control. The default value is false.
@@ -607,6 +607,30 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
607
607
  * ```
608
608
  */
609
609
  quickAccessToolbarTemplate: string | Function;
610
+ /**
611
+ * Determines whether high-quality images should be smoothed when rendered.
612
+ *
613
+ * @default false
614
+ *
615
+ * @remarks
616
+ *
617
+ * When enabled (`true`), the image will be smoothed, reducing pixelation at the cost of sharpness.
618
+ *
619
+ * When disabled (`false`), the image will be rendered with crisp, unaltered pixels.
620
+ *
621
+ * ```html
622
+ * <div id='imageeditor'></div>
623
+ * ```
624
+ * ```typescript
625
+ * <script>
626
+ * var imageObj = new ImageEditor({
627
+ * imageSmoothingEnabled: true
628
+ * });
629
+ * imageObj.appendTo("#imageeditor");
630
+ * </script>
631
+ * ```
632
+ */
633
+ imageSmoothingEnabled: boolean;
610
634
  /**
611
635
  * Specifies whether to prevent user interaction with the image editor control.
612
636
  * A boolean that specifies whether to prevent the interaction in image editor control. The default value is false.
@@ -541,6 +541,17 @@ var ImageEditor = /** @class */ (function (_super) {
541
541
  }
542
542
  this.updateDropInfoContent(this.element.querySelector('.e-ie-drop-info'));
543
543
  break;
544
+ case 'imageSmoothingEnabled':
545
+ if (newProperties.imageSmoothingEnabled) {
546
+ this.imageSmoothingEnabled = true;
547
+ this.lowerContext.imageSmoothingQuality = 'high';
548
+ }
549
+ else {
550
+ this.imageSmoothingEnabled = false;
551
+ this.lowerContext.imageSmoothingQuality = 'low';
552
+ }
553
+ this.notify('draw', { prop: 'render-image', value: { isMouseWheel: false } });
554
+ break;
544
555
  }
545
556
  }
546
557
  };
@@ -4686,6 +4697,9 @@ var ImageEditor = /** @class */ (function (_super) {
4686
4697
  __decorate([
4687
4698
  Property()
4688
4699
  ], ImageEditor.prototype, "quickAccessToolbarTemplate", void 0);
4700
+ __decorate([
4701
+ Property(false)
4702
+ ], ImageEditor.prototype, "imageSmoothingEnabled", void 0);
4689
4703
  __decorate([
4690
4704
  Property(false)
4691
4705
  ], ImageEditor.prototype, "isReadOnly", void 0);
@@ -70,6 +70,7 @@ export declare class ToolbarModule {
70
70
  private renderCropBtn;
71
71
  private renderTransformBtn;
72
72
  private saveDialogPopup;
73
+ private updateSavePreviewImage;
73
74
  private saveDialogClosed;
74
75
  private onBeforeopen;
75
76
  private qualityBtnClickHandler;
@@ -1727,6 +1727,47 @@ var ToolbarModule = /** @class */ (function () {
1727
1727
  ]
1728
1728
  });
1729
1729
  dialog.appendTo('#' + id + '_saveDialog');
1730
+ this.updateSavePreviewImage();
1731
+ };
1732
+ ToolbarModule.prototype.updateSavePreviewImage = function () {
1733
+ var parent = this.parent;
1734
+ var id = parent.element.id;
1735
+ var elem = parent.element.querySelector('#' + id + '_saveDialog');
1736
+ if (Browser.isDevice || !elem) {
1737
+ return;
1738
+ }
1739
+ var dialogWidth = elem.offsetWidth;
1740
+ var dialogMaxHeight = parseInt(elem.style.maxHeight, 10);
1741
+ var headerHeight = elem.querySelector('.e-dlg-header-content').offsetHeight;
1742
+ var footerHeight = elem.querySelector('.e-footer-content').offsetHeight;
1743
+ var padding = parseInt(window.getComputedStyle(elem.querySelector('#' + id + '_saveDialog_dialog-content')).padding, 10);
1744
+ var imageSizeContent = 20; // Image size text container div height
1745
+ var canvasMaxWidth = dialogWidth * (35 / 100); // 35% of dialog's width
1746
+ var canvasMaxHeight = dialogMaxHeight - headerHeight - footerHeight - imageSizeContent - (padding * 2);
1747
+ var canvas = parent.element.querySelector('#' + id + '_imgPic');
1748
+ var width = canvas.width;
1749
+ var height = canvas.height;
1750
+ var widthScale = canvasMaxWidth / width;
1751
+ var heightScale = canvasMaxHeight / height;
1752
+ var cssMaxWidth = Math.min(width, canvasMaxWidth);
1753
+ var cssMaxHeight = Math.min(height, canvasMaxHeight);
1754
+ if (widthScale < 1 && widthScale < heightScale) {
1755
+ cssMaxWidth = width * widthScale;
1756
+ cssMaxHeight = height * widthScale;
1757
+ }
1758
+ else if (heightScale < 1 && heightScale < widthScale) {
1759
+ cssMaxWidth = width * heightScale;
1760
+ cssMaxHeight = height * heightScale;
1761
+ }
1762
+ var imageObj = { canvas: null };
1763
+ parent.notify('export', { prop: 'exportToCanvas', value: { object: imageObj } });
1764
+ var ctx = canvas.getContext('2d');
1765
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
1766
+ canvas.width = cssMaxWidth;
1767
+ canvas.height = cssMaxHeight;
1768
+ var tempCanvas = imageObj['canvas'];
1769
+ ctx.imageSmoothingQuality = 'medium';
1770
+ ctx.drawImage(tempCanvas, 0, 0, tempCanvas.width, tempCanvas.height, 0, 0, cssMaxWidth, cssMaxHeight);
1730
1771
  };
1731
1772
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
1732
1773
  ToolbarModule.prototype.saveDialogClosed = function (id) {
@@ -1827,6 +1868,7 @@ var ToolbarModule = /** @class */ (function () {
1827
1868
  _this.updateImageSize(isNullOrUndefined(_this.currentQuality) ? 1 : _this.currentQuality, obj['canvas'], _this.fileType);
1828
1869
  document.getElementById(id + '_' + _this.imageQuality).checked = true;
1829
1870
  }
1871
+ _this.updateSavePreviewImage();
1830
1872
  }
1831
1873
  });
1832
1874
  drpDownBtn_1.appendTo('#' + id + '_saveDropdownbtn');
@@ -1882,12 +1924,14 @@ var ToolbarModule = /** @class */ (function () {
1882
1924
  created: function () {
1883
1925
  _this.updateImageSize(_this.currentQuality, obj['canvas'], 'jpeg');
1884
1926
  qualitySliderValueSpan.innerHTML = (Math.round(_this.currentQuality * 100)).toString();
1927
+ _this.updateSavePreviewImage();
1885
1928
  },
1886
1929
  changed: function (args) {
1887
1930
  _this.currentQuality = args.value;
1888
1931
  qualitySliderValueSpan.innerHTML = (Math.round(_this.currentQuality * 100)).toString();
1889
1932
  parent.notify('export', { prop: 'setImageQuality', value: { value: args.value } });
1890
1933
  _this.updateImageSize(args.value, obj['canvas'], 'jpeg');
1934
+ _this.updateSavePreviewImage();
1891
1935
  }
1892
1936
  });
1893
1937
  sliderObj.appendTo('#' + id + '_qualitySlider');
@@ -1908,6 +1952,7 @@ var ToolbarModule = /** @class */ (function () {
1908
1952
  this.currentQuality = compressionValues[target.textContent];
1909
1953
  this.imageQuality = target.textContent.toLowerCase();
1910
1954
  this.updateImageSize(compressionValues[target.textContent], obj['canvas'], 'jpeg');
1955
+ this.updateSavePreviewImage();
1911
1956
  }
1912
1957
  };
1913
1958
  ToolbarModule.prototype.updateImageSize = function (quality, tempCanvas, fileType) {
@@ -1924,7 +1969,11 @@ var ToolbarModule = /** @class */ (function () {
1924
1969
  else {
1925
1970
  imageNameLabel = document.getElementById(id + '_imageNameLabel');
1926
1971
  }
1972
+ var imageSmoothingEnabled = parent.imageSmoothingEnabled;
1973
+ ctx.canvas.getContext('2d').imageSmoothingQuality = imageSmoothingEnabled ? 'high' : 'low';
1927
1974
  if (fileType.toLowerCase() === 'jpeg') {
1975
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
1976
+ ctx.drawImage(tempCanvas, 0, 0);
1928
1977
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
1929
1978
  tempCanvas.toBlob((function (blob) {
1930
1979
  fileSize = Math.floor(blob.size / 1024);
@@ -1940,20 +1989,12 @@ var ToolbarModule = /** @class */ (function () {
1940
1989
  if (Browser.isDevice) {
1941
1990
  canvas.style.display = 'none';
1942
1991
  }
1943
- else {
1944
- var compressedImage_1 = new Image();
1945
- compressedImage_1.src = URL.createObjectURL(blob);
1946
- // eslint-disable-next-line @typescript-eslint/tslint/config
1947
- compressedImage_1.onload = function () {
1948
- ctx.drawImage(compressedImage_1, 0, 0);
1949
- URL.revokeObjectURL(compressedImage_1.src);
1950
- };
1951
- }
1952
1992
  this.fileSize = fileSize;
1953
1993
  }).bind(this), 'image/jpeg', quality);
1954
1994
  }
1955
1995
  else if (!isNullOrUndefined(fileType) && (fileType.toLowerCase() === 'png' || fileType.toLowerCase() === 'webp')) {
1956
1996
  var type = 'image/' + fileType.toLowerCase();
1997
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
1957
1998
  ctx.drawImage(tempCanvas, 0, 0);
1958
1999
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
1959
2000
  tempCanvas.toBlob((function (blob) {
@@ -1974,6 +2015,7 @@ var ToolbarModule = /** @class */ (function () {
1974
2015
  }).bind(this), type, 1);
1975
2016
  }
1976
2017
  else if (!isNullOrUndefined(fileType) && fileType.toLowerCase() === 'svg') {
2018
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
1977
2019
  ctx.drawImage(tempCanvas, 0, 0);
1978
2020
  var svgDataUrl = tempCanvas.toDataURL('image/svg+xml');
1979
2021
  var base64Data = svgDataUrl.split(',')[1];
@@ -1999,6 +2041,7 @@ var ToolbarModule = /** @class */ (function () {
1999
2041
  canvas.style.display = 'none';
2000
2042
  }
2001
2043
  else {
2044
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
2002
2045
  ctx.drawImage(tempCanvas, 0, 0);
2003
2046
  if (this.initialSize > 1000) {
2004
2047
  var megabytes = this.initialSize / 1048576;
@@ -4669,6 +4712,7 @@ var ToolbarModule = /** @class */ (function () {
4669
4712
  if (filter) {
4670
4713
  var ctx = filter.getContext('2d');
4671
4714
  ctx = filter.getContext('2d');
4715
+ ctx.imageSmoothingQuality = parent.imageSmoothingEnabled ? 'high' : 'low';
4672
4716
  filter.style.width = '100px';
4673
4717
  filter.style.height = '100px';
4674
4718
  parent.notify('filter', { prop: 'updateAdj', value: { type: type, value: null, isPreview: true, ctx: ctx } });
@@ -624,8 +624,8 @@
624
624
  }
625
625
 
626
626
  .e-ie-img-dlg-canvas {
627
- width: 100%;
628
- height: 100%;
627
+ width: auto;
628
+ height: auto;
629
629
  }
630
630
 
631
631
  .e-ie-img-size {
package/styles/bds.css CHANGED
@@ -624,8 +624,8 @@
624
624
  }
625
625
 
626
626
  .e-ie-img-dlg-canvas {
627
- width: 100%;
628
- height: 100%;
627
+ width: auto;
628
+ height: auto;
629
629
  }
630
630
 
631
631
  .e-ie-img-size {
@@ -515,8 +515,8 @@
515
515
  }
516
516
 
517
517
  .e-ie-img-dlg-canvas {
518
- width: 100%;
519
- height: 100%;
518
+ width: auto;
519
+ height: auto;
520
520
  }
521
521
 
522
522
  .e-ie-img-size {
@@ -515,8 +515,8 @@
515
515
  }
516
516
 
517
517
  .e-ie-img-dlg-canvas {
518
- width: 100%;
519
- height: 100%;
518
+ width: auto;
519
+ height: auto;
520
520
  }
521
521
 
522
522
  .e-ie-img-size {
@@ -515,8 +515,8 @@
515
515
  }
516
516
 
517
517
  .e-ie-img-dlg-canvas {
518
- width: 100%;
519
- height: 100%;
518
+ width: auto;
519
+ height: auto;
520
520
  }
521
521
 
522
522
  .e-ie-img-size {
@@ -515,8 +515,8 @@
515
515
  }
516
516
 
517
517
  .e-ie-img-dlg-canvas {
518
- width: 100%;
519
- height: 100%;
518
+ width: auto;
519
+ height: auto;
520
520
  }
521
521
 
522
522
  .e-ie-img-size {
@@ -514,8 +514,8 @@
514
514
  }
515
515
 
516
516
  .e-ie-img-dlg-canvas {
517
- width: 100%;
518
- height: 100%;
517
+ width: auto;
518
+ height: auto;
519
519
  }
520
520
 
521
521
  .e-ie-img-size {
@@ -514,8 +514,8 @@
514
514
  }
515
515
 
516
516
  .e-ie-img-dlg-canvas {
517
- width: 100%;
518
- height: 100%;
517
+ width: auto;
518
+ height: auto;
519
519
  }
520
520
 
521
521
  .e-ie-img-size {
@@ -520,8 +520,8 @@
520
520
  }
521
521
 
522
522
  .e-ie-img-dlg-canvas {
523
- width: 100%;
524
- height: 100%;
523
+ width: auto;
524
+ height: auto;
525
525
  }
526
526
 
527
527
  .e-ie-img-size {
@@ -520,8 +520,8 @@
520
520
  }
521
521
 
522
522
  .e-ie-img-dlg-canvas {
523
- width: 100%;
524
- height: 100%;
523
+ width: auto;
524
+ height: auto;
525
525
  }
526
526
 
527
527
  .e-ie-img-size {
@@ -520,8 +520,8 @@
520
520
  }
521
521
 
522
522
  .e-ie-img-dlg-canvas {
523
- width: 100%;
524
- height: 100%;
523
+ width: auto;
524
+ height: auto;
525
525
  }
526
526
 
527
527
  .e-ie-img-size {
@@ -524,8 +524,8 @@
524
524
  }
525
525
 
526
526
  .e-ie-img-dlg-canvas {
527
- width: 100%;
528
- height: 100%;
527
+ width: auto;
528
+ height: auto;
529
529
  }
530
530
 
531
531
  .e-ie-img-size {
@@ -524,8 +524,8 @@
524
524
  }
525
525
 
526
526
  .e-ie-img-dlg-canvas {
527
- width: 100%;
528
- height: 100%;
527
+ width: auto;
528
+ height: auto;
529
529
  }
530
530
 
531
531
  .e-ie-img-size {
@@ -520,8 +520,8 @@
520
520
  }
521
521
 
522
522
  .e-ie-img-dlg-canvas {
523
- width: 100%;
524
- height: 100%;
523
+ width: auto;
524
+ height: auto;
525
525
  }
526
526
 
527
527
  .e-ie-img-size {
@@ -515,8 +515,8 @@
515
515
  }
516
516
 
517
517
  .e-ie-img-dlg-canvas {
518
- width: 100%;
519
- height: 100%;
518
+ width: auto;
519
+ height: auto;
520
520
  }
521
521
 
522
522
  .e-ie-img-size {
@@ -515,8 +515,8 @@
515
515
  }
516
516
 
517
517
  .e-ie-img-dlg-canvas {
518
- width: 100%;
519
- height: 100%;
518
+ width: auto;
519
+ height: auto;
520
520
  }
521
521
 
522
522
  .e-ie-img-size {
@@ -515,8 +515,8 @@
515
515
  }
516
516
 
517
517
  .e-ie-img-dlg-canvas {
518
- width: 100%;
519
- height: 100%;
518
+ width: auto;
519
+ height: auto;
520
520
  }
521
521
 
522
522
  .e-ie-img-size {
package/styles/fabric.css CHANGED
@@ -515,8 +515,8 @@
515
515
  }
516
516
 
517
517
  .e-ie-img-dlg-canvas {
518
- width: 100%;
519
- height: 100%;
518
+ width: auto;
519
+ height: auto;
520
520
  }
521
521
 
522
522
  .e-ie-img-size {
@@ -520,8 +520,8 @@
520
520
  }
521
521
 
522
522
  .e-ie-img-dlg-canvas {
523
- width: 100%;
524
- height: 100%;
523
+ width: auto;
524
+ height: auto;
525
525
  }
526
526
 
527
527
  .e-ie-img-size {
@@ -520,8 +520,8 @@
520
520
  }
521
521
 
522
522
  .e-ie-img-dlg-canvas {
523
- width: 100%;
524
- height: 100%;
523
+ width: auto;
524
+ height: auto;
525
525
  }
526
526
 
527
527
  .e-ie-img-size {
@@ -520,8 +520,8 @@
520
520
  }
521
521
 
522
522
  .e-ie-img-dlg-canvas {
523
- width: 100%;
524
- height: 100%;
523
+ width: auto;
524
+ height: auto;
525
525
  }
526
526
 
527
527
  .e-ie-img-size {
package/styles/fluent.css CHANGED
@@ -520,8 +520,8 @@
520
520
  }
521
521
 
522
522
  .e-ie-img-dlg-canvas {
523
- width: 100%;
524
- height: 100%;
523
+ width: auto;
524
+ height: auto;
525
525
  }
526
526
 
527
527
  .e-ie-img-size {
@@ -538,8 +538,8 @@
538
538
  }
539
539
 
540
540
  .e-ie-img-dlg-canvas {
541
- width: 100%;
542
- height: 100%;
541
+ width: auto;
542
+ height: auto;
543
543
  }
544
544
 
545
545
  .e-ie-img-size {
@@ -538,8 +538,8 @@
538
538
  }
539
539
 
540
540
  .e-ie-img-dlg-canvas {
541
- width: 100%;
542
- height: 100%;
541
+ width: auto;
542
+ height: auto;
543
543
  }
544
544
 
545
545
  .e-ie-img-size {
@@ -514,8 +514,8 @@
514
514
  }
515
515
 
516
516
  .e-ie-img-dlg-canvas {
517
- width: 100%;
518
- height: 100%;
517
+ width: auto;
518
+ height: auto;
519
519
  }
520
520
 
521
521
  .e-ie-img-size {
@@ -514,8 +514,8 @@
514
514
  }
515
515
 
516
516
  .e-ie-img-dlg-canvas {
517
- width: 100%;
518
- height: 100%;
517
+ width: auto;
518
+ height: auto;
519
519
  }
520
520
 
521
521
  .e-ie-img-size {
@@ -518,8 +518,8 @@
518
518
  }
519
519
 
520
520
  .e-ie-img-dlg-canvas {
521
- width: 100%;
522
- height: 100%;
521
+ width: auto;
522
+ height: auto;
523
523
  }
524
524
 
525
525
  .e-ie-img-size {
@@ -518,8 +518,8 @@
518
518
  }
519
519
 
520
520
  .e-ie-img-dlg-canvas {
521
- width: 100%;
522
- height: 100%;
521
+ width: auto;
522
+ height: auto;
523
523
  }
524
524
 
525
525
  .e-ie-img-size {