Documentation
¶
Index ¶
- type Canvas
- func (c *Canvas) AddEventListner(eventType string, handler func(this js.Value, p []js.Value) interface{})
- func (c *Canvas) Clear()
- func (c *Canvas) DrawBorderChunk(x, y, width, height int, color string)
- func (c *Canvas) DrawFillChunk(x, y, width, height int, color string, isBorder bool)
- func (c *Canvas) DrawGrid(rows, cols, cellWidth, cellHeight int)
- func (c *Canvas) DrawImage(x, y, width, height int, src string)
- func (c *Canvas) Resize(width, height int)
- type Chunk
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct { // Chunks Chunks []Chunk // contains filtered or unexported fields }
func (*Canvas) AddEventListner ¶
func (*Canvas) DrawBorderChunk ¶
func (*Canvas) DrawFillChunk ¶
Click to show internal directories.
Click to hide internal directories.