@syncfusion/ej2-image-editor 21.1.37 → 21.1.41
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 +18 -2
- 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 +15 -0
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +15 -0
- 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 +10 -10
- package/src/image-editor/image-editor.d.ts +1 -0
- package/src/image-editor/image-editor.js +15 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.1.
|
|
3
|
+
* version : 21.1.41
|
|
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.39",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-yghuHGhw2u6arzUN34xnHVZB4nYTmvI0c1Xmuw6GZ8bqshm/xZw4yIJTy/iclyErSVJD2thRzewX0YpNN5uY8Q==",
|
|
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-21.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-21.1.39.tgz",
|
|
27
|
+
"_shasum": "58530b3c61b36d1e81395a3a1bb53f5f5217ef45",
|
|
28
28
|
"_spec": "@syncfusion/ej2-image-editor@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@syncfusion/ej2-base": "~21.1.
|
|
35
|
+
"@syncfusion/ej2-base": "~21.1.40",
|
|
36
36
|
"@syncfusion/ej2-buttons": "~21.1.37",
|
|
37
|
-
"@syncfusion/ej2-inputs": "~21.1.
|
|
38
|
-
"@syncfusion/ej2-navigations": "~21.1.
|
|
39
|
-
"@syncfusion/ej2-popups": "~21.1.
|
|
40
|
-
"@syncfusion/ej2-splitbuttons": "~21.1.
|
|
37
|
+
"@syncfusion/ej2-inputs": "~21.1.39",
|
|
38
|
+
"@syncfusion/ej2-navigations": "~21.1.39",
|
|
39
|
+
"@syncfusion/ej2-popups": "~21.1.41",
|
|
40
|
+
"@syncfusion/ej2-splitbuttons": "~21.1.41"
|
|
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": "21.1.
|
|
70
|
+
"version": "21.1.41",
|
|
71
71
|
"sideEffects": false,
|
|
72
72
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
73
73
|
}
|
|
@@ -1191,6 +1191,7 @@ export declare class ImageEditor extends Component<HTMLDivElement> implements IN
|
|
|
1191
1191
|
*
|
|
1192
1192
|
*/
|
|
1193
1193
|
select(type: string, startX?: number, startY?: number, width?: number, height?: number): void;
|
|
1194
|
+
private updateSelectionInsert;
|
|
1194
1195
|
/**
|
|
1195
1196
|
* Enable or disable a freehand drawing option in an Image Editor.
|
|
1196
1197
|
*
|
|
@@ -5142,6 +5142,7 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
5142
5142
|
this.activeObj.activePoint.height = this.activeObj.activePoint.endY - this.activeObj.activePoint.startY;
|
|
5143
5143
|
this.updateActiveObject(this.activeObj.activePoint, this.activeObj);
|
|
5144
5144
|
}
|
|
5145
|
+
this.updateSelectionInsert();
|
|
5145
5146
|
this.drawObject('duplicate', this.activeObj, null, null, true);
|
|
5146
5147
|
};
|
|
5147
5148
|
ImageEditor.prototype.clearOuterCanvas = function (context) {
|
|
@@ -12842,6 +12843,13 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
12842
12843
|
width: width, height: width };
|
|
12843
12844
|
}
|
|
12844
12845
|
this.activeObj.shape = cropShape.toLowerCase();
|
|
12846
|
+
this.updateSelectionInsert();
|
|
12847
|
+
if (this.activeObj.activePoint.startX !== 0 || this.activeObj.activePoint.startY !== 0 ||
|
|
12848
|
+
this.activeObj.activePoint.width !== 0 || this.activeObj.activePoint.height !== 0) {
|
|
12849
|
+
points = { startX: this.activeObj.activePoint.startX, startY: this.activeObj.activePoint.startY,
|
|
12850
|
+
endX: this.activeObj.activePoint.endX, endY: this.activeObj.activePoint.endY,
|
|
12851
|
+
width: this.activeObj.activePoint.width, height: this.activeObj.activePoint.height };
|
|
12852
|
+
}
|
|
12845
12853
|
this.drawObject('duplicate', null, true, points);
|
|
12846
12854
|
}
|
|
12847
12855
|
};
|
|
@@ -13646,6 +13654,13 @@ var ImageEditor = /** @class */ (function (_super) {
|
|
|
13646
13654
|
}
|
|
13647
13655
|
}
|
|
13648
13656
|
};
|
|
13657
|
+
ImageEditor.prototype.updateSelectionInsert = function () {
|
|
13658
|
+
var shapeSettings = this.updatePreviousShapeSettings();
|
|
13659
|
+
var shapeChangingArgs = { action: 'insert', previousShapeSettings: shapeSettings,
|
|
13660
|
+
currentShapeSettings: shapeSettings };
|
|
13661
|
+
this.trigger('shapeChanging', shapeChangingArgs);
|
|
13662
|
+
this.updateShapeChangeEventArgs(shapeChangingArgs.currentShapeSettings);
|
|
13663
|
+
};
|
|
13649
13664
|
/**
|
|
13650
13665
|
* Enable or disable a freehand drawing option in an Image Editor.
|
|
13651
13666
|
*
|