Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { XMLName xml.Name Nodes []Node `xml:",any"` Width string `xml:"width,attr"` Height string `xml:"height,attr"` ViewBox string `xml:"viewBox,attr"` Fill string `xml:"fill,attr"` RawPoints string `xml:"points,attr"` D string `xml:"d,attr"` ID string `xml:"id,attr"` }
Node is a generic SVG XML node
func (Node) BuildPolygons ¶
type Svg ¶
type Svg struct { XMLName xml.Name `xml:"svg"` Version string `xml:"version,attr"` Width string `xml:"width,attr"` Height string `xml:"height,attr"` ViewBox string `xml:"viewBox,attr"` Polygons []Polygon `xml:"polygon"` }
Svg is the top level <svg/> node
func (Svg) GenerateOutput ¶
GenerateOutput converts the raw SVG data into HTML DOM nodes and associated CSS rules
Click to show internal directories.
Click to hide internal directories.