@syncfusion/ej2-image-editor 22.1.36 → 22.1.37
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 +8 -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 +14 -5
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +14 -5
- 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 +8 -8
- package/src/image-editor/action/selection.d.ts +1 -0
- package/src/image-editor/action/selection.js +9 -0
- package/src/image-editor/action/undo-redo.js +4 -2
- package/src/image-editor/base/image-editor.js +1 -3
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.1.
|
|
3
|
+
* version : 22.1.37
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@
|
|
3
|
+
"_id": "@syncfusion/ej2-image-editor@22.1.36",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-ckJ9WXGq8Evlr/L+ToszUEaW5o17UvtPdFBxX8U+ZNvAQHyWiJeH0hrSMUTBRnXzwXpqwhIuUQBEIvA61tjOPw==",
|
|
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.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-22.1.36.tgz",
|
|
27
|
+
"_shasum": "88ab5df13c6b37ffda89a70889cabfc031c1c454",
|
|
28
28
|
"_spec": "@syncfusion/ej2-image-editor@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@syncfusion/ej2-base": "~22.1.34",
|
|
36
|
-
"@syncfusion/ej2-buttons": "~
|
|
36
|
+
"@syncfusion/ej2-buttons": "~22.1.36",
|
|
37
37
|
"@syncfusion/ej2-inputs": "~22.1.34",
|
|
38
38
|
"@syncfusion/ej2-navigations": "~22.1.36",
|
|
39
|
-
"@syncfusion/ej2-popups": "~22.1.
|
|
40
|
-
"@syncfusion/ej2-splitbuttons": "~22.1.
|
|
39
|
+
"@syncfusion/ej2-popups": "~22.1.37",
|
|
40
|
+
"@syncfusion/ej2-splitbuttons": "~22.1.37"
|
|
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": "22.1.
|
|
70
|
+
"version": "22.1.37",
|
|
71
71
|
"sideEffects": false,
|
|
72
72
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
73
73
|
}
|
|
@@ -237,6 +237,9 @@ var Selection = /** @class */ (function () {
|
|
|
237
237
|
case 'reset':
|
|
238
238
|
this.reset();
|
|
239
239
|
break;
|
|
240
|
+
case 'unWireEvent':
|
|
241
|
+
this.unwireEvent();
|
|
242
|
+
break;
|
|
240
243
|
}
|
|
241
244
|
};
|
|
242
245
|
Selection.prototype.getModuleName = function () {
|
|
@@ -3580,6 +3583,12 @@ var Selection = /** @class */ (function () {
|
|
|
3580
3583
|
EventHandler.add(this.parent.upperCanvas, 'touchend', this.mouseUpEventHandler, this);
|
|
3581
3584
|
EventHandler.add(this.parent.upperCanvas, 'touchmove', this.mouseMoveEventHandler, this);
|
|
3582
3585
|
};
|
|
3586
|
+
Selection.prototype.unwireEvent = function () {
|
|
3587
|
+
EventHandler.remove(this.parent.lowerCanvas, 'touchend', this.mouseUpEventHandler);
|
|
3588
|
+
EventHandler.remove(this.parent.lowerCanvas, 'touchmove', this.mouseMoveEventHandler);
|
|
3589
|
+
EventHandler.remove(this.parent.upperCanvas, 'touchend', this.mouseUpEventHandler);
|
|
3590
|
+
EventHandler.remove(this.parent.upperCanvas, 'touchmove', this.mouseMoveEventHandler);
|
|
3591
|
+
};
|
|
3583
3592
|
Selection.prototype.keyDownEventHandler = function (e) {
|
|
3584
3593
|
var _this = this;
|
|
3585
3594
|
var parent = this.parent;
|
|
@@ -254,7 +254,9 @@ var UndoRedo = /** @class */ (function () {
|
|
|
254
254
|
this.undoRedoStep--;
|
|
255
255
|
if (!isBlazor()) {
|
|
256
256
|
parent.notify('toolbar', { prop: 'enable-disable-btns' });
|
|
257
|
-
parent.element.querySelector('.e-contextual-toolbar-wrapper')
|
|
257
|
+
if (parent.element.querySelector('.e-contextual-toolbar-wrapper')) {
|
|
258
|
+
parent.element.querySelector('.e-contextual-toolbar-wrapper').classList.add('e-hide');
|
|
259
|
+
}
|
|
258
260
|
}
|
|
259
261
|
else {
|
|
260
262
|
parent.updateToolbar(parent.element, 'enableDisableToolbarBtn');
|
|
@@ -357,7 +359,7 @@ var UndoRedo = /** @class */ (function () {
|
|
|
357
359
|
parent.cropObj = extend({}, obj.currentCropObj, {}, true);
|
|
358
360
|
parent.afterCropActions = obj.currentObj.afterCropActions;
|
|
359
361
|
this.lowerContext.filter = obj.currentObj.filter;
|
|
360
|
-
if (!isBlazor()) {
|
|
362
|
+
if (!isBlazor() && parent.element.querySelector('.e-contextual-toolbar-wrapper')) {
|
|
361
363
|
parent.element.querySelector('.e-contextual-toolbar-wrapper').classList.add('e-hide');
|
|
362
364
|
}
|
|
363
365
|
parent.canvasFilter = this.lowerContext.filter;
|
|
@@ -504,6 +504,7 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
504
504
|
screen.orientation.removeEventListener('change', this.screenOrientation.bind(this));
|
|
505
505
|
}
|
|
506
506
|
this.notify('shape', { prop: 'unWireEvent', onPropertyChange: false });
|
|
507
|
+
this.notify('selection', { prop: 'unWireEvent', onPropertyChange: false });
|
|
507
508
|
};
|
|
508
509
|
ImageEditor.prototype.createCanvas = function () {
|
|
509
510
|
this.element.style.boxSizing = 'border-box';
|
|
@@ -2074,9 +2075,6 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
2074
2075
|
});
|
|
2075
2076
|
this.upperCanvas.width = this.lowerCanvas.width = this.inMemoryCanvas.width = this.element.offsetWidth;
|
|
2076
2077
|
this.upperCanvas.height = this.lowerCanvas.height = this.inMemoryCanvas.height = (this.element.offsetHeight - this.toolbarHeight);
|
|
2077
|
-
this.baseImg = this.createElement('img', {
|
|
2078
|
-
id: this.element.id + '_orgImg', attrs: { name: 'Image', crossorigin: 'anonymous' }
|
|
2079
|
-
});
|
|
2080
2078
|
this.lowerContext = this.lowerCanvas.getContext('2d');
|
|
2081
2079
|
this.baseImg = this.createElement('img', {
|
|
2082
2080
|
id: this.element.id + '_orgImg', attrs: { name: 'Image', crossorigin: 'anonymous' }
|