Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawRectangle ¶
func LoadSvgFile ¶
Types ¶
type SVG ¶
type SVG struct {
Width string `xml:"width,attr"`
Height string `xml:"height,attr"`
Fill string `xml:"fill,attr"`
ViewBox string `xml:"viewBox,attr"`
Paths []*Path `xml:"path"`
// Some of the SVG files contain <circle> elements, not just <path>
// elements. IconVG doesn't have circles per se. Instead, we convert such
// circles to paired arcTo commands, tacked on to the first path.
//
// In general, this isn't correct if the circles and the path overlap, but
// that doesn't happen in the specific case of the Material Design icons.
Circles []Circle `xml:"circle"`
}
Click to show internal directories.
Click to hide internal directories.