@syncfusion/ej2-image-editor 25.1.38 → 25.1.40
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 +17 -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 +10 -4
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +10 -4
- 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 +9 -9
- package/src/image-editor/action/shape.js +1 -0
- package/src/image-editor/action/transform.js +3 -0
- package/src/image-editor/base/image-editor.js +4 -3
- package/src/image-editor/renderer/toolbar.js +2 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 25.1.
|
|
3
|
+
* version : 25.1.40
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-image-editor@25.1.39",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-DLjSgamnLghon4x6IjnuAK7fITD1/EUXPLP9mCO8zui1ITW0M99SuUkr+l6ohy/pP8wuPM85bdHcEj+Bn4x9Qw==",
|
|
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.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-25.1.39.tgz",
|
|
27
|
+
"_shasum": "41e05c1978cabd06b28176b3f3d0f71f68b16fe3",
|
|
28
28
|
"_spec": "@syncfusion/ej2-image-editor@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@syncfusion/ej2-base": "~25.1.35",
|
|
36
|
-
"@syncfusion/ej2-buttons": "~25.1.
|
|
37
|
-
"@syncfusion/ej2-inputs": "~25.1.
|
|
38
|
-
"@syncfusion/ej2-navigations": "~25.1.
|
|
39
|
-
"@syncfusion/ej2-popups": "~25.1.
|
|
36
|
+
"@syncfusion/ej2-buttons": "~25.1.39",
|
|
37
|
+
"@syncfusion/ej2-inputs": "~25.1.40",
|
|
38
|
+
"@syncfusion/ej2-navigations": "~25.1.40",
|
|
39
|
+
"@syncfusion/ej2-popups": "~25.1.39",
|
|
40
40
|
"@syncfusion/ej2-splitbuttons": "~25.1.38"
|
|
41
41
|
},
|
|
42
42
|
"deprecated": false,
|
|
@@ -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.1.
|
|
70
|
+
"version": "25.1.40",
|
|
71
71
|
"sideEffects": false,
|
|
72
72
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
73
73
|
}
|
|
@@ -2132,6 +2132,7 @@ var Shape = /** @class */ (function () {
|
|
|
2132
2132
|
var shapeChangingArgs = { cancel: false, action: 'insert', previousShapeSettings: shapeSettings,
|
|
2133
2133
|
currentShapeSettings: shapeSettings };
|
|
2134
2134
|
parent.trigger('shapeChanging', shapeChangingArgs);
|
|
2135
|
+
isSelect = isSelect ? isSelect : isSelected;
|
|
2135
2136
|
this.drawShapeImageEvent(shapeChangingArgs, isSelect);
|
|
2136
2137
|
if (parent.isPublicMethod && !isSelected) {
|
|
2137
2138
|
parent.notify('undo-redo', { prop: 'updateUndoRedo', onPropertyChange: false });
|
|
@@ -1467,6 +1467,9 @@ var Transform = /** @class */ (function () {
|
|
|
1467
1467
|
if (x || y) {
|
|
1468
1468
|
x = x ? x : 0;
|
|
1469
1469
|
y = y ? y : 0;
|
|
1470
|
+
if (isNullOrUndefined(this.panMove)) {
|
|
1471
|
+
this.panMove = { x: x, y: y };
|
|
1472
|
+
}
|
|
1470
1473
|
if (isNullOrUndefined(this.tempPanMove)) {
|
|
1471
1474
|
this.tempPanMove = { x: this.panMove.x, y: this.panMove.y };
|
|
1472
1475
|
}
|
|
@@ -575,7 +575,7 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
575
575
|
var content = '';
|
|
576
576
|
this.element.querySelector('#' + this.element.id + '_dialog').style.display = 'block';
|
|
577
577
|
var headerObj;
|
|
578
|
-
var okObj = { key: '
|
|
578
|
+
var okObj = { key: 'DlgOK' };
|
|
579
579
|
this.notify('toolbar', { prop: 'getLocaleText', onPropertyChange: false, value: { obj: okObj } });
|
|
580
580
|
if (type === 'multi-select-image') {
|
|
581
581
|
headerObj = { key: 'ImageErrorDialogHeader' };
|
|
@@ -604,7 +604,7 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
604
604
|
close: this.dlgCloseBtnClick.bind(this),
|
|
605
605
|
buttons: [
|
|
606
606
|
{ click: this.dlgCloseBtnClick.bind(this),
|
|
607
|
-
buttonModel: { content: okObj['value']
|
|
607
|
+
buttonModel: { content: okObj['value'] }
|
|
608
608
|
}
|
|
609
609
|
]
|
|
610
610
|
});
|
|
@@ -2121,7 +2121,7 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
2121
2121
|
this.notify('toolbar', { prop: 'destroy-qa-toolbar' });
|
|
2122
2122
|
this.notify('undo-redo', { prop: 'updateCurrUrc', value: { type: 'ok' } });
|
|
2123
2123
|
}
|
|
2124
|
-
else if ((this.activeObj.activePoint.width !== 0
|
|
2124
|
+
else if ((this.activeObj.activePoint.width !== 0 || this.activeObj.activePoint.height !== 0) ||
|
|
2125
2125
|
(this.activeObj.shape === 'path' && this.activeObj.pointColl.length > 0)) {
|
|
2126
2126
|
if (this.activeObj.shape === 'image') {
|
|
2127
2127
|
this.notify('draw', { prop: 'setImageApply', onPropertyChange: false, value: { bool: true } });
|
|
@@ -2282,6 +2282,7 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
2282
2282
|
* An string which returns the SelectionType.
|
|
2283
2283
|
*/
|
|
2284
2284
|
ImageEditor.prototype.getSelectionType = function (type) {
|
|
2285
|
+
type = type === 'crop-custom' ? 'CropCustom' : type;
|
|
2285
2286
|
var typeToSelectionType = { 'CropCustom': 'Custom', 'CropSquare': 'Square', 'CropCircle': 'Circle',
|
|
2286
2287
|
'Crop3:2': '3:2', 'Crop4:3': '4:3', 'Crop5:4': '5:4', 'Crop7:5': '7:5', 'Crop16:9': '16:9',
|
|
2287
2288
|
'Crop2:3': '2:3', 'Crop3:4': '3:4', 'Crop4:5': '4:5', 'Crop5:7': '5:7', 'Crop9:16': '9:16' };
|
|
@@ -167,13 +167,14 @@ var ToolbarModule = /** @class */ (function () {
|
|
|
167
167
|
ConfirmDialogHeader: 'Confirm Save Changes',
|
|
168
168
|
ConfirmDialogContent: 'Do you want to save the changes you made to the image?',
|
|
169
169
|
AlertDialogHeader: 'Unsupported file',
|
|
170
|
-
AlertDialogContent: 'The
|
|
170
|
+
AlertDialogContent: 'The selected file is unsupported.',
|
|
171
171
|
Yes: 'Yes',
|
|
172
172
|
No: 'No',
|
|
173
173
|
ImageErrorDialogHeader: 'Image Selection Error',
|
|
174
174
|
ImageErrorDialogContent: 'Please select only one image to open.',
|
|
175
175
|
Straighten: 'Straighten',
|
|
176
176
|
NoOutline: 'No outline',
|
|
177
|
+
DlgOK: 'OK'
|
|
177
178
|
};
|
|
178
179
|
this.l10n = new L10n('image-editor', this.defaultLocale, this.parent.locale);
|
|
179
180
|
};
|