File tree Expand file tree Collapse file tree
Server/Pages/DrawingTools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent Connectors =" @_connectors" Height =" 600px" InteractionController =" @_tool" />
5+ <SfDiagramComponent Connectors =" @_connectors" Height =" 600px" InteractionController =" @_tool" DrawingObject = " @_drawingObject " />
66
77@code
88{
99 // Enable the single tool.
1010 private DiagramInteractions _tool = DiagramInteractions .DrawOnce ;
11+ // Drawing object used by the diagram.
12+ private Connector _drawingObject = new Connector ()
13+ {
14+ ID = " connector1" ,
15+ Type = ConnectorSegmentType .Straight ,
16+ };
1117 // Defines diagram's connectors collection.
1218 private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
1319}
Original file line number Diff line number Diff line change 22
33@using Syncfusion .Blazor .Diagram
44
5- <SfDiagramComponent Connectors =" @_connectors" Height =" 600px" InteractionController =" @_tool" />
5+ <SfDiagramComponent Connectors =" @_connectors" Height =" 600px" InteractionController =" @_tool" DrawingObject = " @_drawingObject " />
66
77@code
88{
99 // Enable the single tool.
1010 private DiagramInteractions _tool = DiagramInteractions .DrawOnce ;
11+ // Drawing object used by the diagram.
12+ private Connector _drawingObject = new Connector ()
13+ {
14+ ID = " connector1" ,
15+ Type = ConnectorSegmentType .Straight ,
16+ };
1117 // Defines diagram's connectors collection.
1218 private DiagramObjectCollection <Connector > _connectors = new DiagramObjectCollection <Connector >();
1319}
You can’t perform that action at this time.
0 commit comments