Skip to main content

Class: NeedleAnimator

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/NeedleAnimator.ts:6

Animates course and bearing needle elements.

Constructors

Constructor

new NeedleAnimator(el): NeedleAnimator

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/NeedleAnimator.ts:16

Creates an instance of a NeedleAnimator.

Parameters

ParameterTypeDescription
elNodeReference<HTMLDivElement>The reference to the element to animate.

Returns

NeedleAnimator

Methods

rotateTo()

rotateTo(val): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/NeedleAnimator.ts:24

Rotates the element to the supplied value in degrees.

Parameters

ParameterTypeDescription
valnumberThe value to rotate to.

Returns

void