Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ElementToPath ¶
convert this element to a path
func InitContext ¶
func InitContext()
Types ¶
type DefaultDocumentParser ¶
type DefaultDocumentParser struct { }
func NewDocumentParser ¶
func NewDocumentParser() DefaultDocumentParser
type Element ¶
type Element struct { Name string Attributes *dynmap.DynMap // map[string]string Children []*Element Content string }
Element is a representation of an SVG element.
func DecodeFirst ¶
DecodeFirst creates the first element from the decoder.
func NewElement ¶
func NewElement(token xml.StartElement) *Element
NewElement creates element from decoder token.
type SVGNormalizer ¶ added in v1.0.1
type SVGNormalizer struct {
SegmentOperators path.SegmentOperators
}
func (SVGNormalizer) SVGNormalize ¶ added in v1.0.1
parses the svg, and normalizes it and returns a new svg
Click to show internal directories.
Click to hide internal directories.