Class: NavSourceFormatter
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Graphics/Text/NavSourceFormatter.ts:11
Utility class for creating nav source name formatters.
Constructors
Constructor
new NavSourceFormatter():
NavSourceFormatter
Returns
NavSourceFormatter
Methods
create()
staticcreate(showGpsIndex,showNavIndex): (sourceName) =>string
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Graphics/Text/NavSourceFormatter.ts:18
Creates a function which generates formatted nav source names.
Parameters
| Parameter | Type | Description |
|---|---|---|
showGpsIndex | boolean | Whether to show the index for GPS-type nav sources. |
showNavIndex | boolean | Whether to show the index for NAV-type nav sources. |
Returns
A function which generates formatted nav source names.
(
sourceName):string
Parameters
| Parameter | Type |
|---|---|
sourceName | G3XTouchNavSourceName |
Returns
string
createForBearingPointerSetting()
staticcreateForBearingPointerSetting(showNavIndex): (bearingPointerSource) =>string
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Graphics/Text/NavSourceFormatter.ts:100
Creates a function which generates formatted nav source names for nav sources.
Parameters
| Parameter | Type | Description |
|---|---|---|
showNavIndex | boolean | Whether to show the index for NAV-type nav sources. |
Returns
A function which generates formatted nav source names for nav sources.
(
bearingPointerSource):string
Parameters
| Parameter | Type |
|---|---|
bearingPointerSource | PfdBearingPointerSource |
Returns
string
createForIndicator()
staticcreateForIndicator(showGpsIndex,showNavIndex,showNavType): (indicator) =>string
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Graphics/Text/NavSourceFormatter.ts:61
Creates a function which generates formatted nav source names for nav indicators.
Parameters
| Parameter | Type | Description |
|---|---|---|
showGpsIndex | boolean | Whether to show the index for GPS-type nav sources. |
showNavIndex | boolean | Whether to show the index for NAV-type nav sources. |
showNavType | boolean | Whether to show the navaid type (VOR vs LOC) for NAV-type nav sources. If false, 'VLOC' will be used as the name for all NAV-type sources. |
Returns
A function which generates formatted nav source names for nav indicators.
(
indicator):string
Parameters
| Parameter | Type |
|---|---|
indicator | G3XTouchNavIndicator |
Returns
string
createForSource()
staticcreateForSource(showGpsIndex,showNavIndex): (source) =>string
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Graphics/Text/NavSourceFormatter.ts:42
Creates a function which generates formatted nav source names for nav sources.
Parameters
| Parameter | Type | Description |
|---|---|---|
showGpsIndex | boolean | Whether to show the index for GPS-type nav sources. |
showNavIndex | boolean | Whether to show the index for NAV-type nav sources. |
Returns
A function which generates formatted nav source names for nav sources.
(
source):string
Parameters
| Parameter | Type |
|---|---|
source | NavReferenceSource<G3XTouchNavSourceName> |
Returns
string