Skip to main content

Class: FlightPlanLegListData

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:24

Represents a flight plan leg in a list. Wraps a FlightPlanLegData object. Contains fields specific to flight plan lists.

Implements​

Constructors​

Constructor​

new FlightPlanLegListData(legData, segmentListData, store, unitsSettingManager): FlightPlanLegListData

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:92

FlightPlanLegListData constructor.

Parameters​

ParameterTypeDescription
legDataFlightPlanLegDataThe flight plan leg data to wrap.
segmentListDataundefined | FlightPlanSegmentListDataThe segment list data that this leg belong's to. Not required for random direct to leg.
storeFlightPlanStoreThe flight plan store this belongs to.
unitsSettingManagerUnitsUserSettingManagerThe units setting manager.

Returns​

FlightPlanLegListData

Properties​

airwayExitText​

readonly airwayExitText: MappedSubject<[boolean, undefined | string], string>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:45

Airway exit text.


displayDistance​

readonly displayDistance: NumberUnitSubject<Distance, SimpleUnit<Distance>>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:75

The leg distance, but meant for display in a list. Can change when active leg, and more. Shows segment distance for collapsed airway exit.


displayDtk​

readonly displayDtk: BasicNavAngleSubject

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:69

The leg DTK for displaying in certain places like the flight plan page. Changes when this is the active leg and stuff like that.


displayEte​

readonly displayEte: NumberUnitSubject<Duration, SimpleUnit<Duration>>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:80

Estimated time Enroute of the leg, in seconds duration. How long it will take to fly the leg. Shows the segment ETE for collapsed airway exit.


hasHiddenAirwayLegsBefore​

readonly hasHiddenAirwayLegsBefore: Subject<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:42

Whether there are hidden airway legs before this one, should only apply to last leg in collapsed airway.


isBeingRemoved​

readonly isBeingRemoved: Subject<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:33

If this leg is in the process of being removed


isFirstVisibleLegInSegment​

readonly isFirstVisibleLegInSegment: Subject<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:39

Whether this leg is the first visible leg in a segment.


isFullyCollapsedAirwayExit​

readonly isFullyCollapsedAirwayExit: Subscribable<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:65


isNew​

readonly isNew: Subject<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:36

If this waypoint is new, only relevant to the pending plan


isVisible​

readonly isVisible: Subscribable<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:30

Whether this list item is visible in the list.

Implementation of​

FlightPlanBaseListData.isVisible


legData​

readonly legData: FlightPlanLegData

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:93

The flight plan leg data to wrap.


segmentListData​

readonly segmentListData: undefined | FlightPlanSegmentListData

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:94

The segment list data that this leg belong's to. Not required for random direct to leg.


type​

readonly type: "leg" = 'leg'

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:26

The type of flight plan list item.

Implementation of​

FlightPlanBaseListData.type

Methods​

checkIfDtoRemovingLeg()​

checkIfDtoRemovingLeg(): boolean

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:152

Checks whether the leg is being removed by the current direct to

Returns​

boolean

a boolean


destroy()​

destroy(): void

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanLegListData.ts:311

Call when this leg is removed from the list.

Returns​

void