Skip to main content

Class: FlightPathLegLineRenderer<Args>

Renders flight plan leg paths as lines, with support for different styles for each flight path vector in the leg.

Type parameters

NameType
Argsextends any[] = any[]

Hierarchy

Constructors

constructor

new FlightPathLegLineRenderer<Args>(styleSelector): FlightPathLegLineRenderer<Args>

Constructor.

Type parameters

NameType
Argsextends any[] = any[]

Parameters

NameTypeDescription
styleSelectorFlightPathLegLineStyleSelector<Args>A function which selects a style for each rendered vector.

Returns

FlightPathLegLineRenderer<Args>

Overrides

AbstractFlightPathLegRenderer.constructor

Defined in

src/sdk/components/map/FlightPathLegLineRenderer.ts:93

Properties

tempVector

Protected Readonly tempVector: CircleVector

Inherited from

AbstractFlightPathLegRenderer.tempVector

Defined in

src/sdk/components/map/AbstractFlightPathLegRenderer.ts:34


geoCircleCache

Static Protected Readonly geoCircleCache: GeoCircle[]

Overrides

AbstractFlightPathLegRenderer.geoCircleCache

Defined in

src/sdk/components/map/FlightPathLegLineRenderer.ts:60


geoPointCache

Static Protected Readonly geoPointCache: GeoPoint[]

Inherited from

AbstractFlightPathLegRenderer.geoPointCache

Defined in

src/sdk/components/map/AbstractFlightPathLegRenderer.ts:31

Methods

render

render(leg, context, streamStack, partsToRender, ...args): void

Renders a flight plan leg path to a canvas.

Parameters

NameTypeDescription
legLegDefinitionThe flight plan leg to render.
contextCanvasRenderingContext2DThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackThe path stream stack to which to render.
partsToRendernumberThe parts of the leg to render, as a combination of FlightPathLegRenderPart values.
...argsArgsAdditional arguments.

Returns

void

Overrides

AbstractFlightPathLegRenderer.render

Defined in

src/sdk/components/map/FlightPathLegLineRenderer.ts:100


renderVector

renderVector(vector, isIngress, isEgress, leg, context, streamStack, ...args): void

Renders a flight path vector.

Parameters

NameTypeDescription
vectorCircleVectorThe flight path vector to render.
isIngressbooleanWhether the vector is part of the ingress transition.
isEgressbooleanWhether the vector is part of the egress transition.
legLegDefinitionThe flight plan leg containing the vector to render.
contextCanvasRenderingContext2DThe canvas 2D rendering context to which to render.
streamStackGeoProjectionPathStreamStackThe path stream stack to which to render.
...argsArgs-

Returns

void

Overrides

AbstractFlightPathLegRenderer.renderVector

Defined in

src/sdk/components/map/FlightPathLegLineRenderer.ts:119