Versions in this module Expand all Collapse all v0 v0.0.8 Aug 20, 2026 v0.0.7 Aug 8, 2026 Changes in this version type SVG + func (S *SVG) GetBackground() RectDef + func (S *SVG) RemoveBackground() + func (S *SVG) WriteFileIndented(filename, indentPrefix, indentString string) error v0.0.6 Aug 8, 2026 v0.0.5 Aug 8, 2026retracted v0.0.4 Jul 26, 2026 v0.0.3 Jul 26, 2026 Changes in this version + type NumberAttr interface v0.0.2 Jul 25, 2026 Changes in this version + const FindAll + const FindFirst + type AnchorDef struct + Circle []CircleDef + Download string + G []GroupDef + Href string + HrefLang string + Id string + Rect []RectDef + ReferrerPolicy string + Rel string + Target string + Type string + Xform string + type CircleDef struct + CX string + CY string + Id string + Radius string + Style string + Xform string + type DefsDef struct + Id string + type GroupDef struct + A []AnchorDef + Circle []CircleDef + G []GroupDef + Id string + Path []PathDef + Rect []RectDef + Style string + Text []TextDef + Xform string + func (G *GroupDef) FindPathsById(id any, findFirst bool) ([]*PathDef, error) + type PathDef struct + D string + Id string + Style string + Title string + Xform string + type RectDef struct + Height string + Id string + Style string + Width string + X string + Xform string + Y string + func NewRect[N string | numberAttr](id, style string, x, y, width, height N) RectDef + type SVG struct + A []AnchorDef + Circle []CircleDef + Defs DefsDef + G []GroupDef + Height string + Id string + Path []PathDef + Rect []RectDef + Text []TextDef + Title string + Version string + ViewBox string + Width string + XMLNS string + XMLName xml.Name + func NewFromBytes(xmlBytes []byte) (*SVG, error) + func NewFromFile(filename string) (*SVG, error) + func (S *SVG) AddBackground(colorDef string) + func (S *SVG) FindGroupsById(id any, findFirst bool) ([]*GroupDef, error) + func (S *SVG) FindPathsById(id any, findFirst bool) ([]*PathDef, error) + func (S *SVG) GetViewBox() (ViewBoxDef, error) + func (S *SVG) GetXml() ([]byte, error) + func (S *SVG) GetXmlIndented(indentPrefix, indentString string) ([]byte, error) + func (S *SVG) SetViewBox(box ViewBoxDef) + func (S *SVG) WriteFile(filename string) error + type TSpanDef struct + Id string + Label string + X string + Xform string + Y string + type TextDef struct + Height string + Id string + Label string + Style string + TSpan []TSpanDef + TextLength string + Width string + X string + Xform string + Y string + type ViewBoxDef struct + Height float64 + Width float64 + X float64 + Y float64 v0.0.1 Jul 25, 2026retracted