@syncfusion/ej2-image-editor 23.2.6 → 23.2.7
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 -2
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +11 -2
- 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 +7 -7
- package/src/image-editor/action/freehand-draw.js +11 -2
|
@@ -7119,8 +7119,14 @@ class FreehandDrawing {
|
|
|
7119
7119
|
if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
|
|
7120
7120
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
7121
7121
|
parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs).then((shapeChangingArgs) => {
|
|
7122
|
-
parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7123
7122
|
this.penStrokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
7123
|
+
if (parent.activeObj.strokeSettings.strokeColor !== shapeChangingArgs.currentShapeSettings.strokeColor) {
|
|
7124
|
+
parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7125
|
+
const penColorElement = parent.element.querySelector('.e-ie-toolbar-e-pen-color .e-dropdownbtn-preview');
|
|
7126
|
+
if (penColorElement) {
|
|
7127
|
+
penColorElement.style.background = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7128
|
+
}
|
|
7129
|
+
}
|
|
7124
7130
|
if (this.fhdSelID) {
|
|
7125
7131
|
parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7126
7132
|
parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
@@ -7135,8 +7141,11 @@ class FreehandDrawing {
|
|
|
7135
7141
|
}
|
|
7136
7142
|
else {
|
|
7137
7143
|
parent.trigger('shapeChanging', shapeChangingArgs);
|
|
7138
|
-
parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7139
7144
|
this.penStrokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
7145
|
+
if (parent.activeObj.strokeSettings.strokeColor !== shapeChangingArgs.currentShapeSettings.strokeColor) {
|
|
7146
|
+
parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7147
|
+
parent.notify('toolbar', { prop: 'update-toolbar-items', onPropertyChange: false });
|
|
7148
|
+
}
|
|
7140
7149
|
if (this.fhdSelID) {
|
|
7141
7150
|
parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7142
7151
|
parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|