Skip to content

Commit 46a0c3a

Browse files
authored
Merge pull request #4014 from syncfusion-content/EJ2-938526-ie
938526: UG testing and fixing for JS, TS, React, Angular, Vue, Core, MVC and Blazor
2 parents 1536a32 + d94c746 commit 46a0c3a

18 files changed

+20
-18
lines changed

ej2-asp-core-mvc/code-snippet/image-editor/annotation/customize-font-color/razor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
function ShapeChanging(args) {
1717
if (args.currentShapeSettings.type === 'Text') {
1818
args.currentShapeSettings.color = 'red';
19+
args.currentShapeSettings.fontFamily = 'Times New Roman';
1920
}
2021
}
2122

ej2-asp-core-mvc/code-snippet/image-editor/annotation/customize-font-color/tagHelper

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
function shapeChanging(args) {
2121
if (args.currentShapeSettings.type === 'Text') {
2222
args.currentShapeSettings.color = 'red';
23+
args.currentShapeSettings.fontFamily = 'Times New Roman';
2324
}
2425
}
2526

ej2-asp-core-mvc/code-snippet/image-editor/annotation/default-stroke-color/razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515

1616
function ShapeChanging(args) {
17-
if (args.currentShapeSettings.type === 'FreehandDraw') {
17+
if (args.currentShapeSettings.type === 'Rectangle') {
1818
args.currentShapeSettings.strokeColor = 'red';
1919
}
2020
}

ej2-asp-core-mvc/code-snippet/image-editor/annotation/default-stroke-color/tagHelper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
function shapeChanging(args) {
21-
if (args.currentShapeSettings.type === 'FreehandDraw') {
21+
if (args.currentShapeSettings.type === 'Rectangle') {
2222
args.currentShapeSettings.strokeColor = 'red';
2323
}
2424
}

ej2-asp-core-mvc/image-editor/annotation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ Output be like the below.
461461

462462
![ImageEditor Sample](images/image-editor-annotation.jpg)
463463

464-
## Delete a shape
464+
### Delete a shape
465465

466466
The `deleteShape` method in the Image Editor allows you to remove a shape annotation from the image editor. To use this method, you need to pass the `shapeId` of the annotation as a parameter.
467467

@@ -498,9 +498,9 @@ Output be like the below.
498498

499499
![ImageEditor Sample](images/image-editor-delete-annotation.png)
500500

501-
## Customize default stroke color for shapes
501+
### Customize default stroke color for shapes
502502

503-
We provide default settings for stroke color, stroke width, fill color, and other customizations. If users wish to modify only the default options while preserving their previously selected customizations, they can do so by utilizing the [`shapeChanging`] event. Within this event, users can update the values in the `currentShapeSettings` object to apply their own preferences instead of the defaults. This approach allows conditional updates to the `currentShapeSettings`, ensuring that only the desired defaults are changed while maintaining the other settings.
503+
We provide default settings for stroke color, stroke width, fill color, and other customizations. If users wish to modify only the default options while preserving their previously selected customizations, they can do so by utilizing the `shapeChanging` event. Within this event, users can update the values in the `currentShapeSettings` object to apply their own preferences instead of the defaults. This approach allows conditional updates to the `currentShapeSettings`, ensuring that only the desired defaults are changed while maintaining the other settings.
504504

505505
{% if page.publishingplatform == "aspnet-core" %}
506506

@@ -527,7 +527,7 @@ We provide default settings for stroke color, stroke width, fill color, and othe
527527

528528
Output be like the below.
529529

530-
![ImageEditor Sample](images/image-editor-default-stroke.png)
530+
![ImageEditor Sample](images/image-editor-default-stroke.jpg)
531531

532532
## Image annotation
533533

ej2-asp-core-mvc/image-editor/filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ domainurl: ##DomainURL##
1111

1212
# Filters in the ##Platform_Name## Image Editor control
1313

14-
Filters are pre-defined effects that can be applied to an image to alter its appearance or mood. Image filters can be used to add visual interest or to enhance certain features of the image. Some common types of image filters include cold, warm, chrome, sepia, and invert. This can be done by either using the toolbar or the [`applyImageFilter`] method which takes a single parameter: the filter applied to an image.
14+
Filters are pre-defined effects that can be applied to an image to alter its appearance or mood. Image filters can be used to add visual interest or to enhance certain features of the image. Some common types of image filters include cold, warm, chrome, sepia, and invert. This can be done by either using the toolbar or the `applyImageFilter` method which takes a single parameter: the filter applied to an image.
1515

1616
## Apply filter effect
1717

Loading
Loading
Binary file not shown.
Loading

0 commit comments

Comments
 (0)