Skip to main content

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​

ParameterTypeDefault valueDescription
speednumber4Higher 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​

ParameterTypeDescription
value?number | nullThe 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