Interface: MapCanvasLayerCanvasInstance
An instance of a canvas within a MapCanvasLayer.
Hierarchy
MapCanvasLayerCanvasInstance
Implemented by
Properties
canvas
• Readonly
canvas: HTMLCanvasElement
This instance's canvas element.
Defined in
src/sdk/components/map/layers/MapCanvasLayer.tsx:17
context
• Readonly
context: CanvasRenderingContext2D
This instance's canvas 2D rendering context.
Defined in
src/sdk/components/map/layers/MapCanvasLayer.tsx:20
isDisplayed
• Readonly
isDisplayed: boolean
Whether this instance's canvas is displayed.
Defined in
src/sdk/components/map/layers/MapCanvasLayer.tsx:23
Methods
clear
▸ clear(): void
Clears this canvas.
Returns
void
Defined in
src/sdk/components/map/layers/MapCanvasLayer.tsx:26
reset
▸ reset(): void
Resets this instance's canvas. This will erase the canvas of all drawn pixels, reset its state (including all styles, transformations, and cached paths), and clear the Coherent GT command buffer associated with it.
Returns
void
Defined in
src/sdk/components/map/layers/MapCanvasLayer.tsx:32