Files
inventory-plus-plus/server/ui/svg/font_size.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
429 B
Go

package svg
type (
FontSize struct {
*LengthAttr[FontSizeTag]
}
FontSizeP struct {
PercentageAttr[FontSizeTag]
}
FontSizeTag struct{}
)
func (l *Length) AsFontSize() FontSize {
return FontSize{LengthAttr: (*LengthAttr[FontSizeTag])(l)}
}
func (p Percentage) AsFontSize() FontSizeP {
return FontSizeP{PercentageAttr: (PercentageAttr[FontSizeTag])(p)}
}
func (FontSizeTag) PrintTag() string {
return "font-size"
}