Skip to main content

Interface: MapMultiLineAirspaceShape

Defined in: src/sdk/components/map/MapMultiLineAirspaceRenderer.ts:11

A projected airspace shape which can render its border as optionally offset lines.

Methods

renderLine()

renderLine(context, offset, lineWidth, strokeStyle, dash, stream?): void

Defined in: src/sdk/components/map/MapMultiLineAirspaceRenderer.ts:23

Renders this shape's border with a line.

Parameters

ParameterTypeDescription
contextCanvasRenderingContext2DThe canvas rendering context to which to render.
offsetnumberThe offset, in pixels, of the rendered line with respect to this shape's border. A positive offset will shift the line outside of the border.
lineWidthnumberThe stroke width of the line to render.
strokeStylestring | CanvasPattern | CanvasGradientThe stroke style of the line to render.
dashnumber[]The dash of the line to render.
stream?PathStreamThe path stream to which to render. If undefined, the path will be rendered directly to the canvas rendering context.

Returns

void