svg

package
v0.0.0-...-6b7e659 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point struct {
	X float32
	Y float32
}

type PolyLine

type PolyLine struct {
	ID          string `xml:"id,attr"`
	Stroke      string `xml:"stroke,attr"`
	StrokeWidth int    `xml:"stroke-width,attr"`
	PointsRaw   string `xml:"points,attr"`
	Points      []Point
}

type SVG

type SVG struct {
	Width   int    `xml:"width,attr"`
	Height  int    `xml:"height,attr"`
	Style   string `xml:"style,attr"`
	ViewBox string `xml:"viewBox,attr"`

	PolyLines []PolyLine `xml:"polyline"`
}

func Parse

func Parse(data []byte) (*SVG, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL