@syncfusion/ej2-image-editor 25.2.3 → 25.2.4

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 : 25.2.3
3
+ * version : 25.2.4
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@25.1.42",
3
+ "_id": "@syncfusion/ej2-image-editor@25.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-epbvTL+Fhixf+ZZtvUHaOvYBR9yf4yfLJaSpzGF0avYO9WpHsLNdfTWRim2m/IGkX5yJ/UEquqX61Liz1s4wNQ==",
5
+ "_integrity": "sha512-f6CztZG4/zvCCgr6Y2my2p1cm/WFVbagIfbAceQ/h1SuX+etkcG7QIHtWfoRW1klFXMsd8FqcanusXdle53UZQ==",
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-25.1.42.tgz",
27
- "_shasum": "f9ee82891233d0da6e48be3793265195ee37a487",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-25.2.3.tgz",
27
+ "_shasum": "f736e418255c725487fb29aabd36c2dfccd05ea7",
28
28
  "_spec": "@syncfusion/ej2-image-editor@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
30
30
  "author": {
@@ -33,11 +33,11 @@
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
35
  "@syncfusion/ej2-base": "~25.2.3",
36
- "@syncfusion/ej2-buttons": "~25.2.3",
36
+ "@syncfusion/ej2-buttons": "~25.2.4",
37
37
  "@syncfusion/ej2-inputs": "~25.2.3",
38
- "@syncfusion/ej2-navigations": "~25.2.3",
39
- "@syncfusion/ej2-popups": "~25.2.3",
40
- "@syncfusion/ej2-splitbuttons": "~25.2.3"
38
+ "@syncfusion/ej2-navigations": "~25.2.4",
39
+ "@syncfusion/ej2-popups": "~25.2.4",
40
+ "@syncfusion/ej2-splitbuttons": "~25.2.4"
41
41
  },
42
42
  "deprecated": false,
43
43
  "description": "Essential JS 2 ImageEditor",
@@ -67,7 +67,7 @@
67
67
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
68
68
  },
69
69
  "typings": "index.d.ts",
70
- "version": "25.2.3",
70
+ "version": "25.2.4",
71
71
  "sideEffects": false,
72
72
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
73
73
  }
@@ -138,13 +138,14 @@ var Export = /** @class */ (function () {
138
138
  showSpinner(parent.element);
139
139
  parent.element.style.opacity = '0.5';
140
140
  var tempCanvas = this.exportToCanvas();
141
+ var imagetype = (type === 'jpeg') ? 'image/jpeg' : 'image/png';
141
142
  // eslint-disable-next-line @typescript-eslint/tslint/config
142
143
  tempCanvas.toBlob(function (blob) {
143
144
  var blobUrl = URL.createObjectURL(blob);
144
145
  proxy.downloadImg(blobUrl, fileName + '.' + type);
145
146
  hideSpinner(parent.element);
146
147
  parent.element.style.opacity = '1';
147
- }, 'image/png');
148
+ }, imagetype);
148
149
  };
149
150
  Export.prototype.exportToCanvas = function (object) {
150
151
  var parent = this.parent;