Add stroke-width SVG attribute (#116)
This commit is contained in:
parent
b12942fb32
commit
a5a7242ae0
@ -24,6 +24,10 @@ 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)
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ func TestSimpleAttributes(t *testing.T) {
|
||||
"fill": Fill,
|
||||
"fill-rule": FillRule,
|
||||
"stroke": Stroke,
|
||||
"stroke-width": StrokeWidth,
|
||||
"viewBox": ViewBox,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user