Documentation ¶
Index ¶
- Constants
- func Parseattribute(name string) (attribute, error)
- type Camera
- type Context
- func (ctx *Context) Arc(x, y, radius, startAngle, endAngle float64)
- func (ctx *Context) BeginPath()
- func (ctx *Context) Clear(box internal.BoundingBox)
- func (ctx *Context) ClearRect(x, y, w, h float64)
- func (ctx *Context) ClosePath()
- func (ctx *Context) DrawImage(src interface{}, x, y float64)
- func (ctx *Context) Fill()
- func (ctx *Context) FillText(text string, x, y float64)
- func (ctx *Context) Get(attr attribute) js.Value
- func (ctx *Context) LineTo(x, y float64)
- func (ctx *Context) MeasureFontHeight() float64
- func (ctx *Context) MeasureTextWidth(text string) float64
- func (ctx *Context) MoveTo(x, y float64)
- func (ctx *Context) Pop(attr attribute)
- func (ctx *Context) Push(attr attribute, value interface{})
- func (ctx *Context) Rect(x, y, w, h float64)
- func (ctx *Context) Resize(w, h float64)
- func (ctx *Context) Stroke()
- type Renderer
Constants ¶
View Source
const ( // StrokeStyle is a attribute of type StrokeStyle StrokeStyle attribute = iota // FillStyle is a attribute of type FillStyle FillStyle // LineWidth is a attribute of type LineWidth LineWidth // Font is a attribute of type Font Font // TextBaseline is a attribute of type TextBaseline TextBaseline // GlobalAlpha is a attribute of type GlobalAlpha GlobalAlpha // StyleEnumSize is a attribute of type StyleEnumSize StyleEnumSize )
Variables ¶
This section is empty.
Functions ¶
func Parseattribute ¶
Parseattribute attempts to convert a string to a attribute
Types ¶
type Camera ¶
func (Camera) Crop ¶
func (c Camera) Crop(global internal.BoundingBox) internal.BoundingBox
func (*Camera) FitCenter ¶
func (c *Camera) FitCenter(global internal.BoundingBox)
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func GetContext ¶
func (*Context) Clear ¶
func (ctx *Context) Clear(box internal.BoundingBox)
func (*Context) MeasureFontHeight ¶
func (*Context) MeasureTextWidth ¶
Click to show internal directories.
Click to hide internal directories.