prototyped svg reports
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package svg
|
||||
|
||||
type (
|
||||
X1 struct {
|
||||
*LengthAttr[X1Tag]
|
||||
}
|
||||
X1P struct {
|
||||
PercentageAttr[X1Tag]
|
||||
}
|
||||
|
||||
X1Tag struct{}
|
||||
)
|
||||
|
||||
func (l *Length) AsX1() X1 {
|
||||
return X1{LengthAttr: (*LengthAttr[X1Tag])(l)}
|
||||
}
|
||||
|
||||
func (p Percentage) AsX1() X1P {
|
||||
return X1P{PercentageAttr: (PercentageAttr[X1Tag])(p)}
|
||||
}
|
||||
|
||||
func (X1Tag) PrintTag() string {
|
||||
return "x1"
|
||||
}
|
||||
Reference in New Issue
Block a user