Skip to main content

Class: Nav2Needle

A VOR2 course needle component.

Hierarchy

Constructors

constructor

new Nav2Needle(props): Nav2Needle

Creates an instance of a DisplayComponent.

Parameters

NameTypeDescription
propsCourseNeedlePropsThe propertis of the component.

Returns

Nav2Needle

Inherited from

CourseNeedleComponent.constructor

Defined in

sdk/components/FSComponent.ts:73

Properties

animator

Protected Optional animator: NeedleAnimator

Inherited from

CourseNeedleComponent.animator

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/CourseNeedleComponent.ts:25


context

Optional context: [] = undefined

The context on this component, if any.

Inherited from

CourseNeedleComponent.context

Defined in

sdk/components/FSComponent.ts:64


contextType

Optional Readonly contextType: readonly [] = undefined

The type of context for this component, if any.

Inherited from

CourseNeedleComponent.contextType

Defined in

sdk/components/FSComponent.ts:67


currentDeviation

Protected currentDeviation: number = 0

Inherited from

CourseNeedleComponent.currentDeviation

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/CourseNeedleComponent.ts:27


deviationRef

Protected Readonly deviationRef: NodeReference<HTMLDivElement>

Inherited from

CourseNeedleComponent.deviationRef

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/CourseNeedleComponent.ts:21


needleRef

Protected Readonly needleRef: NodeReference<HTMLDivElement>

Inherited from

CourseNeedleComponent.needleRef

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/CourseNeedleComponent.ts:19


props

props: CourseNeedleProps & ComponentProps

The properties of the component.

Inherited from

CourseNeedleComponent.props

Defined in

sdk/components/FSComponent.ts:61


toFromRef

Protected Readonly toFromRef: NodeReference<HTMLDivElement>

Inherited from

CourseNeedleComponent.toFromRef

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/CourseNeedleComponent.ts:23

Methods

destroy

destroy(): void

Destroys this component.

Returns

void

Inherited from

CourseNeedleComponent.destroy

Defined in

sdk/components/FSComponent.ts:98


getContext

getContext(context): never

Gets a context data subscription from the context collection.

Parameters

NameTypeDescription
contextneverThe context to get the subscription for.

Returns

never

The requested context.

Throws

An error if no data for the specified context type could be found.

Inherited from

CourseNeedleComponent.getContext

Defined in

sdk/components/FSComponent.ts:106


onAfterRender

onAfterRender(): void

A callback called after rendering completes.

Returns

void

Inherited from

CourseNeedleComponent.onAfterRender

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/CourseNeedleComponent.ts:32


onBeforeRender

onBeforeRender(): void

A callback that is called before the component is rendered.

Returns

void

Inherited from

CourseNeedleComponent.onBeforeRender

Defined in

sdk/components/FSComponent.ts:80


render

render(): VNode

Renders the component.

Returns

VNode

The rendered VNode.

Overrides

CourseNeedleComponent.render

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/Nav2Needle.tsx:14


setDeviation

setDeviation(deviation): void

Sets the deviation of the course needle.

Parameters

NameTypeDescription
deviationnumberThe deviation of the course needle.

Returns

void

Inherited from

CourseNeedleComponent.setDeviation

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/CourseNeedleComponent.ts:48


setDeviationVisible

setDeviationVisible(isVisible): void

Sets whether or not the course deviation indicator is visible.

Parameters

NameTypeDescription
isVisiblebooleanThe visibility of the course deviation indicator.

Returns

void

Inherited from

CourseNeedleComponent.setDeviationVisible

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/CourseNeedleComponent.ts:67


setFromFlag

setFromFlag(from): void

Sets whether the to/from flag should indicate to or from.

Parameters

NameTypeDescription
frombooleana bool set to true when the flag should be set to FROM.

Returns

void

Inherited from

CourseNeedleComponent.setFromFlag

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/CourseNeedleComponent.ts:76


setRotation

setRotation(rotation): void

Sets the rotation of the course needle.

Parameters

NameTypeDescription
rotationnumberThe rotation of the course needle.

Returns

void

Inherited from

CourseNeedleComponent.setRotation

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/CourseNeedleComponent.ts:40


setVisible

setVisible(isVisible): void

Sets whether or not the course needle is visible.

Parameters

NameTypeDescription
isVisiblebooleanThe visibility of the course needle.

Returns

void

Inherited from

CourseNeedleComponent.setVisible

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/HSI/CourseNeedleComponent.ts:59