Skip to main content

Class: CdiScaleFormatter

Utility class for creating CDI scaling mode text formatters.

Constructors

constructor

new CdiScaleFormatter(): CdiScaleFormatter

Returns

CdiScaleFormatter

Methods

create

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

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

Parameters

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

Returns

fn

A function which formats CDI scaling modes to text strings.

▸ (mode): string

Parameters
NameType
modeCDIScaleLabel
Returns

string

Defined in

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