@syncfusion/ej2-image-editor 21.1.39 → 21.2.3
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 -23
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +9 -23
- 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 +12 -15
- package/src/image-editor/image-editor-model.d.ts +1 -0
- package/src/image-editor/image-editor.d.ts +2 -1
- package/src/image-editor/image-editor.js +9 -23
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.
|
|
3
|
+
* version : 21.2.3
|
|
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@21.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-image-editor@21.1.41",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-5wNi8aeB+njuaCz7I0AYUhVZ1hoFqfaHXgo3encOJtpxW3n7vbqndD407VSgF+VS7fW4jkVYOvUxEqwkjji48g==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-image-editor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -18,13 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
|
-
"/@syncfusion/ej2"
|
|
22
|
-
"/@syncfusion/ej2-angular-image-editor",
|
|
23
|
-
"/@syncfusion/ej2-react-image-editor",
|
|
24
|
-
"/@syncfusion/ej2-vue-image-editor"
|
|
21
|
+
"/@syncfusion/ej2"
|
|
25
22
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-21.1.
|
|
27
|
-
"_shasum": "
|
|
23
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-21.1.41.tgz",
|
|
24
|
+
"_shasum": "212f6ac669cc0c143d1ee8f0ffc6c69a0cb33d35",
|
|
28
25
|
"_spec": "@syncfusion/ej2-image-editor@*",
|
|
29
26
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
27
|
"author": {
|
|
@@ -32,12 +29,12 @@
|
|
|
32
29
|
},
|
|
33
30
|
"bundleDependencies": false,
|
|
34
31
|
"dependencies": {
|
|
35
|
-
"@syncfusion/ej2-base": "~21.
|
|
36
|
-
"@syncfusion/ej2-buttons": "~21.
|
|
37
|
-
"@syncfusion/ej2-inputs": "~21.
|
|
38
|
-
"@syncfusion/ej2-navigations": "~21.
|
|
39
|
-
"@syncfusion/ej2-popups": "~21.
|
|
40
|
-
"@syncfusion/ej2-splitbuttons": "~21.
|
|
32
|
+
"@syncfusion/ej2-base": "~21.2.3",
|
|
33
|
+
"@syncfusion/ej2-buttons": "~21.2.3",
|
|
34
|
+
"@syncfusion/ej2-inputs": "~21.2.3",
|
|
35
|
+
"@syncfusion/ej2-navigations": "~21.2.3",
|
|
36
|
+
"@syncfusion/ej2-popups": "~21.2.3",
|
|
37
|
+
"@syncfusion/ej2-splitbuttons": "~21.2.3"
|
|
41
38
|
},
|
|
42
39
|
"deprecated": false,
|
|
43
40
|
"description": "Essential JS 2 ImageEditor",
|
|
@@ -67,7 +64,7 @@
|
|
|
67
64
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/imageeditor"
|
|
68
65
|
},
|
|
69
66
|
"typings": "index.d.ts",
|
|
70
|
-
"version": "21.
|
|
67
|
+
"version": "21.2.3",
|
|
71
68
|
"sideEffects": false,
|
|
72
69
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
73
70
|
}
|
|
@@ -124,6 +124,7 @@ export declare class ZoomSettings extends ChildProperty<ZoomSettings> {
|
|
|
124
124
|
*
|
|
125
125
|
* By default, this property is set to `null`, which enables all types of zooming.
|
|
126
126
|
*
|
|
127
|
+
* @aspNumberEnum
|
|
127
128
|
* @default null
|
|
128
129
|
*/
|
|
129
130
|
zoomTrigger: ZoomTrigger;
|
|
@@ -1446,7 +1447,7 @@ export declare enum ShapeType {
|
|
|
1446
1447
|
/**
|
|
1447
1448
|
* An enumeration representing the different ways to trigger zooming in the image editor.
|
|
1448
1449
|
*
|
|
1449
|
-
* @
|
|
1450
|
+
* @aspNumberEnum
|
|
1450
1451
|
*/
|
|
1451
1452
|
export declare enum ZoomTrigger {
|
|
1452
1453
|
/** Zooming triggered by mouse wheel. */
|
|
@@ -476,6 +476,12 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
476
476
|
if (isNullOrUndefined(this.zoomSettings.zoomTrigger)) {
|
|
477
477
|
this.zoomSettings.zoomTrigger = (ZoomTrigger.MouseWheel | ZoomTrigger.Pinch | ZoomTrigger.Toolbar | ZoomTrigger.Commands);
|
|
478
478
|
}
|
|
479
|
+
if (isNullOrUndefined(this.zoomSettings.zoomFactor)) {
|
|
480
|
+
this.zoomSettings.zoomFactor = 1;
|
|
481
|
+
}
|
|
482
|
+
if (isNullOrUndefined(this.zoomSettings.maxZoomFactor)) {
|
|
483
|
+
this.zoomSettings.maxZoomFactor = 10;
|
|
484
|
+
}
|
|
479
485
|
};
|
|
480
486
|
ImageEditor.prototype.getDefaultFilter = function () {
|
|
481
487
|
return 'brightness(' + 1 + ') ' + 'contrast(' + 100 + '%) ' + 'hue-rotate(' + 0 + 'deg) ' +
|
|
@@ -13273,28 +13279,8 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
13273
13279
|
* @returns {ImageData}.
|
|
13274
13280
|
*/
|
|
13275
13281
|
ImageEditor.prototype.getImageData = function () {
|
|
13276
|
-
|
|
13277
|
-
|
|
13278
|
-
}
|
|
13279
|
-
var currentObj;
|
|
13280
|
-
if (this.defaultZoomFactor > 0) {
|
|
13281
|
-
currentObj = this.getCurrentObj();
|
|
13282
|
-
currentObj.objColl = extend([], this.objColl, [], true);
|
|
13283
|
-
currentObj.pointColl = extend([], this.pointColl, [], true);
|
|
13284
|
-
currentObj.afterCropActions = extend([], this.afterCropActions, [], true);
|
|
13285
|
-
}
|
|
13286
|
-
this.resetZoom();
|
|
13287
|
-
var data = this.lowerContext.getImageData(this.destLeft, this.destTop, this.destWidth, this.destHeight);
|
|
13288
|
-
if (!isNullOrUndefined(currentObj)) {
|
|
13289
|
-
this.setCurrentObj(currentObj);
|
|
13290
|
-
this.objColl = extend([], currentObj.objColl, [], true);
|
|
13291
|
-
this.pointColl = extend([], currentObj.pointColl, [], true);
|
|
13292
|
-
this.freehandCounter = this.pointColl.length;
|
|
13293
|
-
this.lowerContext.filter = 'none';
|
|
13294
|
-
this.zoomObjColl();
|
|
13295
|
-
this.zoomFreehandDrawColl();
|
|
13296
|
-
this.lowerContext.filter = currentObj.filter;
|
|
13297
|
-
}
|
|
13282
|
+
var canvas = this.exportChangesToCanvas();
|
|
13283
|
+
var data = canvas.getContext('2d').getImageData(0, 0, canvas.width, canvas.height);
|
|
13298
13284
|
return data;
|
|
13299
13285
|
};
|
|
13300
13286
|
/**
|
|
@@ -14668,7 +14654,7 @@ export var ShapeType;
|
|
|
14668
14654
|
/**
|
|
14669
14655
|
* An enumeration representing the different ways to trigger zooming in the image editor.
|
|
14670
14656
|
*
|
|
14671
|
-
* @
|
|
14657
|
+
* @aspNumberEnum
|
|
14672
14658
|
*/
|
|
14673
14659
|
export var ZoomTrigger;
|
|
14674
14660
|
(function (ZoomTrigger) {
|