Helpers\TrayPanelSvgRenderer.cs (16)
27var root = new XElement(s_svg + "svg",
33var defs = new XElement(s_svg + "defs");
37defs.Add(new XElement(s_svg + "filter", new XAttribute("id", "shadow"),
39new XElement(s_svg + "feDropShadow", new XAttribute("dx", "0"), new XAttribute("dy", "6"),
41root.Add(new XElement(s_svg + "rect", new XAttribute("width", F(scene.Width)), new XAttribute("height", F(scene.Height)),
53current.Add(new XElement(s_svg + "path", new XAttribute("d", ToPathData(fill.Path)), Paint("fill", fill.Color)));
56current.Add(new XElement(s_svg + "path", new XAttribute("d", ToPathData(stroke.Path)), new XAttribute("fill", "none"),
69FillPathCommand fill => new XElement(s_svg + "path", new XAttribute("d", ToPathData(fill.Path)), Paint("fill", fill.Color)),
70StrokePathCommand stroke => new XElement(s_svg + "path", new XAttribute("d", ToPathData(stroke.Path)), new XAttribute("fill", "none"),
79? new XElement(s_svg + "rect", Bounds(logo.Bounds), new XAttribute("rx", "6"), new XAttribute("fill", "#512BD4"))
80: new XElement(s_svg + "image", Bounds(logo.Bounds),
85defs.Add(new XElement(s_svg + "clipPath", new XAttribute("id", id), new XElement(s_svg + "rect", Bounds(clip.Bounds))));
86var group = new XElement(s_svg + "g", new XAttribute("clip-path", $"url(#{id})"));
130var element = new XElement(s_svg + "text",
148element.Add(new XElement(s_svg + "tspan", new XAttribute("x", F(x)),