Skip to main content

Class: WT21UnitsUtils

Defined in: workingtitle-instruments-wt21/shared/WT21UnitsUtils.ts:6

Constructors​

Constructor​

new WT21UnitsUtils(): WT21UnitsUtils

Returns​

WT21UnitsUtils

Properties​

UNIT_STRINGS​

static UNIT_STRINGS: Map<Unit<any>, string>

Defined in: workingtitle-instruments-wt21/shared/WT21UnitsUtils.ts:8

Methods​

getIsMetric()​

static getIsMetric(): boolean

Defined in: workingtitle-instruments-wt21/shared/WT21UnitsUtils.ts:23

Returns a boolean indicating if the sim is in metric mode.

Returns​

boolean

true if sim is in metric mode, false otherwise.


getUnitString()​

static getUnitString(unit): string

Defined in: workingtitle-instruments-wt21/shared/WT21UnitsUtils.ts:32

Gets the string (used for display) for a given unit in the WT21.

Parameters​

ParameterTypeDescription
unitUnit<any>The unit to get the string for.

Returns​

string

The unit string for display.