Class: AbstractFlightPathLegRenderer<Args>
Renders flight plan leg paths one vector at a time, optionally excluding the ingress and/or egress transition vectors.
Type parameters
Name | Type |
---|---|
Args | extends any [] = [] |
Hierarchy
AbstractFlightPathLegRenderer
Constructors
constructor
• new AbstractFlightPathLegRenderer<Args
>(): AbstractFlightPathLegRenderer
<Args
>
Type parameters
Name | Type |
---|---|
Args | extends 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
Name | Type | Description |
---|---|---|
leg | LegDefinition | The flight plan leg to render. |
context | CanvasRenderingContext2D | The canvas 2D rendering context to which to render. |
streamStack | GeoProjectionPathStreamStack | The path stream stack to which to render. |
partsToRender | number | The parts of the leg to render, as a combination of FlightPathLegRenderPart values. |
...args | Args | Additional 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
Name | Type | Description |
---|---|---|
vector | CircleVector | The flight path vector to render. |
isIngress | boolean | Whether the vector is part of the ingress transition. |
isEgress | boolean | Whether the vector is part of the egress transition. |
leg | LegDefinition | The flight plan leg containing the vector to render. |
context | CanvasRenderingContext2D | The canvas 2D rendering context to which to render. |
streamStack | GeoProjectionPathStreamStack | The path stream stack to which to render. |
...args | Args | - |
Returns
void
Defined in
src/sdk/components/map/AbstractFlightPathLegRenderer.ts:136