Helpers\TrayPanelSvgRenderer.cs (31)
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)),
110PanelPathVerb.MoveTo => $"M{F(segment.X3)} {F(segment.Y3)}",
111PanelPathVerb.LineTo => $"L{F(segment.X3)} {F(segment.Y3)}",
112PanelPathVerb.CubicTo => $"C{F(segment.X1)} {F(segment.Y1)} {F(segment.X2)} {F(segment.Y2)} {F(segment.X3)} {F(segment.Y3)}",
131new XAttribute("x", F(x)),
132new XAttribute("font-size", F(size)),
143element.Add(new XAttribute("y", F(text.Bounds.CenterY + size * 0.35)), lines[0]);
148element.Add(new XElement(s_svg + "tspan", new XAttribute("x", F(x)),
149new XAttribute("y", F(text.Bounds.Y + size + i * lineHeight - 1)), lines[i]));
201: [new XAttribute(name, (color with { A = 255 }).ToHex()), new XAttribute(name + "-opacity", F(color.Alpha))];
204=> [new XAttribute("x", F(rect.X)), new XAttribute("y", F(rect.Y)), new XAttribute("width", F(rect.Width)), new XAttribute("height", F(rect.Height))];