Skip to main content

Abstract Class: AbstractFlightPathLegRenderer<Args>

Defined in: src/sdk/components/map/AbstractFlightPathLegRenderer.ts:30

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

Extended by

Type Parameters

Type ParameterDefault type
Args extends any[][]

Constructors

Constructor

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

Returns

AbstractFlightPathLegRenderer<Args>

Properties

tempVector

protected readonly tempVector: CircleVector

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


geoCircleCache

protected readonly static geoCircleCache: GeoCircle[]

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


geoPointCache

protected readonly static geoPointCache: GeoPoint[]

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

Methods

render()

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

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

Renders a flight plan leg path to a canvas.

Parameters

ParameterTypeDescription
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


renderVector()

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

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

Renders a flight path vector.

Parameters

ParameterTypeDescription
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