@syncfusion/ej2-image-editor 22.1.38 → 22.1.39
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 +11 -6
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +11 -6
- 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/crop.js +3 -0
- package/src/image-editor/action/freehand-draw.js +5 -6
- package/src/image-editor/action/shape.js +3 -0
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.39
|
|
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@22.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-image-editor@22.1.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-0FKUVs0R2/Fo4Z3xwDMWGEYHM2rLSEstbccSFmWKM+zLef2CUx/8mKoqJ3Z5AC5XQfKJYLaNybviEq3ggjWVwQ==",
|
|
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-22.1.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-image-editor/-/ej2-image-editor-22.1.38.tgz",
|
|
27
|
+
"_shasum": "3ea2b377613208e250a8e58b3334cfbc862543d3",
|
|
28
28
|
"_spec": "@syncfusion/ej2-image-editor@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@syncfusion/ej2-base": "~22.1.38",
|
|
36
|
-
"@syncfusion/ej2-buttons": "~22.1.
|
|
37
|
-
"@syncfusion/ej2-inputs": "~22.1.
|
|
38
|
-
"@syncfusion/ej2-navigations": "~22.1.
|
|
36
|
+
"@syncfusion/ej2-buttons": "~22.1.39",
|
|
37
|
+
"@syncfusion/ej2-inputs": "~22.1.39",
|
|
38
|
+
"@syncfusion/ej2-navigations": "~22.1.39",
|
|
39
39
|
"@syncfusion/ej2-popups": "~22.1.38",
|
|
40
40
|
"@syncfusion/ej2-splitbuttons": "~22.1.37"
|
|
41
41
|
},
|
|
@@ -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.39",
|
|
71
71
|
"sideEffects": false,
|
|
72
72
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
73
73
|
}
|
|
@@ -531,6 +531,8 @@ var Crop = /** @class */ (function () {
|
|
|
531
531
|
};
|
|
532
532
|
Crop.prototype.panToSelRangle = function (isReverse) {
|
|
533
533
|
var parent = this.parent;
|
|
534
|
+
var obj = extend({}, parent.currSelectionPoint, null, true);
|
|
535
|
+
parent.currSelectionPoint = null;
|
|
534
536
|
var panX = parent.transform.degree === 0 ?
|
|
535
537
|
isReverse ? -parent.cropObj.totalPannedPoint.x : parent.cropObj.totalPannedPoint.x :
|
|
536
538
|
isReverse ? -parent.cropObj.totalPannedClientPoint.x : parent.cropObj.totalPannedClientPoint.x;
|
|
@@ -547,6 +549,7 @@ var Crop = /** @class */ (function () {
|
|
|
547
549
|
parent.notify('transform', { prop: 'drawPannedImage', value: { xDiff: panX, yDiff: panY } });
|
|
548
550
|
parent.panPoint.currentPannedPoint = { x: 0, y: 0 };
|
|
549
551
|
}
|
|
552
|
+
parent.currSelectionPoint = obj;
|
|
550
553
|
};
|
|
551
554
|
Crop.prototype.cropCircle = function (context, isSave, isFlip) {
|
|
552
555
|
var parent = this.parent;
|
|
@@ -639,18 +639,17 @@ var FreehandDrawing = /** @class */ (function () {
|
|
|
639
639
|
if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
|
|
640
640
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
641
641
|
parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs).then(function (shapeChangingArgs) {
|
|
642
|
-
parent.pointColl[_this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
643
|
-
parent.pointColl[_this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
642
|
+
parent.activeObj.strokeSettings.strokeColor = parent.pointColl[_this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
643
|
+
parent.activeObj.strokeSettings.strokeWidth = parent.pointColl[_this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
644
644
|
parent.pointColl[_this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
|
|
645
645
|
_this.freehandRedraw(_this.upperContext);
|
|
646
|
-
parent.updateToolbar(parent.element, '
|
|
647
|
-
parent.updateToolbar(parent.element, 'pen');
|
|
646
|
+
parent.updateToolbar(parent.element, 'colorToolbar');
|
|
648
647
|
});
|
|
649
648
|
}
|
|
650
649
|
else {
|
|
651
650
|
parent.trigger('shapeChanging', shapeChangingArgs);
|
|
652
|
-
parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
653
|
-
parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
651
|
+
parent.activeObj.strokeSettings.strokeColor = parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
652
|
+
parent.activeObj.strokeSettings.strokeWidth = parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
654
653
|
parent.pointColl[this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
|
|
655
654
|
this.freehandRedraw(this.upperContext);
|
|
656
655
|
parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'pen',
|
|
@@ -565,6 +565,9 @@ var Shape = /** @class */ (function () {
|
|
|
565
565
|
isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
|
|
566
566
|
parent.notify('toolbar', { prop: 'update-toolbar-items', onPropertyChange: false });
|
|
567
567
|
}
|
|
568
|
+
else {
|
|
569
|
+
parent.updateToolbar(parent.element, 'text');
|
|
570
|
+
}
|
|
568
571
|
};
|
|
569
572
|
Shape.prototype.initializeTextShape = function (text, fontFamily, fontSize, bold, italic, strokeColor) {
|
|
570
573
|
var parent = this.parent;
|