This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package svg
|
||||
|
||||
type (
|
||||
Y1 struct {
|
||||
*LengthAttr[Y1Tag]
|
||||
}
|
||||
Y1P struct {
|
||||
PercentageAttr[Y1Tag]
|
||||
}
|
||||
|
||||
Y1Tag struct{}
|
||||
)
|
||||
|
||||
func (l *Length) AsY1() Y1 {
|
||||
return Y1{LengthAttr: (*LengthAttr[Y1Tag])(l)}
|
||||
}
|
||||
|
||||
func (p Percentage) AsY1() Y1P {
|
||||
return Y1P{PercentageAttr: (PercentageAttr[Y1Tag])(p)}
|
||||
}
|
||||
|
||||
func (Y1Tag) PrintTag() string {
|
||||
return "y1"
|
||||
}
|
||||
Reference in New Issue
Block a user