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