Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command is a representation of an SVG path command and its parameters.
func (*Command) IsAbsolute ¶
IsAbsolute returns true is the SVG path command is absolute.
type Path ¶
type Path struct {
Subpaths []*Subpath
}
Path is a collection of all the subpaths in 'd' attribute.
func PathParser ¶
PathParser takes value of a 'd' attribute and transforms it to collection of subpaths and commands.
type PathParserError ¶
type PathParserError struct {
// contains filtered or unexported fields
}
PathParserError contains errors which have occured when parsing 'd' attribute of a path element.
func (PathParserError) Error ¶
func (err PathParserError) Error() string
type Styles ¶
type Styles []*Style
Styles is a collection of Style objects.
func StyleParser ¶
StyleParser takes value of a style attribute and converts it to Style objects.
Click to show internal directories.
Click to hide internal directories.