Class: WT21UnitsUtils
Constructors
constructor
• new WT21UnitsUtils(): WT21UnitsUtils
Returns
Properties
UNIT_STRINGS
▪ Static
UNIT_STRINGS: Map
<Unit
<any
>, string
>
Defined in
workingtitle-instruments-wt21/shared/WT21UnitsUtils.ts:8
Methods
getIsMetric
▸ getIsMetric(): boolean
Returns a boolean indicating if the sim is in metric mode.
Returns
boolean
true if sim is in metric mode, false otherwise.
Defined in
workingtitle-instruments-wt21/shared/WT21UnitsUtils.ts:23
getUnitString
▸ getUnitString(unit
): string
Gets the string (used for display) for a given unit in the WT21.
Parameters
Name | Type | Description |
---|---|---|
unit | Unit <any > | The unit to get the string for. |
Returns
string
The unit string for display.
Defined in
workingtitle-instruments-wt21/shared/WT21UnitsUtils.ts:32