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
Parameter | Type | Description |
---|---|---|
...sources | readonly 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
Parameter | Type | Description |
---|---|---|
name | T [number ] | Name of source. |
Returns
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