@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.1.39
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.37",
3
+ "_id": "@syncfusion/ej2-image-editor@21.1.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-NqoCmNu7dG4kLr3t5ln1b/tl1CHhMvwZa3DF8GJjjWvr6UuU+bGi7hmG9bTPgROsYJk4l+5O5NJfeh6jL30DPQ==",
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.37.tgz",
27
- "_shasum": "480eed2590ef0f57854228517a728f5e54f06522",
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.1.39",
36
- "@syncfusion/ej2-buttons": "~21.1.37",
37
- "@syncfusion/ej2-inputs": "~21.1.39",
38
- "@syncfusion/ej2-navigations": "~21.1.39",
39
- "@syncfusion/ej2-popups": "~21.1.37",
40
- "@syncfusion/ej2-splitbuttons": "~21.1.37"
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.1.39",
67
+ "version": "21.2.3",
71
68
  "sideEffects": false,
72
69
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
73
70
  }
@@ -110,6 +110,7 @@ export interface ZoomSettingsModel {
110
110
  *
111
111
  * By default, this property is set to `null`, which enables all types of zooming.
112
112
  *
113
+ * @aspNumberEnum
113
114
  * @default null
114
115
  */
115
116
  zoomTrigger?: ZoomTrigger;
@@ -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
- * @enum {number}
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
- if (!isNullOrUndefined(this.activeObj.shape)) {
13277
- this.performCancel();
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
- * @enum {number}
14657
+ * @aspNumberEnum
14672
14658
  */
14673
14659
  export var ZoomTrigger;
14674
14660
  (function (ZoomTrigger) {