CanvasSource
API Reference (beta) for <CanvasSource />
Property | Type | Description |
---|---|---|
coordinates required | [[number, number], [number, number], [number, number], [number, number]] | Four geographical coordinates denoting where to place the corners of the canvas, specified in `[longitude, latitude]` pairs. |
id optional | string | - |
source optional bindable | CanvasSource | - |
children optional | Snippet<[]> | - |
animate optional | boolean | Whether the canvas source is animated. If the canvas is static (i.e. pixels do not need to be re-read on every frame), `animate` should be set to `false` to improve performance. |
canvas optional | string | HTMLCanvasElement | Canvas source from which to read pixels. Can be a string representing the ID of the canvas element, or the `HTMLCanvasElement` itself. |