@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
|
@@ -7129,8 +7129,14 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
|
|
|
7129
7129
|
if (isBlazor() && parent.events && parent.events.shapeChanging.hasDelegate === true) {
|
|
7130
7130
|
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
7131
7131
|
parent.dotNetRef.invokeMethodAsync('ShapeEventAsync', 'OnShape', shapeChangingArgs).then(function (shapeChangingArgs) {
|
|
7132
|
-
parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7133
7132
|
_this.penStrokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
7133
|
+
if (parent.activeObj.strokeSettings.strokeColor !== shapeChangingArgs.currentShapeSettings.strokeColor) {
|
|
7134
|
+
parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7135
|
+
var penColorElement = parent.element.querySelector('.e-ie-toolbar-e-pen-color .e-dropdownbtn-preview');
|
|
7136
|
+
if (penColorElement) {
|
|
7137
|
+
penColorElement.style.background = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7138
|
+
}
|
|
7139
|
+
}
|
|
7134
7140
|
if (_this.fhdSelID) {
|
|
7135
7141
|
parent.pointColl[_this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7136
7142
|
parent.pointColl[_this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
@@ -7145,8 +7151,11 @@ var FreehandDrawing = /** @__PURE__ @class */ (function () {
|
|
|
7145
7151
|
}
|
|
7146
7152
|
else {
|
|
7147
7153
|
parent.trigger('shapeChanging', shapeChangingArgs);
|
|
7148
|
-
parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7149
7154
|
this.penStrokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|
|
7155
|
+
if (parent.activeObj.strokeSettings.strokeColor !== shapeChangingArgs.currentShapeSettings.strokeColor) {
|
|
7156
|
+
parent.activeObj.strokeSettings.strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7157
|
+
parent.notify('toolbar', { prop: 'update-toolbar-items', onPropertyChange: false });
|
|
7158
|
+
}
|
|
7150
7159
|
if (this.fhdSelID) {
|
|
7151
7160
|
parent.pointColl[this.fhdSelIdx].strokeColor = shapeChangingArgs.currentShapeSettings.strokeColor;
|
|
7152
7161
|
parent.pointColl[this.fhdSelIdx].strokeWidth = shapeChangingArgs.currentShapeSettings.strokeWidth;
|