@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
|
@@ -6403,6 +6403,9 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
6403
6403
|
case 'reset':
|
|
6404
6404
|
this.reset();
|
|
6405
6405
|
break;
|
|
6406
|
+
case 'unWireEvent':
|
|
6407
|
+
this.unwireEvent();
|
|
6408
|
+
break;
|
|
6406
6409
|
}
|
|
6407
6410
|
};
|
|
6408
6411
|
Selection.prototype.getModuleName = function () {
|
|
@@ -9746,6 +9749,12 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
9746
9749
|
EventHandler.add(this.parent.upperCanvas, 'touchend', this.mouseUpEventHandler, this);
|
|
9747
9750
|
EventHandler.add(this.parent.upperCanvas, 'touchmove', this.mouseMoveEventHandler, this);
|
|
9748
9751
|
};
|
|
9752
|
+
Selection.prototype.unwireEvent = function () {
|
|
9753
|
+
EventHandler.remove(this.parent.lowerCanvas, 'touchend', this.mouseUpEventHandler);
|
|
9754
|
+
EventHandler.remove(this.parent.lowerCanvas, 'touchmove', this.mouseMoveEventHandler);
|
|
9755
|
+
EventHandler.remove(this.parent.upperCanvas, 'touchend', this.mouseUpEventHandler);
|
|
9756
|
+
EventHandler.remove(this.parent.upperCanvas, 'touchmove', this.mouseMoveEventHandler);
|
|
9757
|
+
};
|
|
9749
9758
|
Selection.prototype.keyDownEventHandler = function (e) {
|
|
9750
9759
|
var _this = this;
|
|
9751
9760
|
var parent = this.parent;
|
|
@@ -15536,7 +15545,9 @@ var UndoRedo = /** @__PURE__ @class */ (function () {
|
|
|
15536
15545
|
this.undoRedoStep--;
|
|
15537
15546
|
if (!isBlazor()) {
|
|
15538
15547
|
parent.notify('toolbar', { prop: 'enable-disable-btns' });
|
|
15539
|
-
parent.element.querySelector('.e-contextual-toolbar-wrapper')
|
|
15548
|
+
if (parent.element.querySelector('.e-contextual-toolbar-wrapper')) {
|
|
15549
|
+
parent.element.querySelector('.e-contextual-toolbar-wrapper').classList.add('e-hide');
|
|
15550
|
+
}
|
|
15540
15551
|
}
|
|
15541
15552
|
else {
|
|
15542
15553
|
parent.updateToolbar(parent.element, 'enableDisableToolbarBtn');
|
|
@@ -15639,7 +15650,7 @@ var UndoRedo = /** @__PURE__ @class */ (function () {
|
|
|
15639
15650
|
parent.cropObj = extend({}, obj.currentCropObj, {}, true);
|
|
15640
15651
|
parent.afterCropActions = obj.currentObj.afterCropActions;
|
|
15641
15652
|
this.lowerContext.filter = obj.currentObj.filter;
|
|
15642
|
-
if (!isBlazor()) {
|
|
15653
|
+
if (!isBlazor() && parent.element.querySelector('.e-contextual-toolbar-wrapper')) {
|
|
15643
15654
|
parent.element.querySelector('.e-contextual-toolbar-wrapper').classList.add('e-hide');
|
|
15644
15655
|
}
|
|
15645
15656
|
parent.canvasFilter = this.lowerContext.filter;
|
|
@@ -16577,6 +16588,7 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
16577
16588
|
screen.orientation.removeEventListener('change', this.screenOrientation.bind(this));
|
|
16578
16589
|
}
|
|
16579
16590
|
this.notify('shape', { prop: 'unWireEvent', onPropertyChange: false });
|
|
16591
|
+
this.notify('selection', { prop: 'unWireEvent', onPropertyChange: false });
|
|
16580
16592
|
};
|
|
16581
16593
|
ImageEditor.prototype.createCanvas = function () {
|
|
16582
16594
|
this.element.style.boxSizing = 'border-box';
|
|
@@ -18147,9 +18159,6 @@ var ImageEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
18147
18159
|
});
|
|
18148
18160
|
this.upperCanvas.width = this.lowerCanvas.width = this.inMemoryCanvas.width = this.element.offsetWidth;
|
|
18149
18161
|
this.upperCanvas.height = this.lowerCanvas.height = this.inMemoryCanvas.height = (this.element.offsetHeight - this.toolbarHeight);
|
|
18150
|
-
this.baseImg = this.createElement('img', {
|
|
18151
|
-
id: this.element.id + '_orgImg', attrs: { name: 'Image', crossorigin: 'anonymous' }
|
|
18152
|
-
});
|
|
18153
18162
|
this.lowerContext = this.lowerCanvas.getContext('2d');
|
|
18154
18163
|
this.baseImg = this.createElement('img', {
|
|
18155
18164
|
id: this.element.id + '_orgImg', attrs: { name: 'Image', crossorigin: 'anonymous' }
|