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