Class: NavIndicatorAnimator
An animator driven by requestAnimationFrame designed for navigation indicators.
Constructors
constructor
• new NavIndicatorAnimator(speed?
): NavIndicatorAnimator
Creates a new NavIndicatorAnimator.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
speed | number | 4 | Higher is faster, but it gets faster fast, try incerements of 0.5. |
Returns
Defined in
workingtitle-instruments-wt21/shared/LowerSection/HSI/NavIndicatorAnimator.ts:17
Properties
output
• Readonly
output: Subject
<number
>
The animated value.
Defined in
workingtitle-instruments-wt21/shared/LowerSection/HSI/NavIndicatorAnimator.ts:8
speed
• Readonly
speed: number
= 4
Higher is faster, but it gets faster fast, try incerements of 0.5.
Defined in
workingtitle-instruments-wt21/shared/LowerSection/HSI/NavIndicatorAnimator.ts:17
Methods
setTargetValue
▸ setTargetValue(value?
): void
Sets the value that the output will be gradually animated towards.
Parameters
Name | Type | Description |
---|---|---|
value? | null | number | The value to animate towards. If null or undefined, the target value will not change. |
Returns
void
Defined in
workingtitle-instruments-wt21/shared/LowerSection/HSI/NavIndicatorAnimator.ts:22
start
▸ start(): void
Starts the requestAnimationFrame loop.
Returns
void
Defined in
workingtitle-instruments-wt21/shared/LowerSection/HSI/NavIndicatorAnimator.ts:30
stop
▸ stop(): void
Stops the requestAnimationFrame loop.
Returns
void
Defined in
workingtitle-instruments-wt21/shared/LowerSection/HSI/NavIndicatorAnimator.ts:39