@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
|
@@ -536,6 +536,8 @@ class Crop {
|
|
|
536
536
|
}
|
|
537
537
|
panToSelRangle(isReverse) {
|
|
538
538
|
const parent = this.parent;
|
|
539
|
+
const obj = extend({}, parent.currSelectionPoint, null, true);
|
|
540
|
+
parent.currSelectionPoint = null;
|
|
539
541
|
const panX = parent.transform.degree === 0 ?
|
|
540
542
|
isReverse ? -parent.cropObj.totalPannedPoint.x : parent.cropObj.totalPannedPoint.x :
|
|
541
543
|
isReverse ? -parent.cropObj.totalPannedClientPoint.x : parent.cropObj.totalPannedClientPoint.x;
|
|
@@ -552,6 +554,7 @@ class Crop {
|
|
|
552
554
|
parent.notify('transform', { prop: 'drawPannedImage', value: { xDiff: panX, yDiff: panY } });
|
|
553
555
|
parent.panPoint.currentPannedPoint = { x: 0, y: 0 };
|
|
554
556
|
}
|
|
557
|
+
parent.currSelectionPoint = obj;
|
|
555
558
|
}
|
|
556
559
|
cropCircle(context, isSave, isFlip) {
|
|
557
560
|
const parent = this.parent;
|
|
@@ -5774,18 +5777,17 @@ class FreehandDrawing {
|
|
|
5774
5777
|
if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
|
|
5775
5778
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
5776
5779
|
parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs).then((shapeChangingArgs) => {
|
|
5777
|
-
parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
5778
|
-
parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
5780
|
+
parent.activeObj.strokeSettings.strokeColor = parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
5781
|
+
parent.activeObj.strokeSettings.strokeWidth = parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
5779
5782
|
parent.pointColl[this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
|
|
5780
5783
|
this.freehandRedraw(this.upperContext);
|
|
5781
|
-
parent.updateToolbar(parent.element, '
|
|
5782
|
-
parent.updateToolbar(parent.element, 'pen');
|
|
5784
|
+
parent.updateToolbar(parent.element, 'colorToolbar');
|
|
5783
5785
|
});
|
|
5784
5786
|
}
|
|
5785
5787
|
else {
|
|
5786
5788
|
parent.trigger('shapeChanging', shapeChangingArgs);
|
|
5787
|
-
parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
5788
|
-
parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
5789
|
+
parent.activeObj.strokeSettings.strokeColor = parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
5790
|
+
parent.activeObj.strokeSettings.strokeWidth = parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
5789
5791
|
parent.pointColl[this.fhdSelIdx].points = shapeChangingArgs.currentShapeSettings.points;
|
|
5790
5792
|
this.freehandRedraw(this.upperContext);
|
|
5791
5793
|
parent.notify('toolbar', { prop: 'refresh-toolbar', onPropertyChange: false, value: { type: 'pen',
|
|
@@ -11261,6 +11263,9 @@ class Shape {
|
|
|
11261
11263
|
isApplyBtn: null, isCropping: null, isZooming: null, cType: null } });
|
|
11262
11264
|
parent.notify('toolbar', { prop: 'update-toolbar-items', onPropertyChange: false });
|
|
11263
11265
|
}
|
|
11266
|
+
else {
|
|
11267
|
+
parent.updateToolbar(parent.element, 'text');
|
|
11268
|
+
}
|
|
11264
11269
|
}
|
|
11265
11270
|
initializeTextShape(text, fontFamily, fontSize, bold, italic, strokeColor) {
|
|
11266
11271
|
const parent = this.parent;
|