Skip to main content

Class: FlightPlanSegmentListData

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanSegmentListData.ts:14

Represents a flight plan segment in a list. Wraps a FlightPlanSegmentData object. Contains fields specific to flight plan lists.

Implements​

Constructors​

Constructor​

new FlightPlanSegmentListData(segmentData, store, listManager): FlightPlanSegmentListData

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanSegmentListData.ts:43

Creates a new segment list data object.

Parameters​

ParameterTypeDescription
segmentDataFlightPlanSegmentDataThe flight plan segment data to wrap.
storeFlightPlanStoreThe flight plan store this belongs to.
listManagerFlightPlanListManagerThe list manager that this belongs to.

Returns​

FlightPlanSegmentListData

Properties​

airwayText​

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

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


isCollapsed​

readonly isCollapsed: MappedSubject<[boolean, ReadonlySet<FlightPlanSegment>], boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanSegmentListData.ts:22

Whether the segment is collapsed.


isVisible​

readonly isVisible: Subject<boolean>

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanSegmentListData.ts:19

Whether this list item is visible in the list.

Implementation of​

FlightPlanBaseListData.isVisible


segmentData​

readonly segmentData: FlightPlanSegmentData

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanSegmentListData.ts:44

The flight plan segment data to wrap.


type​

readonly type: "segment" = 'segment'

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanSegmentListData.ts:16

The type of flight plan list item.

Implementation of​

FlightPlanBaseListData.type

Methods​

destroy()​

destroy(): void

Defined in: workingtitle-instruments-epic2/shared/FlightPlan/FlightPlanSegmentListData.ts:50

Call when this segment is rmoved from the plan.

Returns​

void