Documentation ¶
Index ¶
- Constants
- type Canvas
- func (canvas *Canvas) Comment(s string) *Canvas
- func (canvas *Canvas) Commentf(format string, a ...interface{}) *Canvas
- func (canvas *Canvas) DrawGeometry(geo tegola.Geometry, id string, style string, pointStyle string, ...) int
- func (canvas *Canvas) DrawGrid(n int, label bool, style string)
- func (canvas *Canvas) DrawLine(l tegola.LineString, id string, style string, pointStyle string, ...)
- func (canvas *Canvas) DrawMathPoints(pts []maths.Pt, s ...string)
- func (canvas *Canvas) DrawMathSegments(ls []maths.Line, s ...string)
- func (canvas *Canvas) DrawMultiLine(ml tegola.MultiLine, id string, style string, pointStyle string, ...)
- func (canvas *Canvas) DrawMultiPolygon(mp tegola.MultiPolygon, id string, style string, pointStyle string, ...) int
- func (canvas *Canvas) DrawPoint(x, y int, fill string)
- func (canvas *Canvas) DrawPolygon(p tegola.Polygon, id string, style string, pointStyle string, drawPoints bool) int
- func (canvas *Canvas) DrawRegion(withGrid bool)
- func (canvas *Canvas) GroupFn(attr []string, fn func(c *Canvas))
- func (canvas *Canvas) Init(writer io.Writer, w, h int, grid bool) *Canvas
- type MinMax
- func (mm *MinMax) ExpandBy(n int64) *MinMax
- func (mm *MinMax) Fn() *MinMax
- func (mm MinMax) Height() int64
- func (mm *MinMax) IsZero() bool
- func (mm MinMax) Max() (int64, int64)
- func (mm MinMax) Min() (int64, int64)
- func (mm *MinMax) MinMax(m1 *MinMax) *MinMax
- func (mm *MinMax) MinMaxFn(fn func() *MinMax) *MinMax
- func (mm *MinMax) MinMaxPt(x, y int64) *MinMax
- func (mm *MinMax) OfGeometry(gs ...tegola.Geometry) *MinMax
- func (mm MinMax) SentinalPts() [][]int64
- func (mm *MinMax) String() string
- func (mm MinMax) Width() int64
Constants ¶
View Source
const DefaultSpacing = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
func (*Canvas) DrawGeometry ¶
func (*Canvas) DrawMathPoints ¶ added in v0.6.0
func (*Canvas) DrawMathSegments ¶ added in v0.6.0
func (*Canvas) DrawMultiLine ¶
func (*Canvas) DrawMultiPolygon ¶
func (*Canvas) DrawPolygon ¶
func (*Canvas) DrawRegion ¶
Click to show internal directories.
Click to hide internal directories.