Interface: HorizonCanvasLayerCanvasInstance
An instance of a canvas within a MapCanvasLayer.
Implemented by
Properties
canvas
• Readonly
canvas: HTMLCanvasElement
This instance's canvas element.
Defined in
src/sdk/components/horizon/layers/HorizonCanvasLayer.tsx:21
context
• Readonly
context: CanvasRenderingContext2D
This instance's canvas 2D rendering context.
Defined in
src/sdk/components/horizon/layers/HorizonCanvasLayer.tsx:24
isDisplayed
• Readonly
isDisplayed: boolean
Whether this instance's canvas is displayed.
Defined in
src/sdk/components/horizon/layers/HorizonCanvasLayer.tsx:27
Methods
clear
▸ clear(): void
Clears this canvas.
Returns
void
Defined in
src/sdk/components/horizon/layers/HorizonCanvasLayer.tsx:30
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/horizon/layers/HorizonCanvasLayer.tsx:36