2 instantiations of NodeLayout
Aspire.Dashboard (2)
Components\Controls\ResourceRelationshipGraph.razor.cs (2)
74
var center = new
NodeLayout
(Resource, centerX, (height - NodeHeight) / 2, IsCenter: true);
98
result.Add(new
NodeLayout
(node, x, y, IsCenter: false));
7 references to NodeLayout
Aspire.Dashboard (7)
Components\Controls\ResourceRelationshipGraph.razor.cs (7)
74
var
center = new NodeLayout(Resource, centerX, (height - NodeHeight) / 2, IsCenter: true);
79
foreach (
var
node in left)
83
foreach (
var
node in right)
91
private static List<
NodeLayout
> LayoutColumn(IReadOnlyList<RelationshipGraphNode> nodes, int x, int height)
95
var result = new List<
NodeLayout
>(nodes.Count);
105
private static EdgeLayout CreateEdge(int x1, int y1, int x2, int y2,
NodeLayout
node)
136
private sealed record GraphLayout(int Width, int Height, List<
NodeLayout
> Nodes, List<EdgeLayout> Edges);