Skip to main content

Class: NavSources<T>

Defined in: workingtitle-instruments-wt21/shared/Navigation/NavSources/NavSourceBase.ts:28

Holds the available Nav Sources that NavIndicators can use.

Type Parameters

Type Parameter
T extends readonly string[]

Implements

  • Instrument

Constructors

Constructor

new NavSources<T>(...sources): NavSources<T>

Defined in: workingtitle-instruments-wt21/shared/Navigation/NavSources/NavSourceBase.ts:33

NavSources constructor.

Parameters

ParameterTypeDescription
...sourcesreadonly NavSourceBase<T>[]The nav sources.

Returns

NavSources<T>

Methods

get()

get(name): NavSourceBase<T>

Defined in: workingtitle-instruments-wt21/shared/Navigation/NavSources/NavSourceBase.ts:52

Gets a nav source.

Parameters

ParameterTypeDescription
nameT[number]Name of source.

Returns

NavSourceBase<T>

The source.

Throws

Error if name not found.


init()

init(): void

Defined in: workingtitle-instruments-wt21/shared/Navigation/NavSources/NavSourceBase.ts:38

Returns

void

Inherit Doc

Implementation of

Instrument.init


onUpdate()

onUpdate(): void

Defined in: workingtitle-instruments-wt21/shared/Navigation/NavSources/NavSourceBase.ts:43

Returns

void

Inherit Doc

Implementation of

Instrument.onUpdate