Documentation
¶
Index ¶
- func ColorString(name styleop, value data.Color) string
- func FloatString(name styleop, value float32) string
- func NewCanvas(size data.Size, units data.Unit) data.Canvas
- func StyleString(name styleop, value interface{}) string
- func UnitString(name styleop, value float32, unit data.Unit) string
- type Element
- func (e *Element) Attr(name, value string)
- func (e *Element) Attrs() []xml.Attr
- func (e *Element) Circle(centre data.Point, radius float32) data.CanvasElement
- func (e *Element) Class(value string) data.CanvasElement
- func (e *Element) ClosePath() data.CanvasPath
- func (e *Element) CubicTo(pt, c1, c2 data.Point) data.CanvasPath
- func (e *Element) Desc(value string) data.CanvasGroup
- func (e *Element) Ellipse(centre data.Point, radius data.Size) data.CanvasElement
- func (e *Element) Fill(color data.Color, opacity float32) data.CanvasStyle
- func (e *Element) FillRule(rule data.FillRule) data.CanvasStyle
- func (e *Element) FontSize(size float32, unit data.Unit) data.CanvasStyle
- func (e *Element) Group(children ...data.CanvasElement) data.CanvasGroup
- func (e *Element) Id(value string) data.CanvasElement
- func (e *Element) Line(p1, p2 data.Point) data.CanvasElement
- func (e *Element) LineCap(cap data.LineCap) data.CanvasStyle
- func (e *Element) LineJoin(join data.LineJoin) data.CanvasStyle
- func (e *Element) LineTo(pt data.Point) data.CanvasPath
- func (e *Element) MarshalXML(x *xml.Encoder, start xml.StartElement) error
- func (e *Element) MiterLimit(limit float32) data.CanvasStyle
- func (e *Element) MoveTo(pt data.Point) data.CanvasPath
- func (e *Element) NoFill() data.CanvasStyle
- func (e *Element) NoStroke() data.CanvasStyle
- func (e *Element) Origin() data.Point
- func (e *Element) Path(pts []data.Point) data.CanvasPath
- func (e *Element) QuadraticTo(pt, c data.Point) data.CanvasPath
- func (e *Element) Rect(pt data.Point, sz data.Size) data.CanvasElement
- func (e *Element) Rotate(deg float32) data.CanvasTransform
- func (e *Element) RotateAround(deg float32, pt data.Point) data.CanvasTransform
- func (e *Element) Scale(size data.Size) data.CanvasTransform
- func (e *Element) SetOrigin(pt data.Point)
- func (e *Element) SetSize(sz data.Size)
- func (e *Element) Size() data.Size
- func (e *Element) SkewX(skew float32) data.CanvasTransform
- func (e *Element) SkewY(skew float32) data.CanvasTransform
- func (e *Element) Span(cdata string) data.CanvasText
- func (e *Element) String() string
- func (e *Element) Stroke(color data.Color, opacity float32) data.CanvasStyle
- func (e *Element) StrokeWidth(width float32) data.CanvasStyle
- func (e *Element) Style(styles ...data.CanvasStyle) data.CanvasElement
- func (e *Element) Text(pt data.Point, children ...data.CanvasText) data.CanvasElement
- func (e *Element) TextAnchor(align data.TextAlign) data.CanvasStyle
- func (e *Element) Title(value string) data.Canvas
- func (e *Element) Transform(op ...data.CanvasTransform) data.CanvasElement
- func (e *Element) Translate(pt data.Point) data.CanvasTransform
- func (e *Element) Version(value string) data.Canvas
- func (e *Element) Write(fmt data.Writer, w io.Writer) error
- type Style
- type Transform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorString ¶
func FloatString ¶
func StyleString ¶
func StyleString(name styleop, value interface{}) string
Types ¶
type Element ¶
type Element struct {
XMLName xml.Name
XMLAttrs []*xml.Attr
// contains filtered or unexported fields
}
func (*Element) ClosePath ¶
func (e *Element) ClosePath() data.CanvasPath
func (*Element) Group ¶
func (e *Element) Group(children ...data.CanvasElement) data.CanvasGroup
func (*Element) MarshalXML ¶
func (*Element) MiterLimit ¶
func (e *Element) MiterLimit(limit float32) data.CanvasStyle
func (*Element) NoFill ¶
func (e *Element) NoFill() data.CanvasStyle
func (*Element) NoStroke ¶
func (e *Element) NoStroke() data.CanvasStyle
func (*Element) QuadraticTo ¶
func (e *Element) QuadraticTo(pt, c data.Point) data.CanvasPath
func (*Element) RotateAround ¶
func (*Element) StrokeWidth ¶
func (e *Element) StrokeWidth(width float32) data.CanvasStyle
func (*Element) Style ¶
func (e *Element) Style(styles ...data.CanvasStyle) data.CanvasElement
func (*Element) Text ¶
func (e *Element) Text(pt data.Point, children ...data.CanvasText) data.CanvasElement
func (*Element) TextAnchor ¶
func (e *Element) TextAnchor(align data.TextAlign) data.CanvasStyle
func (*Element) Transform ¶
func (e *Element) Transform(op ...data.CanvasTransform) data.CanvasElement
Click to show internal directories.
Click to hide internal directories.