Skip to main content

Class: CnsDataBarUtils

A utility class for working with the CNS data bar.

Constructors

constructor

new CnsDataBarUtils(): CnsDataBarUtils

Returns

CnsDataBarUtils

Properties

GDU_460_ITEM_WIDTHS

Static Readonly GDU_460_ITEM_WIDTHS: Record<CnsDataBarItemType, number>

A record that maps data bar item types to their widths, in pixels, for the GDU460 format.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/CnsDataBar/CnsDataBarUtils.ts:8

Methods

isItemTypeAudio

isItemTypeAudio(type): type is Audio | AudioMinimized | AudioOnly

Returns true if the given type is an audio item type.

Parameters

NameTypeDescription
typeCnsDataBarItemTypeThe type to check.

Returns

type is Audio | AudioMinimized | AudioOnly

True if the given type is an audio item type.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/CnsDataBar/CnsDataBarUtils.ts:57


isItemTypeCom

isItemTypeCom(type): type is Com | ComMinimized

Returns true if the given type is a communication item type.

Parameters

NameTypeDescription
typeCnsDataBarItemTypeThe type to check.

Returns

type is Com | ComMinimized

True if the given type is a communication item type.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/CnsDataBar/CnsDataBarUtils.ts:27


isItemTypeNav

isItemTypeNav(type): type is Nav | NavMinimized

Returns true if the given type is a navigation item type.

Parameters

NameTypeDescription
typeCnsDataBarItemTypeThe type to check.

Returns

type is Nav | NavMinimized

True if the given type is a navigation item type.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/CnsDataBar/CnsDataBarUtils.ts:36


isItemTypeRadio

isItemTypeRadio(type): type is Com | Nav | NavMinimized | ComMinimized

Returns true if the given type is a radio item type.

Parameters

NameTypeDescription
typeCnsDataBarItemTypeThe type to check.

Returns

type is Com | Nav | NavMinimized | ComMinimized

True if the given type is a radio (communication or navigation) item type.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Components/CnsDataBar/CnsDataBarUtils.ts:45