Documentation
¶
Index ¶
- Constants
- type Circle
- type Command
- type Ellipse
- type Group
- type Item
- type ItemType
- type Lexer
- type Line
- type Path
- type PolyLine
- type Polygon
- type Rect
- type Svg
- type Transform
- func (t *Transform) Apply(tuple Tuple) Tuple
- func (a *Transform) MultiplyWith(b Transform)
- func (t *Transform) RotateOrigin(angle float64)
- func (t *Transform) RotatePoint(angle float64, x float64, y float64)
- func (t *Transform) Scale(x float64, y float64)
- func (t *Transform) SkewX(angle float64)
- func (t *Transform) SkewY(angle float64)
- func (t *Transform) Translate(x float64, y float64)
- type Tuple
Constants ¶
View Source
const ( MOVETO = iota LINETO CURVETO )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
Id string
Stroke string
StrokeWidth int32
Fill string
FillRule string
Elements []interface{}
TransformString string
Transform *Transform // row, column
Parent *Group
Owner *Svg
}
func (*Group) UnmarshalXML ¶
Implements encoding.xml.Unmarshaler interface
type Lexer ¶
type Lexer struct {
Items chan Item
// contains filtered or unexported fields
}
func (*Lexer) ConsumeWhiteSpace ¶
type Path ¶
type Path struct {
ID string `xml:"id,attr"`
D string `xml:"d,attr"`
Style string `xml:"style,attr"`
// contains filtered or unexported fields
}
Path is
type PolyLine ¶
type PolyLine struct {
Id string `xml:"id,attr"`
Transform string `xml:"transform,attr"`
Style string `xml:"style,attr"`
Points string `xml:"points,attr"`
// contains filtered or unexported fields
}
PolyLine set of connected line segments that typically form a closed shape.
type Polygon ¶
type Polygon struct {
Id string `xml:"id,attr"`
Transform string `xml:"transform,attr"`
Style string `xml:"style,attr"`
Points string `xml:"points,attr"`
// contains filtered or unexported fields
}
Polygon Closed shape of straight line segments
type Svg ¶
type Transform ¶
type Transform [3][3]float64
func MultiplyTransforms ¶
func NewTransform ¶
func NewTransform() *Transform
func (*Transform) MultiplyWith ¶
func (*Transform) RotateOrigin ¶
func (*Transform) RotatePoint ¶
Click to show internal directories.
Click to hide internal directories.