From f9d81a74bc8647c735246b38b1b74b111af11909 Mon Sep 17 00:00:00 2001 From: SriRam4552 Date: Wed, 13 Aug 2025 17:05:13 +0530 Subject: [PATCH 1/3] 975476: RemovedObsolete --- .../Pages/Diagram/Diagram/SymbolPalette.razor | 18 ++++++++++++++++-- .../Diagram/Helpers/DiagramMenuBar.razor.cs | 8 ++++---- .../AISamples/Diagram/TextToMindMap.razor | 16 ++++++++-------- .../Pages/Diagram/Diagram/Serialization.razor | 2 +- .../Pages/Diagram/Diagram/SymbolPalette.razor | 18 ++++++++++++++++-- 5 files changed, 45 insertions(+), 17 deletions(-) diff --git a/Blazor-MAUI-Demos/Pages/Diagram/Diagram/SymbolPalette.razor b/Blazor-MAUI-Demos/Pages/Diagram/Diagram/SymbolPalette.razor index d913bb75..44e458f0 100644 --- a/Blazor-MAUI-Demos/Pages/Diagram/Diagram/SymbolPalette.razor +++ b/Blazor-MAUI-Demos/Pages/Diagram/Diagram/SymbolPalette.razor @@ -532,11 +532,25 @@ string description = symbol is Node ? (symbol as Node).ID : (symbol as Connector).ID; if (text) { - SymbolInfo.Description = new SymbolDescription() { Text = description, TextOverflow = TextOverflow.Wrap }; + SymbolInfo.Description = new SymbolDescription() + { + Text = description, + Style = new TextStyle() + { + TextOverflow = TextOverflow.Wrap + } + }; } else { - SymbolInfo.Description = new SymbolDescription() { Text = "", TextOverflow = TextOverflow.Wrap }; + SymbolInfo.Description = new SymbolDescription() + { + Text = "", + Style = new TextStyle() + { + TextOverflow = TextOverflow.Wrap + } + }; } return SymbolInfo; } diff --git a/Common/Pages/AISamples/Diagram/Helpers/DiagramMenuBar.razor.cs b/Common/Pages/AISamples/Diagram/Helpers/DiagramMenuBar.razor.cs index c3cfa3e2..25bc72dd 100644 --- a/Common/Pages/AISamples/Diagram/Helpers/DiagramMenuBar.razor.cs +++ b/Common/Pages/AISamples/Diagram/Helpers/DiagramMenuBar.razor.cs @@ -346,7 +346,7 @@ private async Task MenuClick(Syncfusion.Blazor.Navigations.MenuEventArgs diff --git a/Common/Pages/AISamples/Diagram/TextToMindMap.razor b/Common/Pages/AISamples/Diagram/TextToMindMap.razor index b6aa5ebe..4cee5e28 100644 --- a/Common/Pages/AISamples/Diagram/TextToMindMap.razor +++ b/Common/Pages/AISamples/Diagram/TextToMindMap.razor @@ -304,8 +304,8 @@ { Diagram.BeginUpdate(); RemoveData(Diagram.SelectionSettings.Nodes[0], Diagram); - _ = Diagram.EndUpdate(); - await Diagram.DoLayout(); + _ = Diagram.EndUpdateAsync(); + await Diagram.DoLayoutAsync(); } if (obj.Name == "fitPage") { @@ -667,7 +667,7 @@ }; diagram.BeginUpdate(); await UpdatePortConnection(childNode, diagram, isSibling); - await diagram.EndUpdate(); + await diagram.EndUpdateAsync(); } // Custom tool to add the node. public class AddLeftTool : InteractionControllerBase @@ -716,7 +716,7 @@ TargetID = node.ID, SourceID = isSibling ? childNode.ParentId : diagram.SelectionSettings.Nodes[0].ID }; - await diagram.AddDiagramElements(new DiagramObjectCollection() { node, connector }); + await diagram.AddDiagramElementsAsync(new DiagramObjectCollection() { node, connector }); Node sourceNode = diagram.GetObject((connector as Connector).SourceID) as Node; Node targetNode = diagram.GetObject((connector as Connector).TargetID) as Node; if (targetNode != null && targetNode.AdditionalInfo.Count > 0) @@ -733,7 +733,7 @@ (connector as Connector).TargetPortID = targetNode.Ports[0].ID; } } - await diagram.DoLayout(); + await diagram.DoLayoutAsync(); } public void ZoomTo(ZoomOptions options) { @@ -822,7 +822,7 @@ }; diagram.BeginUpdate(); await UpdatePortConnection(childNode, diagram, isSibling); - await diagram.EndUpdate(); + await diagram.EndUpdateAsync(); } // Custom tool to add the node. public class AddRightTool : InteractionControllerBase @@ -861,8 +861,8 @@ { sfDiagram.BeginUpdate(); RemoveData(deleteObject, sfDiagram); - _ = sfDiagram.EndUpdate(); - await sfDiagram.DoLayout(); + _ = sfDiagram.EndUpdateAsync(); + await sfDiagram.DoLayoutAsync(); } base.OnMouseUp(args); this.InAction = true; diff --git a/Common/Pages/Diagram/Diagram/Serialization.razor b/Common/Pages/Diagram/Diagram/Serialization.razor index 7259ef73..c2cdbac7 100644 --- a/Common/Pages/Diagram/Diagram/Serialization.razor +++ b/Common/Pages/Diagram/Diagram/Serialization.razor @@ -19,7 +19,7 @@

This sample demonstrates building diagrams interactively and editing saved diagrams. The symbol palette is used to build diagrams easily.

-

This example shows how to drag and drop shapes and connectors from the symbol palette to build diagrams. You can save a diagram as a JSON file and edit saved diagrams. The SaveDiagram method can be used to save a diagram as a string. The LoadDiagram method can be used to load a diagram from a string. In this example, the undo and redo features are enabled.

+

This example shows how to drag and drop shapes and connectors from the symbol palette to build diagrams. You can save a diagram as a JSON file and edit saved diagrams. The SaveDiagram method can be used to save a diagram as a string. The LoadDiagramAsync method can be used to load a diagram from a string. In this example, the undo and redo features are enabled.

@*End:Hidden*@ @*Hidden:Lines*@ diff --git a/Common/Pages/Diagram/Diagram/SymbolPalette.razor b/Common/Pages/Diagram/Diagram/SymbolPalette.razor index 9cfe2bd2..0941bf95 100644 --- a/Common/Pages/Diagram/Diagram/SymbolPalette.razor +++ b/Common/Pages/Diagram/Diagram/SymbolPalette.razor @@ -521,11 +521,25 @@ string description = symbol is Node ? (symbol as Node).ID : (symbol as Connector).ID; if (text) { - SymbolInfo.Description = new SymbolDescription() { Text = description, TextOverflow = TextOverflow.Wrap }; + SymbolInfo.Description = new SymbolDescription() + { + Text = description, + Style = new TextStyle() + { + TextOverflow = TextOverflow.Wrap + }, + }; } else { - SymbolInfo.Description = new SymbolDescription() { Text = "", TextOverflow = TextOverflow.Wrap }; + SymbolInfo.Description = new SymbolDescription() + { + Text = "", + Style = new TextStyle() + { + TextOverflow = TextOverflow.Wrap + }, + }; } return SymbolInfo; } From bc75e1942496477b494e1cefbf50f04c9d5879bc Mon Sep 17 00:00:00 2001 From: SriRam4552 Date: Wed, 13 Aug 2025 17:11:17 +0530 Subject: [PATCH 2/3] 975476: UpdatedChanges --- Blazor-MAUI-Demos/Pages/Diagram/Diagram/Serialization.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Blazor-MAUI-Demos/Pages/Diagram/Diagram/Serialization.razor b/Blazor-MAUI-Demos/Pages/Diagram/Diagram/Serialization.razor index c55f3bb6..bcb9d139 100644 --- a/Blazor-MAUI-Demos/Pages/Diagram/Diagram/Serialization.razor +++ b/Blazor-MAUI-Demos/Pages/Diagram/Diagram/Serialization.razor @@ -24,7 +24,7 @@

This sample demonstrates building diagrams interactively and editing saved diagrams. The symbol palette is used to build diagrams easily.

-

This example shows how to drag and drop shapes and connectors from the symbol palette to build diagrams. You can save a diagram as a JSON file and edit saved diagrams. The SaveDiagram method can be used to save a diagram as a string. The LoadDiagram method can be used to load a diagram from a string. In this example, the undo and redo features are enabled.

+

This example shows how to drag and drop shapes and connectors from the symbol palette to build diagrams. You can save a diagram as a JSON file and edit saved diagrams. The SaveDiagram method can be used to save a diagram as a string. The LoadDiagramAsync method can be used to load a diagram from a string. In this example, the undo and redo features are enabled.

@*End:Hidden*@ @*Hidden:Lines*@ From 6fb99299281e5c4c61cb710413940fedd91e9ac0 Mon Sep 17 00:00:00 2001 From: SriRam4552 Date: Wed, 13 Aug 2025 17:42:37 +0530 Subject: [PATCH 3/3] 975476: Tooltip --- .../Pages/Diagram/Diagram/RadialTree.razor | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Blazor-MAUI-Demos/Pages/Diagram/Diagram/RadialTree.razor b/Blazor-MAUI-Demos/Pages/Diagram/Diagram/RadialTree.razor index 54bfe413..b08d4059 100644 --- a/Blazor-MAUI-Demos/Pages/Diagram/Diagram/RadialTree.razor +++ b/Blazor-MAUI-Demos/Pages/Diagram/Diagram/RadialTree.razor @@ -313,7 +313,23 @@ - + + + @{ + if (context is Node node) + { + var data = (node as Node).Data as RadialTreeDetails; + if (data != null) + { + +
+ @data.Name
@data.Designation +
+ } + } + } +
+
@*Hidden:Lines*@ @@ -487,7 +503,6 @@ node.Constraints = NodeConstraints.Default | NodeConstraints.Tooltip; node.Tooltip = new DiagramTooltip() { - Template = radialData.Name+"
"+radialData.Designation, Position = Position.TopCenter, }; }