23 lines
306 B
Go
23 lines
306 B
Go
package svg
|
|
|
|
type (
|
|
Polygon = VoidElement[PolygonTag, PolygonAttribute]
|
|
|
|
PolygonTag struct{}
|
|
|
|
PolygonAttribute interface {
|
|
Attribute
|
|
IsPolygonAttribute()
|
|
}
|
|
)
|
|
|
|
func (PolygonTag) PrintTag() string {
|
|
return "path"
|
|
}
|
|
|
|
func (Points) IsPolygonAttribute() {
|
|
}
|
|
|
|
func (PathLength) IsPolygonAttribute() {
|
|
}
|