32 lines
374 B
Go
32 lines
374 B
Go
package svg
|
|
|
|
type (
|
|
Line = VoidElement[LineTag, LineAttribute]
|
|
|
|
LineTag struct{}
|
|
|
|
LineAttribute interface {
|
|
Attribute
|
|
IsLineAttribute()
|
|
}
|
|
)
|
|
|
|
func (LineTag) PrintTag() string {
|
|
return "line"
|
|
}
|
|
|
|
func (X1) IsLineAttribute() {
|
|
}
|
|
|
|
func (X2) IsLineAttribute() {
|
|
}
|
|
|
|
func (Y1) IsLineAttribute() {
|
|
}
|
|
|
|
func (Y2) IsLineAttribute() {
|
|
}
|
|
|
|
func (PathLength) IsLineAttribute() {
|
|
}
|