Class: FlightPlanTextUpdater
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanTextUpdater.ts:23
Generates the rows to be used in the flight plan text inset.
Constructors
Constructor
new FlightPlanTextUpdater(
store
,flightPlanListManager
):FlightPlanTextUpdater
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanTextUpdater.ts:31
Creates a new FlightPlanTextUpdater.
Parameters
Parameter | Type | Description |
---|---|---|
store | FlightPlanStore | The flight plan store. |
flightPlanListManager | FlightPlanListManager | The list manager to use. |
Returns
FlightPlanTextUpdater
Methods
destroy()
destroy():
void
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanTextUpdater.ts:201
Destroys subs and comps.
Returns
void
getUpdateData()
getUpdateData(
topRow
):FlightPlanTextData
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanTextUpdater.ts:41
Generates the data for the flight plan text inset.
Parameters
Parameter | Type | Description |
---|---|---|
topRow | undefined | FlightPlanTextRowData | Reference to the leg or segment list data that should be in the top row. |
Returns
the data for the flight plan text inset.
shouldIgnoreItem()
static
shouldIgnoreItem(item
,originFacility?
,destinationFacility?
):boolean
Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/FlightPlan/FlightPlanTextUpdater.ts:188
Whether an item should be left out of the text rows.
Parameters
Parameter | Type | Description |
---|---|---|
item | FlightPlanListData | the item to check. |
originFacility? | Facility | The current origin facility. |
destinationFacility? | Facility | The current destination facility. |
Returns
boolean
True if item should be ignored.