25 lines
474 B
Go
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"
|
|
}
|