Skip to main content

Class: AbstractFlightPathLegRenderer<Args>

Renders flight plan leg paths one vector at a time, optionally excluding the ingress and/or egress transition vectors.

Type parameters

NameType
Argsextends any[] = []

Hierarchy

Constructors

constructor

new AbstractFlightPathLegRenderer<Args>(): AbstractFlightPathLegRenderer<Args>

Type parameters

NameType
Argsextends any[] = []

Returns

AbstractFlightPathLegRenderer<Args>

Properties

tempVector

Protected Readonly tempVector: CircleVector

Defined in

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


geoCircleCache

Static Protected Readonly geoCircleCache: GeoCircle[]

Defined in

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


geoPointCache

Static Protected Readonly geoPointCache: GeoPoint[]

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

Defined in

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


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

Defined in

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