Skip to main content

Class: NearestPaneView

A display pane view which displays a nearest map.

Hierarchy

Constructors

constructor

new NearestPaneView(props): NearestPaneView

Creates an instance of a DisplayComponent.

Parameters

NameTypeDescription
propsNearestPaneViewPropsThe propertis of the component.

Returns

NearestPaneView

Inherited from

DisplayPaneView.constructor

Defined in

src/sdk/components/FSComponent.ts:73

Properties

_title

Protected Readonly _title: Subject<string | VNode>

Inherited from

DisplayPaneView._title

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/DisplayPanes/DisplayPaneView.ts:21


context

Optional context: [] = undefined

The context on this component, if any.

Inherited from

DisplayPaneView.context

Defined in

src/sdk/components/FSComponent.ts:64


contextType

Optional Readonly contextType: readonly [] = undefined

The type of context for this component, if any.

Inherited from

DisplayPaneView.contextType

Defined in

src/sdk/components/FSComponent.ts:67


isPfd

Readonly isPfd: boolean

Inherited from

DisplayPaneView.isPfd

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/DisplayPanes/DisplayPaneView.ts:25


props

props: NearestPaneViewProps & ComponentProps

The properties of the component.

Inherited from

DisplayPaneView.props

Defined in

src/sdk/components/FSComponent.ts:61


title

Readonly title: Subscribable<string | VNode>

The title of this display pane view.

Inherited from

DisplayPaneView.title

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/DisplayPanes/DisplayPaneView.ts:23

Methods

destroy

destroy(): void

Destroys this component.

Returns

void

Overrides

DisplayPaneView.destroy

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/NearestPane/NearestPaneView.tsx:303


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

DisplayPaneView.getContext

Defined in

src/sdk/components/FSComponent.ts:106


onAfterRender

onAfterRender(): void

A callback that is called after the component is rendered.

Returns

void

Overrides

DisplayPaneView.onAfterRender

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/NearestPane/NearestPaneView.tsx:167


onBeforeRender

onBeforeRender(): void

A callback that is called before the component is rendered.

Returns

void

Inherited from

DisplayPaneView.onBeforeRender

Defined in

src/sdk/components/FSComponent.ts:80


onEvent

onEvent(event): void

Called when a display pane view event is received by this view.

Parameters

NameTypeDescription
eventDisplayPaneViewEvent<NearestPaneViewEventTypes, "display_pane_map_range_inc" | "display_pane_map_range_dec" | "display_pane_map_pointer_active_set" | "display_pane_map_pointer_active_toggle" | "display_pane_map_pointer_move" | "display_pane_nearest_set">The event.

Returns

void

Overrides

DisplayPaneView.onEvent

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/NearestPane/NearestPaneView.tsx:208


onPause

onPause(): void

Called when this view is hidden.

Returns

void

Overrides

DisplayPaneView.onPause

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/NearestPane/NearestPaneView.tsx:181


onResize

onResize(size, width, height): void

Called when this view's parent pane is resized while this view is visible.

Parameters

NameTypeDescription
sizeDisplayPaneSizeModeThe size of this view's parent pane.
widthnumberThe width of this view's parent pane, in pixels.
heightnumberThe height of this view's parent pane, in pixels.

Returns

void

Overrides

DisplayPaneView.onResize

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/NearestPane/NearestPaneView.tsx:190


onResume

onResume(size, width, height): void

Called when this view is made visible.

Parameters

NameTypeDescription
sizeDisplayPaneSizeModeThe size of this view's parent pane.
widthnumberThe width of this view's parent pane, in pixels.
heightnumberThe height of this view's parent pane, in pixels.

Returns

void

Overrides

DisplayPaneView.onResume

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/NearestPane/NearestPaneView.tsx:174


onUpdate

onUpdate(time): void

Called every update cycle.

Parameters

NameTypeDescription
timenumberThe current real (operating system) time, as a UNIX timestamp in milliseconds.

Returns

void

Overrides

DisplayPaneView.onUpdate

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/NearestPane/NearestPaneView.tsx:195


render

render(): null | VNode

Renders the component.

Returns

null | VNode

A JSX element to be rendered.

Overrides

DisplayPaneView.render

Defined in

src/workingtitle-instruments-g3000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG3000/Shared/Components/NearestPane/NearestPaneView.tsx:296