Class: CnsDataBarUtils
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/CnsDataBar/CnsDataBarUtils.ts:6
A utility class for working with the CNS data bar.
Constructors
Constructor
new CnsDataBarUtils():
CnsDataBarUtils
Returns
CnsDataBarUtils
Properties
GDU_460_ITEM_WIDTHS
readonly
static
GDU_460_ITEM_WIDTHS:Record
<CnsDataBarItemType
,number
>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/CnsDataBar/CnsDataBarUtils.ts:8
A record that maps data bar item types to their widths, in pixels, for the GDU460 format.
Methods
isItemTypeAudio()
static
isItemTypeAudio(type
): type is Audio | AudioMinimized | AudioOnly
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/CnsDataBar/CnsDataBarUtils.ts:57
Returns true if the given type is an audio item type.
Parameters
Parameter | Type | Description |
---|---|---|
type | CnsDataBarItemType | The type to check. |
Returns
type is Audio | AudioMinimized | AudioOnly
True if the given type is an audio item type.
isItemTypeCom()
static
isItemTypeCom(type
): type is Com | ComMinimized
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/CnsDataBar/CnsDataBarUtils.ts:27
Returns true if the given type is a communication item type.
Parameters
Parameter | Type | Description |
---|---|---|
type | CnsDataBarItemType | The type to check. |
Returns
type is Com | ComMinimized
True if the given type is a communication item type.
isItemTypeNav()
static
isItemTypeNav(type
): type is Nav | NavMinimized
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/CnsDataBar/CnsDataBarUtils.ts:36
Returns true if the given type is a navigation item type.
Parameters
Parameter | Type | Description |
---|---|---|
type | CnsDataBarItemType | The type to check. |
Returns
type is Nav | NavMinimized
True if the given type is a navigation item type.
isItemTypeRadio()
static
isItemTypeRadio(type
): type is Com | Nav | NavMinimized | ComMinimized
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Components/CnsDataBar/CnsDataBarUtils.ts:45
Returns true if the given type is a radio item type.
Parameters
Parameter | Type | Description |
---|---|---|
type | CnsDataBarItemType | The type to check. |
Returns
type is Com | Nav | NavMinimized | ComMinimized
True if the given type is a radio (communication or navigation) item type.