Skip to main content

Class: CdiScaleFormatter

Defined in: src/garminsdk/components/nextgenpfd/hsi/CdiScaleFormatter.ts:6

Utility class for creating CDI scaling mode text formatters.

Constructors​

Constructor​

new CdiScaleFormatter(): CdiScaleFormatter

Returns​

CdiScaleFormatter

Methods​

create()​

static create(useRnp): (mode) => string

Defined in: src/garminsdk/components/nextgenpfd/hsi/CdiScaleFormatter.ts:57

Creates a function which formats CDI scaling modes to text strings.

Parameters​

ParameterTypeDescription
useRnpbooleanWhether the formatter should output explicit RNP values for certain scaling modes (e.g. 'RNP2.00' instead of 'ENR').

Returns​

A function which formats CDI scaling modes to text strings.

(mode): string

Parameters​
ParameterType
modeCDIScaleLabel
Returns​

string