@syncfusion/ej2-image-editor 27.1.51 → 27.1.52

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 27.1.51
3
+ * version : 27.1.52
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-image-editor@*",
3
- "_id": "@syncfusion/ej2-image-editor@27.1.50",
3
+ "_id": "@syncfusion/ej2-image-editor@27.1.51",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-jbOqBMJzNwFx5r4c2P3xYh1n3aW2br4yKOwC8alxYLnRfDY6d5OTbWY62XEAdW30IqaQHH635RpdhZUkHVtGhg==",
5
+ "_integrity": "sha512-D2co3Roz/iOn3T1Ef3sXGpOukufgf2f3UqrUr1mYn4nm42eVAZ/RutRLdRXFBGMQa9NZ3h5p8VwCWpV43HXYGg==",
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-27.1.50.tgz",
27
- "_shasum": "f84391b62e7a8c4e10937b6603abaeb16e3a66d1",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-27.1.51.tgz",
27
+ "_shasum": "352f528238cdecb1dccbadc4df5f2dd8ccd50f9a",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
30
30
  "author": {
@@ -32,11 +32,11 @@
32
32
  },
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
- "@syncfusion/ej2-base": "~27.1.50",
35
+ "@syncfusion/ej2-base": "~27.1.52",
36
36
  "@syncfusion/ej2-buttons": "~27.1.51",
37
- "@syncfusion/ej2-dropdowns": "~27.1.51",
37
+ "@syncfusion/ej2-dropdowns": "~27.1.52",
38
38
  "@syncfusion/ej2-inputs": "~27.1.50",
39
- "@syncfusion/ej2-navigations": "~27.1.51",
39
+ "@syncfusion/ej2-navigations": "~27.1.52",
40
40
  "@syncfusion/ej2-popups": "~27.1.50",
41
41
  "@syncfusion/ej2-splitbuttons": "~27.1.50"
42
42
  },
@@ -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": "27.1.51",
71
+ "version": "27.1.52",
72
72
  "sideEffects": false,
73
73
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
74
74
  }
@@ -2108,12 +2108,7 @@ var Draw = /** @class */ (function () {
2108
2108
  var coll = actObj.rotateFlipColl[i];
2109
2109
  tempColl.push(coll);
2110
2110
  if (typeof (coll) === 'number') {
2111
- if (actObj.shapeDegree === 0) {
2112
- tempDegree = coll;
2113
- }
2114
- else {
2115
- tempDegree = coll - actObj.shapeDegree;
2116
- }
2111
+ tempDegree = coll;
2117
2112
  if (tempDegree === -450) {
2118
2113
  tempDegree = -90;
2119
2114
  }
@@ -2213,12 +2208,7 @@ var Draw = /** @class */ (function () {
2213
2208
  var coll = actObj.rotateFlipColl[i];
2214
2209
  tempColl.push(coll);
2215
2210
  if (typeof (coll) === 'number') {
2216
- if (actObj.shapeDegree === 0) {
2217
- tempDegree = coll;
2218
- }
2219
- else {
2220
- tempDegree = coll - actObj.shapeDegree;
2221
- }
2211
+ tempDegree = coll;
2222
2212
  if (tempDegree === -450) {
2223
2213
  tempDegree = -90;
2224
2214
  }
@@ -657,7 +657,7 @@ var Filter = /** @class */ (function () {
657
657
  Filter.prototype.parseFilterString = function (filterString) {
658
658
  /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
659
659
  var filterArray = [];
660
- if (filterString !== 'none') {
660
+ if (filterString && filterString !== 'none') {
661
661
  filterArray = filterString.split(' ').map(function (filter) {
662
662
  var _a = filter.match(/([a-z-]+)\(([^)]+)\)/).slice(1, 3), name = _a[0], value = _a[1];
663
663
  return { filter: name, value: value };
@@ -3265,6 +3265,7 @@ var Selection = /** @class */ (function () {
3265
3265
  this.triggerShapeChange(shapeResizingArgs, shapeMovingArgs, 'mouse-down');
3266
3266
  parent.activeObj.activePoint = activePoint;
3267
3267
  parent.isShapeDrawing = true;
3268
+ this.tempActiveObj = extend({}, parent.activeObj, {}, true);
3268
3269
  return;
3269
3270
  }
3270
3271
  parent.notify('draw', { prop: 'resetFrameZoom', onPropertyChange: false, value: { isOk: true } });
@@ -1625,7 +1625,7 @@ var ToolbarModule = /** @class */ (function () {
1625
1625
  qualityOptionDiv.appendChild(parent.createElement('button', { id: id + '_qualitybuttonIcon', className: 'e-ie-img-icon-button', attrs: { type: 'button' } }));
1626
1626
  qualityNameDiv.appendChild(qualityOptionDiv);
1627
1627
  if (Browser.isDevice) {
1628
- qualityNameDiv.appendChild(parent.createElement('span', {
1628
+ dialogRightContent.appendChild(parent.createElement('span', {
1629
1629
  id: id + '_qualitySize', className: 'e-ie-img-quality-size'
1630
1630
  }));
1631
1631
  }
@@ -1885,48 +1885,44 @@ var ToolbarModule = /** @class */ (function () {
1885
1885
  }).bind(this), 'image/jpeg', quality);
1886
1886
  }
1887
1887
  else if (!isNullOrUndefined(fileType) && fileType.toLowerCase() === 'png') {
1888
- if (Browser.isDevice) {
1889
- canvas.style.display = 'none';
1888
+ ctx.drawImage(tempCanvas, 0, 0);
1889
+ tempCanvas.toBlob((function (blob) {
1890
+ fileSize = Math.floor(blob.size / 1024);
1891
+ if (fileSize > 1000) {
1892
+ var megabytes = fileSize / 1024;
1893
+ imageNameLabel.innerHTML = this.l10n.getConstant('ImageSize') + ': ' + megabytes.toFixed(2) + ' MB';
1894
+ fileSize = +megabytes.toFixed(2);
1895
+ }
1896
+ else {
1897
+ imageNameLabel.innerHTML = this.l10n.getConstant('ImageSize') + ': ' + fileSize.toFixed(2) + ' KB';
1898
+ fileSize = +fileSize.toFixed(2);
1899
+ }
1900
+ if (Browser.isDevice) {
1901
+ canvas.style.display = 'none';
1902
+ }
1903
+ this.fileSize = fileSize;
1904
+ }).bind(this), 'image/png', 1);
1905
+ }
1906
+ else if (!isNullOrUndefined(fileType) && fileType.toLowerCase() === 'svg') {
1907
+ ctx.drawImage(tempCanvas, 0, 0);
1908
+ var svgDataUrl = tempCanvas.toDataURL('image/svg+xml');
1909
+ var base64Data = svgDataUrl.split(',')[1];
1910
+ var binaryStringLength = base64Data.length;
1911
+ var rawByteSize = binaryStringLength;
1912
+ var fileSize_1 = Math.floor(rawByteSize / 1024); // KB
1913
+ if (fileSize_1 > 1000) {
1914
+ var megabytes = fileSize_1 / 1024; // Convert to MB
1915
+ imageNameLabel.innerHTML = this.l10n.getConstant('ImageSize') + ': ' + megabytes.toFixed(2) + ' MB';
1916
+ fileSize_1 = +megabytes.toFixed(2);
1890
1917
  }
1891
1918
  else {
1892
- ctx.drawImage(tempCanvas, 0, 0);
1893
- tempCanvas.toBlob((function (blob) {
1894
- fileSize = Math.floor(blob.size / 1024);
1895
- if (fileSize > 1000) {
1896
- var megabytes = fileSize / 1024;
1897
- imageNameLabel.innerHTML = this.l10n.getConstant('ImageSize') + ': ' + megabytes.toFixed(2) + ' MB';
1898
- fileSize = +megabytes.toFixed(2);
1899
- }
1900
- else {
1901
- imageNameLabel.innerHTML = this.l10n.getConstant('ImageSize') + ': ' + fileSize.toFixed(2) + ' KB';
1902
- fileSize = +fileSize.toFixed(2);
1903
- }
1904
- this.fileSize = fileSize;
1905
- }).bind(this), 'image/png', 1);
1919
+ imageNameLabel.innerHTML = this.l10n.getConstant('ImageSize') + ': ' + fileSize_1.toFixed(2) + ' KB';
1920
+ fileSize_1 = +fileSize_1.toFixed(2);
1906
1921
  }
1907
- }
1908
- else if (!isNullOrUndefined(fileType) && fileType.toLowerCase() === 'svg') {
1909
1922
  if (Browser.isDevice) {
1910
1923
  canvas.style.display = 'none';
1911
1924
  }
1912
- else {
1913
- ctx.drawImage(tempCanvas, 0, 0);
1914
- var svgDataUrl = tempCanvas.toDataURL('image/svg+xml');
1915
- var base64Data = svgDataUrl.split(',')[1];
1916
- var binaryStringLength = base64Data.length;
1917
- var rawByteSize = binaryStringLength;
1918
- var fileSize_1 = Math.floor(rawByteSize / 1024); // KB
1919
- if (fileSize_1 > 1000) {
1920
- var megabytes = fileSize_1 / 1024; // Convert to MB
1921
- imageNameLabel.innerHTML = this.l10n.getConstant('ImageSize') + ': ' + megabytes.toFixed(2) + ' MB';
1922
- fileSize_1 = +megabytes.toFixed(2);
1923
- }
1924
- else {
1925
- imageNameLabel.innerHTML = this.l10n.getConstant('ImageSize') + ': ' + fileSize_1.toFixed(2) + ' KB';
1926
- fileSize_1 = +fileSize_1.toFixed(2);
1927
- }
1928
- }
1929
- this.fileSize = fileSize;
1925
+ this.fileSize = fileSize_1;
1930
1926
  }
1931
1927
  else {
1932
1928
  if (Browser.isDevice) {