Class: FlightPlanLegData
Represents a flight plan leg data object. It stores lots of useful info about the leg in handy dandy subscribables.
Implements
Constructors
constructor
• new FlightPlanLegData(leg
, segment
, segmentData
, planIndex
, isAdvancedVnav
, store
, plan
, globalLegIndex
, isDirectToRandom?
): FlightPlanLegData
Creates a new leg data object.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
leg | LegDefinition | undefined | The leg definition. |
segment | FlightPlanSegment | undefined | The containing segment. |
segmentData | undefined | FlightPlanSegmentData | undefined | The containing segment data. Not needed for random direct to. |
planIndex | number | undefined | The index of the flight plan that this leg belongs to. |
isAdvancedVnav | boolean | undefined | Whether this is for advanced vnav. |
store | FlightPlanStore | undefined | The flight plan store. |
plan | FlightPlan | undefined | The flight plan that this leg exists in. |
globalLegIndex | number | undefined | The global leg index. |
isDirectToRandom | boolean | false | Whether this leg is for a direct to random. |
Returns
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:475
Properties
altDesc
• Readonly
altDesc: Subject
<AltitudeRestrictionType
>
The altitude restriction type to use for the altitude constraint.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:292
altDescDisplay
• Readonly
altDescDisplay: MappedSubject
<[boolean
, AltitudeRestrictionType
, boolean
], AltitudeRestrictionType
>
The alt desc, but for display in a list.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:336
altitude1
• Readonly
altitude1: NumberUnitSubject
<Distance
, SimpleUnit
<Distance
>>
The altitude 1 to use for the altitude constraint.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:295
altitude1Display
• Readonly
altitude1Display: NumberUnitSubject
<Distance
, SimpleUnit
<Distance
>>
The altitude 1 to use for the altitude constraint, but for display in a list.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:322
altitude2
• Readonly
altitude2: NumberUnitSubject
<Distance
, SimpleUnit
<Distance
>>
The altitude 2 to use for the altitude constraint.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:298
altitude2Display
• Readonly
altitude2Display: NumberUnitSubject
<Distance
, SimpleUnit
<Distance
>>
The altitude 2 to use for the altitude constraint, but for display in a list.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:325
courseRounded
• Readonly
courseRounded: number
The leg course, rounded, and with 0 as 360.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:441
displayAltitude1AsFlightLevel
• Readonly
displayAltitude1AsFlightLevel: Subject
<boolean
>
Whether the altitude 1 should be displayed as a flight level.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:301
displayAltitude1AsFlightLevelDisplay
• Readonly
displayAltitude1AsFlightLevelDisplay: MappedSubject
<[boolean
, boolean
], boolean
>
Whether to display altitude 1 as a flight level, but for display in a list.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:365
displayAltitude2AsFlightLevel
• Readonly
displayAltitude2AsFlightLevel: Subject
<boolean
>
Whether the altitude 2 should be displayed as a flight level.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:304
displayAltitude2AsFlightLevelDisplay
• Readonly
displayAltitude2AsFlightLevelDisplay: MappedSubject
<[boolean
, boolean
], boolean
>
Whether to display altitude 2 as a flight level, but for display in a list.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:374
distance
• Readonly
distance: NumberUnitSubject
<Distance
, SimpleUnit
<Distance
>>
The leg's total distance, not cut short by ingress/egress turn radii. Changes when active leg.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:444
distanceCumulative
• Readonly
distanceCumulative: NumberUnitSubject
<Distance
, SimpleUnit
<Distance
>>
The cumulative distance up to the end of this leg.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:447
estimatedTimeEnroute
• Readonly
estimatedTimeEnroute: NumberUnitSubject
<Duration
, SimpleUnit
<Duration
>>
Estimated time Enroute of the leg, in seconds duration. How long it will take to fly the leg.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:453
estimatedTimeEnrouteCumulative
• Readonly
estimatedTimeEnrouteCumulative: NumberUnitSubject
<Duration
, SimpleUnit
<Duration
>>
Cumulative ETE. How long it would take from the current position to the end of this leg.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:456
estimatedTimeOfArrival
• Readonly
estimatedTimeOfArrival: Subject
<number
>
Estimated Time of Arrival of the leg, in UTC milliseconds from midnight.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:459
fpa
• Readonly
fpa: Subject
<number
>
This leg's flight path angle, in degrees, or NaN
if there is no defined flight path angle. Positive values
indicate a descending path.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:414
fuelRemaining
• Readonly
fuelRemaining: NumberUnitSubject
<Weight
, SimpleUnit
<Weight
>>
The estimated fuel remaining at the end of the leg.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:450
globalLegIndex
• Readonly
globalLegIndex: Subject
<number
>
The global index of this leg.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:241
initialDtk
• Readonly
initialDtk: BasicNavAngleSubject
The initial DTK of the leg. Magnetic.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:438
isActiveLeg
• Readonly
isActiveLeg: Subject
<boolean
>
Whether this is the active leg in the flight plan.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:275
isAltitudeCyan
• Readonly
isAltitudeCyan: MappedSubject
<[boolean
, NumberUnitInterface
<Distance
, SimpleUnit
<Distance
>>, boolean
, boolean
], boolean
>
Whether this leg's altitude should be display in cyan or not.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:328
isAltitudeDesignated
• Readonly
isAltitudeDesignated: Subject
<boolean
>
Whether the altitude constraint is designated or not.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:307
isAltitudeEditable
• Readonly
isAltitudeEditable: Subject
<boolean
>
Whether this leg's altitude constraint is editable.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:316
isAltitudeEdited
• Readonly
isAltitudeEdited: Subject
<boolean
>
Whether this leg's altitude constraint is different from the published constraint.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:310
isAltitudeEditedDisplay
• Readonly
isAltitudeEditedDisplay: MappedSubject
<[boolean
, boolean
], boolean
>
Whether the altitude is edited, but for display in a list.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:347
isAltitudeInvalid
• Readonly
isAltitudeInvalid: Subject
<boolean
>
Whether this leg's altitude constraint is invalid or not.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:313
isAltitudeInvalidDisplay
• Readonly
isAltitudeInvalidDisplay: MappedSubject
<[boolean
, boolean
], boolean
>
Whether the altitude is invalid, but for display in a list.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:356
isAltitudeVisible
• Readonly
isAltitudeVisible: Subject
<boolean
>
Whether this leg's altitude constraint is visible.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:319
isApproachRunwayLeg
• Readonly
isApproachRunwayLeg: boolean
Whether this leg is a runway in the approach segment.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:266
isBehindActiveLeg
• Readonly
isBehindActiveLeg: Subject
<boolean
>
Whether this leg is before the active leg.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:278
isDirectToRandom
• Readonly
isDirectToRandom: boolean
= false
Whether this leg is for a direct to random.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:484
isDtoLeg
• Readonly
isDtoLeg: MappedSubscribable
<boolean
>
Whether this is a direct to leg.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:281
isEditableDisplay
• Readonly
isEditableDisplay: MappedSubject
<[boolean
, boolean
], boolean
>
Whether the altitude is editable, but for display in a list.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:383
isFirstLegInPlan
• Readonly
isFirstLegInPlan: Subject
<boolean
>
Whether this is currently the first leg in the plan.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:272
isFirstLegInSegment
• Readonly
isFirstLegInSegment: MappedSubscribable
<boolean
>
Whether this leg is the first leg in its segment.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:247
isFpaEdited
• Readonly
isFpaEdited: Subject
<boolean
>
Whether this leg's fpa has been set by the user.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:417
isFpaSpeedEditable
• Readonly
isFpaSpeedEditable: Subject
<boolean
>
Whether this leg's fpa and speed constraint are editable.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:420
isHeadingLeg
• Readonly
isHeadingLeg: boolean
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:287
isHoldLeg
• Readonly
isHoldLeg: boolean
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:285
isInAirwaySegment
• Readonly
isInAirwaySegment: Subscribable
<boolean
>
Whether this leg is in an airway segment.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:269
isInApproachSegment
• Readonly
isInApproachSegment: boolean
Whether this leg is in the approach segment.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:257
isInDepartureSegment
• Readonly
isInDepartureSegment: boolean
Whether this leg is in the departure segment.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:254
isInMissedApproach
• Readonly
isInMissedApproach: boolean
Whether this leg is in the missed approach.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:260
isLastLegInSegment
• Readonly
isLastLegInSegment: Subscribable
<boolean
>
Whether this leg is the first leg in its segment.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:251
isRunway
• Readonly
isRunway: boolean
Whether this leg is a runway.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:263
isSpeedEdited
• Readonly
isSpeedEdited: Subject
<boolean
>
Whether this leg's speed constraint is different from the published speed.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:403
isSpeedInvalid
• Readonly
isSpeedInvalid: Subject
<boolean
>
Whether this leg's speed constraint is invalid or not.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:406
isVisibleLegType
• Readonly
isVisibleLegType: boolean
Whether this leg's flags and leg type allow for the leg to be visible.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:232
leg
• Readonly
leg: LegDefinition
The leg definition.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:476
plan
• Readonly
plan: FlightPlan
The flight plan that this leg exists in.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:482
planIndex
• Readonly
planIndex: number
The index of the flight plan that this leg belongs to.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:479
segment
• Readonly
segment: FlightPlanSegment
The containing segment.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:477
segmentData
• Readonly
segmentData: undefined
| FlightPlanSegmentData
The containing segment data. Not needed for random direct to.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:478
segmentLegIndex
• Readonly
segmentLegIndex: Subject
<number
>
The index of this leg in its segment.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:244
showClimbFpa
• Readonly
showClimbFpa: MappedSubject
<[VerticalFlightPhase
, boolean
, boolean
], boolean
>
Whether to show CLIMB for the fpa.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:428
speed
• Readonly
speed: Subject
<number
>
This leg's speed constraint speed.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:394
speedDesc
• Readonly
speedDesc: Subject
<SpeedRestrictionType
>
This leg's speed constraint type.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:400
speedUnit
• Readonly
speedUnit: Subject
<SpeedUnit
>
This leg's speed constraint units.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:397
type
• Readonly
type: "leg"
The type of flight plan list item.
Implementation of
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:229
vnavPhase
• Readonly
vnavPhase: Subject
<VerticalFlightPhase
>
The vertical flight phase.
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:425
Methods
destroy
▸ destroy(): void
Call when this leg is removed from the plan.
Returns
void
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:637
handleLegChanged
▸ handleLegChanged(leg
): void
Handles the leg changed event. Effectively when the vertical data object on the leg was modified.
Parameters
Name | Type | Description |
---|---|---|
leg | LegDefinition | The leg definition. |
Returns
void
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:539
updateLegListDataAltitudeStuffFromVerticalData
▸ updateLegListDataAltitudeStuffFromVerticalData(): void
Updates a leg list data item's altitude info from the leg's vertical data object.
Returns
void
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:566
updateLegPosition
▸ updateLegPosition(globalLegIndex
): void
Update leg based on it's global leg index. We avoid storing indexes to avoid stale indexes.
Parameters
Name | Type | Description |
---|---|---|
globalLegIndex | number | The global leg index of the leg. |
Returns
void
Defined in
src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/FlightPlan/FlightPlanLegListData.ts:501