Files
inventory-plus-plus/server/ui/svg/stroke_width.go
T
angel 50adc8e2de
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
Tests / Go tests (push) Failing after 20s
prototyped svg reports
2026-08-20 00:35:13 -06:00

25 lines
474 B
Go

package svg
type (
StrokeWidth struct {
*LengthAttr[StrokeWidthTag]
}
StrokeWidthP struct {
PercentageAttr[StrokeWidthTag]
}
StrokeWidthTag struct{}
)
func (l *Length) AsStrokeWidth() StrokeWidth {
return StrokeWidth{LengthAttr: (*LengthAttr[StrokeWidthTag])(l)}
}
func (p Percentage) AsStrokeWidth() StrokeWidthP {
return StrokeWidthP{PercentageAttr: (PercentageAttr[StrokeWidthTag])(p)}
}
func (StrokeWidthTag) PrintTag() string {
return "stroke-width"
}