Files
inventory-plus-plus/server/ui/svg/font_size.go
T
2026-07-18 18:24:37 -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"
}