Skip to main content

Class: Epic2ChartUtils

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Charts/Epic2ChartUtils.ts:6

A utility class for Epic2 charts

Constructors​

Constructor​

new Epic2ChartUtils(): Epic2ChartUtils

Returns​

Epic2ChartUtils

Methods​

procedureMatchesIdentifier()​

static procedureMatchesIdentifier(proc, ident): boolean

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Charts/Epic2ChartUtils.ts:15

Returns whether a given procedure matches a chart procedure identifier

Parameters​

ParameterTypeDescription
procApproachProcedure | Procedurethe procedure
identChartProcedureIdentifierthe chart identifier to check against

Returns​

boolean

a boolean


selectAutoChartForProcedure()​

static selectAutoChartForProcedure(charts, procedure): ChartMetadata<string> | null

Defined in: workingtitle-instruments-epic2/instruments/html_ui/Pages/VCockpit/Instruments/NavSystems/Epic2v2/MFD/UpperMFD/Charts/Epic2ChartUtils.ts:47

Picks the autoselect chart for a given procedure

Parameters​

ParameterTypeDescription
chartsreadonly Epic2ChartListType[]The charts to filter from
procedureApproachProcedure | ProcedureThe procedure selected in the flight plan

Returns​

ChartMetadata<string> | null

The chart metadata for the selected chart