Skip to main content

Class: PfdUserSettingManager

A manager for PFD user settings.

Implements

Constructors

constructor

new PfdUserSettingManager(bus, gduCount): PfdUserSettingManager

Creates a new instance of PfdUserSettingManager.

Parameters

NameTypeDescription
busEventBusThe event bus.
gduCountnumberThe number of GDUs supported by this manager.

Returns

PfdUserSettingManager

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:203

Properties

gduCount

Readonly gduCount: number

The number of GDUs supported by this manager.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:203

Methods

getAliasedManager

getAliasedManager(index): UserSettingManager<PfdUserSettingTypes>

Gets a manager for aliased PFD user settings for an indexed GDU.

Parameters

NameTypeDescription
indexnumberThe index of the GDU for which to get an aliased setting manager.

Returns

UserSettingManager<PfdUserSettingTypes>

A manager for aliased PFD user settings for the specified GDU.

Throws

RangeError if index is less than 1 or greater than the number of GDUs supported by this manager.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:248


getAllSettings

getAllSettings(): UserSetting<UserSettingValue>[]

Returns

UserSetting<UserSettingValue>[]

Inherit Doc

Implementation of

UserSettingManager.getAllSettings

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:233


getSetting

getSetting<K>(name): UserSetting<NonNullable<PfdAllUserSettingTypes[K]>>

Type parameters

NameType
Kextends `flightDirectorFormat_${number}_g3x` | `svtEnabled_${number}_g3x` | `svtTrafficShow_${number}_g3x` | `svtFpmShow_${number}_g3x` | `pfdStandardRateTurnPointerShow_${number}_g3x` | `aoaDisplayMode_${number}_g3x` | `windDisplayMode_${number}_g3x` | `pfdInsetLeftKey_${number}_g3x` | `pfdInsetRightKey_${number}_g3x` | `pfdBearingPointer1Source_${number}_g3x` | `pfdBearingPointer2Source_${number}_g3x` | `pfdHsiOrientationMode_${number}_g3x` | `pfdHsiShowUpperDeviationIndicator_${number}_g3x` | `pfdKnobSplitScreenSideAction_${number}_g3x` | `pfdKnobPressToToggleAction_${number}_g3x`

Parameters

NameType
nameK

Returns

UserSetting<NonNullable<PfdAllUserSettingTypes[K]>>

Inherit Doc

Implementation of

UserSettingManager.getSetting

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:223


mapTo

mapTo<M>(map): UserSettingManager<M & PfdAllUserSettingTypes>

Type parameters

NameType
Mextends UserSettingRecord

Parameters

NameType
mapUserSettingMap<M, PfdAllUserSettingTypes>

Returns

UserSettingManager<M & PfdAllUserSettingTypes>

Inherit Doc

Implementation of

UserSettingManager.mapTo

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:238


tryGetSetting

tryGetSetting<K>(name): K extends `flightDirectorFormat_${number}_g3x` | `svtEnabled_${number}_g3x` | `svtTrafficShow_${number}_g3x` | `svtFpmShow_${number}_g3x` | `pfdStandardRateTurnPointerShow_${number}_g3x` | `aoaDisplayMode_${number}_g3x` | `windDisplayMode_${number}_g3x` | `pfdInsetLeftKey_${number}_g3x` | `pfdInsetRightKey_${number}_g3x` | `pfdBearingPointer1Source_${number}_g3x` | `pfdBearingPointer2Source_${number}_g3x` | `pfdHsiOrientationMode_${number}_g3x` | `pfdHsiShowUpperDeviationIndicator_${number}_g3x` | `pfdKnobSplitScreenSideAction_${number}_g3x` | `pfdKnobPressToToggleAction_${number}_g3x` ? UserSetting<PfdAllUserSettingTypes[K]> : undefined

Type parameters

NameType
Kextends string

Parameters

NameType
nameK

Returns

K extends `flightDirectorFormat_${number}_g3x` | `svtEnabled_${number}_g3x` | `svtTrafficShow_${number}_g3x` | `svtFpmShow_${number}_g3x` | `pfdStandardRateTurnPointerShow_${number}_g3x` | `aoaDisplayMode_${number}_g3x` | `windDisplayMode_${number}_g3x` | `pfdInsetLeftKey_${number}_g3x` | `pfdInsetRightKey_${number}_g3x` | `pfdBearingPointer1Source_${number}_g3x` | `pfdBearingPointer2Source_${number}_g3x` | `pfdHsiOrientationMode_${number}_g3x` | `pfdHsiShowUpperDeviationIndicator_${number}_g3x` | `pfdKnobSplitScreenSideAction_${number}_g3x` | `pfdKnobPressToToggleAction_${number}_g3x` ? UserSetting<PfdAllUserSettingTypes[K]> : undefined

Inherit Doc

Implementation of

UserSettingManager.tryGetSetting

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:218


whenSettingChanged

whenSettingChanged<K>(name): Consumer<NonNullable<PfdAllUserSettingTypes[K]>>

Type parameters

NameType
Kextends `flightDirectorFormat_${number}_g3x` | `svtEnabled_${number}_g3x` | `svtTrafficShow_${number}_g3x` | `svtFpmShow_${number}_g3x` | `pfdStandardRateTurnPointerShow_${number}_g3x` | `aoaDisplayMode_${number}_g3x` | `windDisplayMode_${number}_g3x` | `pfdInsetLeftKey_${number}_g3x` | `pfdInsetRightKey_${number}_g3x` | `pfdBearingPointer1Source_${number}_g3x` | `pfdBearingPointer2Source_${number}_g3x` | `pfdHsiOrientationMode_${number}_g3x` | `pfdHsiShowUpperDeviationIndicator_${number}_g3x` | `pfdKnobSplitScreenSideAction_${number}_g3x` | `pfdKnobPressToToggleAction_${number}_g3x`

Parameters

NameType
nameK

Returns

Consumer<NonNullable<PfdAllUserSettingTypes[K]>>

Inherit Doc

Implementation of

UserSettingManager.whenSettingChanged

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Settings/PfdUserSettings.ts:228