From a58043d58789f95046a567d2ad1bde55e352d5f0 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Thu, 3 Oct 2024 10:55:52 +0200 Subject: Remove SVG package (#214) Because the added value of having this was very small, and I don't want to confuse people about what's properly supported, I've removed the SVG package. As #196 showed, there can easily be conflicts between HTML and SVG, and the rendering isn't really set up for anything else than HTML. It's still easy to create SVG elements: `html.SVG` exists in this repo, and the rest is often just a string that can be included using `g.Raw`. Fixes #206--- svg/attributes.go | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 svg/attributes.go (limited to 'svg/attributes.go') diff --git a/svg/attributes.go b/svg/attributes.go deleted file mode 100644 index 52c9c61..0000000 --- a/svg/attributes.go +++ /dev/null @@ -1,33 +0,0 @@ -package svg - -import ( - g "github.com/maragudk/gomponents" -) - -func ClipRule(v string) g.Node { - return g.Attr("clip-rule", v) -} - -func D(v string) g.Node { - return g.Attr("d", v) -} - -func Fill(v string) g.Node { - return g.Attr("fill", v) -} - -func FillRule(v string) g.Node { - return g.Attr("fill-rule", v) -} - -func Stroke(v string) g.Node { - return g.Attr("stroke", v) -} - -func StrokeWidth(v string) g.Node { - return g.Attr("stroke-width", v) -} - -func ViewBox(v string) g.Node { - return g.Attr("viewBox", v) -} -- cgit 1.4.1