14 references to PanelGuideKind
Aspire.Tray.Tests (14)
Helpers\TrayPanelSvgRenderer.cs (4)
131case PanelGuideKind.Column: 136case PanelGuideKind.Center: 139case PanelGuideKind.Baseline: 142case PanelGuideKind.Box:
src\Aspire.Tray\Common\TrayPanel.cs (4)
959_guides.Add(new(PanelGuideKind.Column, x, label, all)); 969_guides.Add(new(PanelGuideKind.Baseline, HeaderBaseline, "header baseline", new(TextLeft, 0, Width - TextLeft, HeaderHeight))); 1053void Line(double y, string label, PanelRect bounds) => _guides.Add(new(PanelGuideKind.Center, y, label, bounds)); 1054void Box(PanelRect bounds, string label) => _guides.Add(new(PanelGuideKind.Box, bounds.CenterY, label, bounds));
src\Aspire.Tray\Common\TrayPanelScene.cs (1)
266internal sealed record PanelGuide(PanelGuideKind Kind, double Position, string Label, PanelRect Bounds);
TrayPanelTests.cs (5)
875Assert.True(lines.Any(guide => guide.Kind == PanelGuideKind.Center && Math.Abs(guide.Position - capMiddle) < 0.01 876|| guide.Kind == PanelGuideKind.Baseline && Math.Abs(guide.Position - text.Baseline) < 0.01), 877$"{name}: \"{text.Text}\" has its capitals centered at {capMiddle:F2}, on none of the lines {string.Join(", ", lines.Where(l => l.Kind != PanelGuideKind.Column).Select(l => $"{l.Label} {l.Position}"))}"); 888var centers = scene.Guides.Where(guide => guide.Kind == PanelGuideKind.Center).ToList(); 905foreach (var box in scene.Guides.Where(guide => guide.Kind == PanelGuideKind.Box))