@syncfusion/ej2-image-editor 25.1.42 → 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.
- package/CHANGELOG.md +22 -0
- package/dist/ej2-image-editor.umd.min.js +2 -2
- package/dist/ej2-image-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-image-editor.es2015.js +9 -8
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +9 -8
- package/dist/es6/ej2-image-editor.es5.js.map +1 -1
- package/dist/global/ej2-image-editor.min.js +2 -2
- package/dist/global/ej2-image-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +11 -11
- package/src/image-editor/action/export.js +2 -1
- package/src/image-editor/base/image-editor.js +1 -1
- package/src/image-editor/renderer/toolbar.js +6 -6
- package/styles/bootstrap-dark.css +2 -2
- package/styles/bootstrap.css +2 -2
- package/styles/bootstrap4.css +2 -2
- package/styles/bootstrap5-dark.css +2 -2
- package/styles/bootstrap5.css +2 -2
- package/styles/fabric-dark.css +2 -2
- package/styles/fabric.css +2 -2
- package/styles/fluent-dark.css +2 -2
- package/styles/fluent.css +2 -2
- package/styles/highcontrast-light.css +2 -2
- package/styles/highcontrast.css +2 -2
- package/styles/image-editor/_layout.scss +2 -2
- package/styles/image-editor/bootstrap-dark.css +2 -2
- package/styles/image-editor/bootstrap.css +2 -2
- package/styles/image-editor/bootstrap4.css +2 -2
- package/styles/image-editor/bootstrap5-dark.css +2 -2
- package/styles/image-editor/bootstrap5.css +2 -2
- package/styles/image-editor/fabric-dark.css +2 -2
- package/styles/image-editor/fabric.css +2 -2
- package/styles/image-editor/fluent-dark.css +2 -2
- package/styles/image-editor/fluent.css +2 -2
- package/styles/image-editor/highcontrast-light.css +2 -2
- package/styles/image-editor/highcontrast.css +2 -2
- package/styles/image-editor/material-dark.css +2 -2
- package/styles/image-editor/material.css +2 -2
- package/styles/image-editor/material3-dark.css +2 -2
- package/styles/image-editor/material3.css +2 -2
- package/styles/image-editor/tailwind-dark.css +2 -2
- package/styles/image-editor/tailwind.css +2 -2
- package/styles/material-dark.css +2 -2
- package/styles/material.css +2 -2
- package/styles/material3-dark.css +2 -2
- package/styles/material3.css +2 -2
- package/styles/tailwind-dark.css +2 -2
- package/styles/tailwind.css +2 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 25.
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-image-editor@25.2.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
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.
|
|
27
|
-
"_shasum": "
|
|
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": {
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@syncfusion/ej2-base": "~25.
|
|
36
|
-
"@syncfusion/ej2-buttons": "~25.
|
|
37
|
-
"@syncfusion/ej2-inputs": "~25.
|
|
38
|
-
"@syncfusion/ej2-navigations": "~25.
|
|
39
|
-
"@syncfusion/ej2-popups": "~25.
|
|
40
|
-
"@syncfusion/ej2-splitbuttons": "~25.
|
|
35
|
+
"@syncfusion/ej2-base": "~25.2.3",
|
|
36
|
+
"@syncfusion/ej2-buttons": "~25.2.4",
|
|
37
|
+
"@syncfusion/ej2-inputs": "~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.
|
|
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
|
-
},
|
|
148
|
+
}, imagetype);
|
|
148
149
|
};
|
|
149
150
|
Export.prototype.exportToCanvas = function (object) {
|
|
150
151
|
var parent = this.parent;
|
|
@@ -475,10 +475,10 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
475
475
|
if (!this.element.getAttribute('class')) {
|
|
476
476
|
this.element.removeAttribute('class');
|
|
477
477
|
}
|
|
478
|
+
this.unwireEvent();
|
|
478
479
|
this.notify('toolbar', { prop: 'destroySubComponents', onPropertyChange: false });
|
|
479
480
|
this.notify('destroyed', null);
|
|
480
481
|
_super.prototype.destroy.call(this);
|
|
481
|
-
this.unwireEvent();
|
|
482
482
|
this.element.innerHTML = '';
|
|
483
483
|
};
|
|
484
484
|
ImageEditor.prototype.initialize = function () {
|
|
@@ -641,27 +641,27 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
641
641
|
var id = parent.element.id;
|
|
642
642
|
var toolbarItems = [];
|
|
643
643
|
if (isFrame) {
|
|
644
|
-
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('None') > -1)) {
|
|
644
|
+
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('None') > -1) || parent.toolbar.indexOf('Frame') > -1) {
|
|
645
645
|
toolbarItems.push({ id: id + '_none', prefixIcon: 'e-icons e-frame-none', cssClass: 'top-icon e-frame-none',
|
|
646
646
|
tooltipText: this.l10n.getConstant('None'), align: 'Center' });
|
|
647
647
|
}
|
|
648
|
-
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Mat') > -1)) {
|
|
648
|
+
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Mat') > -1) || parent.toolbar.indexOf('Frame') > -1) {
|
|
649
649
|
toolbarItems.push({ id: id + '_mat', prefixIcon: 'e-icons e-frame-mat', cssClass: 'top-icon e-frame-mat',
|
|
650
650
|
tooltipText: this.l10n.getConstant('Mat'), align: 'Center' });
|
|
651
651
|
}
|
|
652
|
-
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Bevel') > -1)) {
|
|
652
|
+
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Bevel') > -1) || parent.toolbar.indexOf('Frame') > -1) {
|
|
653
653
|
toolbarItems.push({ id: id + '_bevel', prefixIcon: 'e-icons e-frame-bevel', cssClass: 'top-icon e-frame-bevel',
|
|
654
654
|
tooltipText: this.l10n.getConstant('Bevel'), align: 'Center' });
|
|
655
655
|
}
|
|
656
|
-
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Line') > -1)) {
|
|
656
|
+
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Line') > -1) || parent.toolbar.indexOf('Frame') > -1) {
|
|
657
657
|
toolbarItems.push({ id: id + '_line', prefixIcon: 'e-icons e-frame-line', cssClass: 'top-icon e-frame-line',
|
|
658
658
|
tooltipText: this.l10n.getConstant('Line'), align: 'Center' });
|
|
659
659
|
}
|
|
660
|
-
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Inset') > -1)) {
|
|
660
|
+
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Inset') > -1) || parent.toolbar.indexOf('Frame') > -1) {
|
|
661
661
|
toolbarItems.push({ id: id + '_inset', prefixIcon: 'e-icons e-frame-inset', cssClass: 'top-icon e-frame-inset',
|
|
662
662
|
tooltipText: this.l10n.getConstant('Inset'), align: 'Center' });
|
|
663
663
|
}
|
|
664
|
-
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Hook') > -1)) {
|
|
664
|
+
if (isNullOrUndefined(parent.toolbar) || (!isNullOrUndefined(parent.toolbar) && parent.toolbar.indexOf('Hook') > -1) || parent.toolbar.indexOf('Frame') > -1) {
|
|
665
665
|
toolbarItems.push({ id: id + '_hook', prefixIcon: 'e-icons e-frame-hook', cssClass: 'top-icon e-frame-hook',
|
|
666
666
|
tooltipText: this.l10n.getConstant('Hook'), align: 'Center' });
|
|
667
667
|
}
|
package/styles/bootstrap.css
CHANGED
package/styles/bootstrap4.css
CHANGED
package/styles/bootstrap5.css
CHANGED
package/styles/fabric-dark.css
CHANGED
package/styles/fabric.css
CHANGED
package/styles/fluent-dark.css
CHANGED
package/styles/fluent.css
CHANGED
package/styles/highcontrast.css
CHANGED
package/styles/material-dark.css
CHANGED
package/styles/material.css
CHANGED
package/styles/material3.css
CHANGED
package/styles/tailwind-dark.css
CHANGED