Class: CdiScaleFormatter
Utility class for creating CDI scaling mode text formatters.
Constructors
constructor
• new CdiScaleFormatter(): CdiScaleFormatter
Returns
Methods
create
▸ create(useRnp
): (mode
: CDIScaleLabel
) => string
Creates a function which formats CDI scaling modes to text strings.
Parameters
Name | Type | Description |
---|---|---|
useRnp | boolean | Whether 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
Name | Type |
---|---|
mode | CDIScaleLabel |
Returns
string
Defined in
src/garminsdk/components/nextgenpfd/hsi/CdiScaleFormatter.ts:57