Skip to content

Commit c550c2d

Browse files
authored
Merge branch 'hotfix/hotfix-v27.1.48' into ej2-824314-imgaeediotor
2 parents ebea2ad + 5c40251 commit c550c2d

File tree

88 files changed

+2616
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+2616
-156
lines changed

blazor-toc.html

Lines changed: 9 additions & 1 deletion
Large diffs are not rendered by default.

blazor/Release-Notes/27.1.50.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: Essential Studio for Blazor Weekly Nuget Release Release Notes
3+
description: Essential Studio for Blazor Weekly Nuget Release Release Notes
4+
platform: Blazor
5+
documentation: ug
6+
---
7+
8+
# Essential Studio for Blazor Release Notes
9+
10+
{% include release-info.html date="September 24, 2024" version="v27.1.50" %}
11+
12+
{% directory path: _includes/release-notes/v27.1.50 %}
13+
14+
{% include {{file.url}} %}
15+
16+
{% enddirectory %}

blazor/diagram/annotations/appearance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ You can change the font style of the annotations with the font specific properti
376376
Diagram.Nodes[0].Annotations[0].Style.Bold = false;
377377
Diagram.Nodes[0].Annotations[0].Style.TextDecoration = TextDecoration.None;
378378
Diagram.Nodes[0].Annotations[0].Style.Color = "Red";
379-
Diagram.EndUpdate();
379+
Diagram.EndUpdateAsync();
380380
}
381381
}
382382
```

blazor/diagram/connectors/connectors.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
133133
connector.ID = RandomId();
134134
connector.SourcePoint = new DiagramPoint { X = 100, Y = 100 };
135135
connector.TargetPoint = new DiagramPoint { X = 200, Y = 100 };
136-
await diagram.AddDiagramElements(new DiagramObjectCollection<NodeBase>() { connector });
136+
await diagram.AddDiagramElementsAsync(new DiagramObjectCollection<NodeBase>() { connector });
137137
138138
}
139139
internal string RandomId()
@@ -152,9 +152,9 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
152152
![Clonning Node](../images/CloneConnector.gif)
153153
## How to add connector with annotations at runtime
154154

155-
You can add connector with annotation at runtime in the diagram component by using the [AddDiagramElements](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddDiagramElements_Syncfusion_Blazor_Diagram_DiagramObjectCollection_Syncfusion_Blazor_Diagram_NodeBase__) method.
155+
You can add connector with annotation at runtime in the diagram component by using the [AddDiagramElementsAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddDiagramElementsAsync_Syncfusion_Blazor_Diagram_DiagramObjectCollection_Syncfusion_Blazor_Diagram_NodeBase__) method.
156156

157-
The following code explains how to add an connector with annotation at runtime by using `AddDiagramElements` method.
157+
The following code explains how to add an connector with annotation at runtime by using `AddDiagramElementsAsync` method.
158158

159159
```cshtml
160160
@using Syncfusion.Blazor.Diagram
@@ -200,7 +200,7 @@ The following code explains how to add an connector with annotation at runtime
200200
},
201201
};
202202
NodeCollection.Add(NewConnector);
203-
await Diagram.AddDiagramElements(NodeCollection);
203+
await Diagram.AddDiagramElementsAsync(NodeCollection);
204204
}
205205
}
206206
```
@@ -393,13 +393,13 @@ The following code example explains how to change the connector properties.
393393
Diagram.BeginUpdate();
394394
Diagram.Connectors[0].SourcePoint.X = 50;
395395
Diagram.Connectors[0].SourcePoint.Y = 50;
396-
Diagram.EndUpdate();
396+
Diagram.EndUpdateAsync();
397397
}
398398
}
399399
```
400400
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Connectors/ActionofConnectors/UpdateConnectorAtRunTime)
401401

402-
N> BeginUpdate and EndUpdate methods allow you to stop the continuous update of control and resume it finally.
402+
N> BeginUpdate and EndUpdateAsync methods allow you to stop the continuous update of control and resume it finally.
403403

404404
## Connections
405405

blazor/diagram/connectors/segments/bezier/bezier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
244244

245245
![Avoid overlapping with bezier](../../../images/bezierOverlap.png)
246246

247-
### How to customize Bezier Segment Thumb Shape
247+
## How to customize Bezier Segment Thumb Shape
248248

249249
The Bezier connector can have multiple segments between the source and target points. By default, these segments are rendered as circles, but this can be customized either globally or for individual connectors using the [SegmentThumbSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SegmentThumbSettings.html) class.
250250

blazor/diagram/connectors/segments/straight.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
100100

101101
![Editing Straight Segment in Blazor Diagram](../../images/blazor-diagram-edit-straight-segment.gif)
102102

103-
### How to customize Straight Segment Thumb Shape
103+
## How to customize Straight Segment Thumb Shape
104104

105105
The Straight connector can have multiple segments between the source and target points. By default, these segments are rendered as circles, but this can be customized either globally or for individual connectors using the [SegmentThumbSettings](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SegmentThumbSettings.html) class.
106106

blazor/diagram/group.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
236236
(node4 as NodeGroup).Children = array;
237237
node4.OffsetX += 25;
238238
node4.OffsetY += 25;
239-
await diagram.AddDiagramElements(new DiagramObjectCollection<NodeBase>() { node2, node3, node4 });
239+
await diagram.AddDiagramElementsAsync(new DiagramObjectCollection<NodeBase>() { node2, node3, node4 });
240240
}
241241
242242
internal string RandomId()
@@ -384,7 +384,7 @@ The following code illustrates how a node group is added at runtime.
384384
}
385385
```
386386
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Group/AddGroupAtRunTime)
387-
* Also, you can add the child to the node group through [AddChild](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddChild_Syncfusion_Blazor_Diagram_NodeGroup_Syncfusion_Blazor_Diagram_NodeBase_) method. The following code illustrates how to add child to the existing node group through AddChild method.
387+
* Also, you can add the child to the node group through [AddChildAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddChildAsync_Syncfusion_Blazor_Diagram_NodeGroup_Syncfusion_Blazor_Diagram_NodeBase_) method. The following code illustrates how to add child to the existing node group through AddChildAsync method.
388388

389389
```cshtml
390390
@using Syncfusion.Blazor.Diagram
@@ -466,7 +466,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
466466
}
467467
}
468468
};
469-
await diagram.AddChild(group as NodeGroup, node);
469+
await diagram.AddChildAsync(group as NodeGroup, node);
470470
}
471471
}
472472
```

blazor/diagram/how-to.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ To create a node, define the Node object and add it to the nodes collection of t
5050
```
5151
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Methods/AddMethod)
5252

53-
## How to add nodes through AddDiagramElements
53+
## How to add nodes through AddDiagramElementsAsync
5454

55-
Unlike the Add() method, the [AddDiagramElements](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddDiagramElements_Syncfusion_Blazor_Diagram_DiagramObjectCollection_Syncfusion_Blazor_Diagram_NodeBase__) method will measure the passed elements before re-rendering the complete diagram component at once. When using the Add() method to add multiple nodes and connectors simultaneously, the connectors will be rendered before the nodes. As a result, connectors may be misplaced due to the synchronous behavior of the Add method. To overcome this, use the asynchronous AddDiagramElements() method.
55+
Unlike the Add() method, the [AddDiagramElementsAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_AddDiagramElementsAsync_Syncfusion_Blazor_Diagram_DiagramObjectCollection_Syncfusion_Blazor_Diagram_NodeBase__) method will measure the passed elements before re-rendering the complete diagram component at once. When using the Add() method to add multiple nodes and connectors simultaneously, the connectors will be rendered before the nodes. As a result, connectors may be misplaced due to the synchronous behavior of the Add method. To overcome this, use the asynchronous AddDiagramElementsAsync() method.
5656

57-
* AddDiagramElements() method is a preferred way to add a collection of items to the diagram to get better performance compared to Add() method.
57+
* AddDiagramElementsAsync() method is a preferred way to add a collection of items to the diagram to get better performance compared to Add() method.
5858

5959
```cshtml
6060
@using Syncfusion.Blazor.Diagram
@@ -147,7 +147,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
147147
NodeCollection.Add(node1);
148148
NodeCollection.Add(node2);
149149
NodeCollection.Add(Connector);
150-
await Diagram.AddDiagramElements(NodeCollection);
150+
await Diagram.AddDiagramElementsAsync(NodeCollection);
151151
}
152152
}
153153
```
@@ -958,8 +958,8 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
958958
```
959959
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Methods/GetCustomCursor)
960960

961-
## How to use the BeginUpdate and EndUpdate
962-
[BeginUpdate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_BeginUpdate) prevents visual updates to the diagram until the EndUpdate() method is called. [EndUpdate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_EndUpdate) means that the diagram is unlocked following a call to the BeginUpdate(Boolean) method, resulting in an immediate visual update.
961+
## How to use the BeginUpdate and EndUpdateAsync
962+
[BeginUpdate](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_BeginUpdate) prevents visual updates to the diagram until the EndUpdateAsync() method is called. [EndUpdateAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_EndUpdateAsync) means that the diagram is unlocked following a call to the BeginUpdate(Boolean) method, resulting in an immediate visual update.
963963

964964
```cshtml
965965
@using Syncfusion.Blazor.Diagram
@@ -1032,7 +1032,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
10321032
diagram.BeginUpdate();
10331033
diagram.Nodes[0].Height = 150;
10341034
diagram.Nodes[0].Width = 150;
1035-
diagram.EndUpdate();
1035+
diagram.EndUpdateAsync();
10361036
10371037
}
10381038
}
@@ -1305,7 +1305,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
13051305
{
13061306
sfDiagram.EndGroupAction();
13071307
}
1308-
_ = sfDiagram.EndUpdate();
1308+
_ = sfDiagram.EndUpdateAsync();
13091309
base.OnMouseUp(args);
13101310
this.InAction = true;
13111311
}
@@ -1525,7 +1525,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
15251525
You can download a complete working sample from [GitHub](https://github.com/SyncfusionExamples/Blazor-Diagram-Examples/tree/master/UG-Samples/Methods/ZoomAndPan)
15261526

15271527
## How to refresh the datasource
1528-
[RefreshDataSource](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_RefreshDataSource) will refresh the layout based on the changes in the data source.
1528+
[RefreshDataSourceAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Diagram.SfDiagramComponent.html#Syncfusion_Blazor_Diagram_SfDiagramComponent_RefreshDataSourceAsync) will refresh the layout based on the changes in the data source.
15291529

15301530
```cshtml
15311531
@using Syncfusion.Blazor.Diagram
@@ -1599,7 +1599,7 @@ You can download a complete working sample from [GitHub](https://github.com/Sync
15991599
new MindMapDetails() { Id= "4", Label="Sessions", ParentId ="2", Branch = "subRight" },
16001600
new MindMapDetails() { Id= "5", Label="Complementing", ParentId ="2", Branch = "subRight" },
16011601
};
1602-
await Diagram.RefreshDataSource();
1602+
await Diagram.RefreshDataSourceAsync();
16031603
}
16041604
}
16051605
```

blazor/diagram/interaction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Clone is a virtual method of the node that is used to create a copy of a diagram
251251
groupNode.OffsetX += 25;
252252
groupNode.OffsetY += 25;
253253
}
254-
diagram.AddDiagramElements(new DiagramObjectCollection<NodeBase>() { groupNode });
254+
diagram.AddDiagramElementsAsync(new DiagramObjectCollection<NodeBase>() { groupNode });
255255
return groupNode.ID;
256256
}
257257
public string CloneNode(Node node, bool isChild)
@@ -264,7 +264,7 @@ Clone is a virtual method of the node that is used to create a copy of a diagram
264264
nodeChild.OffsetX += 25;
265265
nodeChild.OffsetY += 25;
266266
}
267-
diagram.AddDiagramElements(new DiagramObjectCollection<NodeBase>() { nodeChild });
267+
diagram.AddDiagramElementsAsync(new DiagramObjectCollection<NodeBase>() { nodeChild });
268268
diagram.EndGroupAction();
269269
return nodeChild.ID;
270270
}
@@ -278,7 +278,7 @@ Clone is a virtual method of the node that is used to create a copy of a diagram
278278
connectorChild.SourcePoint = new DiagramPoint() { X = connectorChild.SourcePoint.X + 25, Y = connectorChild.SourcePoint.Y + 25 };
279279
connectorChild.TargetPoint = new DiagramPoint() { X = connectorChild.TargetPoint.X + 25, Y = connectorChild.TargetPoint.Y + 25 };
280280
}
281-
diagram.AddDiagramElements(new DiagramObjectCollection<NodeBase>() { connectorChild });
281+
diagram.AddDiagramElementsAsync(new DiagramObjectCollection<NodeBase>() { connectorChild });
282282
diagram.EndGroupAction();
283283
return connectorChild.ID;
284284
}

blazor/diagram/layout/hierarchical-layout.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public void UpdateSpacing()
196196
Diagram.BeginUpdate();
197197
HorizontalSpacing += 10;
198198
VerticalSpacing += 10;
199-
Diagram.EndUpdate();
199+
Diagram.EndUpdateAsync();
200200
}
201201
```
202202

@@ -221,7 +221,7 @@ public void UpdateMargin()
221221
Diagram.BeginUpdate();
222222
left += 10;
223223
top += 10;
224-
Diagram.EndUpdate();
224+
Diagram.EndUpdateAsync();
225225
}
226226
```
227227

0 commit comments

Comments
 (0)