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