This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user