Skip to main content

Class: NavIndicatorAnimator

An animator driven by requestAnimationFrame designed for navigation indicators.

Constructors

constructor

new NavIndicatorAnimator(speed?): NavIndicatorAnimator

Creates a new NavIndicatorAnimator.

Parameters

NameTypeDefault valueDescription
speednumber4Higher is faster, but it gets faster fast, try incerements of 0.5.

Returns

NavIndicatorAnimator

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

NameTypeDescription
value?null | numberThe 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