Skip to main content

Class: Nav1Needle

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/Nav1Needle.tsx:8

A VOR1 course needle component.

Extends​

Constructors​

Constructor​

new Nav1Needle(props): Nav1Needle

Defined in: sdk/components/FSComponent.ts:76

Creates an instance of a DisplayComponent.

Parameters​

ParameterTypeDescription
propsCourseNeedlePropsThe propertis of the component.

Returns​

Nav1Needle

Inherited from​

CourseNeedleComponent.constructor

Properties​

animator?​

protected optional animator: NeedleAnimator

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/CourseNeedleComponent.ts:25

Inherited from​

CourseNeedleComponent.animator


context?​

optional context: [] = undefined

Defined in: sdk/components/FSComponent.ts:67

The context on this component, if any.

Inherited from​

CourseNeedleComponent.context


contextType?​

readonly optional contextType: readonly [] = undefined

Defined in: sdk/components/FSComponent.ts:70

The type of context for this component, if any.

Inherited from​

CourseNeedleComponent.contextType


currentDeviation​

protected currentDeviation: number = 0

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/CourseNeedleComponent.ts:27

Inherited from​

CourseNeedleComponent.currentDeviation


deviationRef​

protected readonly deviationRef: NodeReference<HTMLDivElement>

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/CourseNeedleComponent.ts:21

Inherited from​

CourseNeedleComponent.deviationRef


needleRef​

protected readonly needleRef: NodeReference<HTMLDivElement>

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/CourseNeedleComponent.ts:19

Inherited from​

CourseNeedleComponent.needleRef


props​

props: CourseNeedleProps & ComponentProps

Defined in: sdk/components/FSComponent.ts:64

The properties of the component.

Inherited from​

CourseNeedleComponent.props


toFromRef​

protected readonly toFromRef: NodeReference<HTMLDivElement>

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/CourseNeedleComponent.ts:23

Inherited from​

CourseNeedleComponent.toFromRef

Methods​

destroy()​

destroy(): void

Defined in: sdk/components/FSComponent.ts:101

Destroys this component.

Returns​

void

Inherited from​

CourseNeedleComponent.destroy


getContext()​

protected getContext(context): never

Defined in: sdk/components/FSComponent.ts:109

Gets a context data subscription from the context collection.

Parameters​

ParameterTypeDescription
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


onAfterRender()​

onAfterRender(): void

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/CourseNeedleComponent.ts:32

A callback called after rendering completes.

Returns​

void

Inherited from​

CourseNeedleComponent.onAfterRender


onBeforeRender()​

onBeforeRender(): void

Defined in: sdk/components/FSComponent.ts:83

A callback that is called before the component is rendered.

Returns​

void

Inherited from​

CourseNeedleComponent.onBeforeRender


render()​

render(): VNode

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/Nav1Needle.tsx:14

Renders the component.

Returns​

VNode

The rendered VNode.

Overrides​

CourseNeedleComponent.render


setDeviation()​

setDeviation(deviation): void

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/CourseNeedleComponent.ts:48

Sets the deviation of the course needle.

Parameters​

ParameterTypeDescription
deviationnumberThe deviation of the course needle.

Returns​

void

Inherited from​

CourseNeedleComponent.setDeviation


setDeviationVisible()​

setDeviationVisible(isVisible): void

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/CourseNeedleComponent.ts:67

Sets whether or not the course deviation indicator is visible.

Parameters​

ParameterTypeDescription
isVisiblebooleanThe visibility of the course deviation indicator.

Returns​

void

Inherited from​

CourseNeedleComponent.setDeviationVisible


setFromFlag()​

setFromFlag(from): void

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/CourseNeedleComponent.ts:76

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

Parameters​

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

Returns​

void

Inherited from​

CourseNeedleComponent.setFromFlag


setRotation()​

setRotation(rotation): void

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/CourseNeedleComponent.ts:40

Sets the rotation of the course needle.

Parameters​

ParameterTypeDescription
rotationnumberThe rotation of the course needle.

Returns​

void

Inherited from​

CourseNeedleComponent.setRotation


setVisible()​

setVisible(isVisible): void

Defined in: workingtitle-instruments-g1000/html_ui/PFD/Components/HSI/CourseNeedleComponent.ts:59

Sets whether or not the course needle is visible.

Parameters​

ParameterTypeDescription
isVisiblebooleanThe visibility of the course needle.

Returns​

void

Inherited from​

CourseNeedleComponent.setVisible