File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
KB-Samples/LargeDiagram/Components/Pages Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 20
20
21
21
<!-- Diagram Section -->
22
22
<div id =" diagram-space" style =" flex-grow : 1 ; width : 1200px ;" >
23
- <SfDiagramComponent Height =" 700px" @ref =" @diagram" @bind-Nodes =" @nodes " @bind-Connectors =" @connectors " Created =" Oncreate " EnableChunkMessages =" true" GetCustomTool =" GetCustomTool" >
23
+ <SfDiagramComponent Height =" 700px" @ref =" @diagram" @bind-Nodes =" @Nodes " @bind-Connectors =" @Connectors " Created =" OnCreate " EnableChunkMessages =" true" GetCustomTool =" GetCustomTool" >
24
24
</SfDiagramComponent >
25
25
<span id =' diagramName' style =" display :none " >DiagramComponent</span >
26
26
</div >
116
116
base .OnMouseUp (args );
117
117
}
118
118
}
119
- DiagramObjectCollection <Node > nodes = new DiagramObjectCollection <Node >();
120
- DiagramObjectCollection <Connector > connectors = new DiagramObjectCollection <Connector >();
119
+ DiagramObjectCollection <Node > Nodes = new DiagramObjectCollection <Node >();
120
+ DiagramObjectCollection <Connector > Connectors = new DiagramObjectCollection <Connector >();
121
121
private string ExtensionType = " .json" ;
122
122
// Method to save the diagram
123
123
public async Task SaveDiagram ()
158
158
SymbolPalette .Targets .Add (diagram );
159
159
}
160
160
161
- private async void Oncreate ()
161
+ private async void OnCreate ()
162
162
{
163
163
json = File .ReadAllText (" wwwroot/PathShape.json" );
164
164
await diagram .LoadDiagramAsync (json );
You can’t perform that action at this time.
0 commit comments