Skip to main content

Class: CustomFlightPathLegRenderer<Args>

Defined in: src/sdk/components/map/CustomFlightPathLegRenderer.ts:9

Renders flight plan leg paths one vector at a time, optionally excluding the ingress and/or egress transition vectors. The rendering behavior for each vector is controlled by a function passed to the class constructor.

Extends

Type Parameters

Type Parameter
Args extends any[]

Constructors

Constructor

new CustomFlightPathLegRenderer<Args>(renderVector): CustomFlightPathLegRenderer<Args>

Defined in: src/sdk/components/map/CustomFlightPathLegRenderer.ts:14

Constructor.

Parameters

ParameterTypeDescription
renderVector(vector, isIngress, isEgress, leg, context, streamStack, ...args) => voidA function which renders individual flight path vectors.

Returns

CustomFlightPathLegRenderer<Args>

Overrides

AbstractFlightPathLegRenderer.constructor

Properties

renderVector()

protected readonly renderVector: (vector, isIngress, isEgress, leg, context, streamStack, ...args) => void

Defined in: src/sdk/components/map/CustomFlightPathLegRenderer.ts:15

A function which renders individual flight path vectors.

Parameters

ParameterType
vectorCircleVector
isIngressboolean
isEgressboolean
legLegDefinition
contextCanvasRenderingContext2D
streamStackGeoProjectionPathStreamStack
...argsArgs

Returns

void

Inherited from

AbstractFlightPathLegRenderer.renderVector


tempVector

protected readonly tempVector: CircleVector

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

Inherited from

AbstractFlightPathLegRenderer.tempVector


geoCircleCache

protected readonly static geoCircleCache: GeoCircle[]

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

Inherited from

AbstractFlightPathLegRenderer.geoCircleCache


geoPointCache

protected readonly static geoPointCache: GeoPoint[]

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

Inherited from

AbstractFlightPathLegRenderer.geoPointCache

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

Inherited from

AbstractFlightPathLegRenderer.render