37 references to F
Aspire.Tray.Tests (37)
Helpers\TrayPanelSvgRenderer.cs (37)
28new XAttribute("width", F(width)), 29new XAttribute("height", F(height)), 30new XAttribute("viewBox", $"{F(-margin)} {F(-margin)} {F(width)} {F(height)}"), 41root.Add(new XElement(s_svg + "rect", new XAttribute("width", F(scene.Width)), new XAttribute("height", F(scene.Height)), 42new XAttribute("rx", F(TrayPanel.CornerRadius)), new XAttribute("fill", "#000"), new XAttribute("filter", "url(#shadow)"))); 57Paint("stroke", stroke.Color), new XAttribute("stroke-width", F(stroke.Width)), 71Paint("stroke", stroke.Color), new XAttribute("stroke-width", F(stroke.Width)), 118var line = new XElement(s_svg + "line", new XAttribute("x1", F(x1)), new XAttribute("y1", F(y1)), new XAttribute("x2", F(x2)), 119new XAttribute("y2", F(y2)), new XAttribute("stroke", color), new XAttribute("stroke-width", "0.5")); 133layer.Add(new XElement(s_svg + "text", new XAttribute("x", F(guide.Position)), new XAttribute("y", "-2"), 134new XAttribute("fill", "#00A8C0"), new XAttribute("text-anchor", "middle"), F(guide.Position))); 161PanelPathVerb.MoveTo => $"M{F(segment.X3)} {F(segment.Y3)}", 162PanelPathVerb.LineTo => $"L{F(segment.X3)} {F(segment.Y3)}", 163PanelPathVerb.CubicTo => $"C{F(segment.X1)} {F(segment.Y1)} {F(segment.X2)} {F(segment.Y2)} {F(segment.X3)} {F(segment.Y3)}", 182new XAttribute("x", F(x)), 183new XAttribute("font-size", F(size)), 195element.Add(new XAttribute("y", F(text.Baseline)), lines[0]); 200element.Add(new XElement(s_svg + "tspan", new XAttribute("x", F(x)), 201new XAttribute("y", F(text.Bounds.Y + size + i * lineHeight - 1)), lines[i])); 253: [new XAttribute(name, (color with { A = 255 }).ToHex()), new XAttribute(name + "-opacity", F(color.Alpha))]; 256=> [new XAttribute("x", F(rect.X)), new XAttribute("y", F(rect.Y)), new XAttribute("width", F(rect.Width)), new XAttribute("height", F(rect.Height))];