prototyped svg reports
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
Tests / Go tests (push) Failing after 20s

This commit is contained in:
2026-08-20 00:35:13 -06:00
parent 4748eda41e
commit 50adc8e2de
106 changed files with 5450 additions and 46 deletions
+99
View File
@@ -0,0 +1,99 @@
package svg
type (
// SVG models an <svg> element
SVG struct {
Element[SVGTag, SVGAttribute, SVGChildren]
}
SVGTag struct{}
// SVGAttributes are Attributes allowed on SVGs
SVGAttribute interface {
Attribute
IsSVGAttribute()
}
SVGChildren = MarshalerReader
)
// NewSVG create a SVG with the common version 1.1 and svg namespace atributes
func NewSVG() *SVG {
return &SVG{
Element: Element[SVGTag, SVGAttribute, MarshalerReader]{
Attributes: []SVGAttribute{
SVGVersion{
Major: 1,
Minor: 1,
},
XMLNSW32000SVG,
},
},
}
}
func (t SVGTag) PrintTag() string {
return "svg"
}
func (X) IsSVGAttribute() {
}
func (XP) IsSVGAttribute() {
}
func (Y) IsSVGAttribute() {
}
func (YP) IsSVGAttribute() {
}
func (Width) IsSVGAttribute() {
}
func (WidthP) IsSVGAttribute() {
}
func (Height) IsSVGAttribute() {
}
func (HeightP) IsSVGAttribute() {
}
func (ViewBox) IsSVGAttribute() {
}
func (Style) IsSVGAttribute() {
}
func (Class) IsSVGAttribute() {
}
func (PreserveAspectRatio) IsSVGAttribute() {
}
func (SVGVersion) IsSVGAttribute() {
}
func (XMLNS) IsSVGAttribute() {
}
func (Transform) IsSVGAttribute() {
}
func (TransformRotate) IsSVGAttribute() {
}
func (TransformRotateAbout) IsSVGAttribute() {
}
func (TransformTranslate) IsSVGAttribute() {
}
func (TransformSkewX) IsSVGAttribute() {
}
func (TransformSkewY) IsSVGAttribute() {
}
func (TransformScale) IsSVGAttribute() {
}