ServicesConfiguratorUiCallback.Internal.UnitMeasureFormatter
configurator-core/src/services/configurator-ui-callback.internal.UnitMeasureFormatter
Table of contents
Constructors
Methods
Constructors
constructor
• new UnitMeasureFormatter()
Methods
formatMMValueToUnitString
▸ formatMMValueToUnitString(aValue
, aUnit
, aStringType
): string
Parameters
Name | Type |
---|---|
|
|
| |
|
Returns
string
formatMMValueWithReqMaxLength
▸ formatMMValueWithReqMaxLength(aValue
, aUnit
, reqMaxSize
): string
Parameters
Name | Type |
---|---|
|
|
| |
|
|
Returns
string
formatNumber
▸ formatNumber(aValue
, digit
): string
Parameters
Name | Type |
---|---|
|
|
|
|
Returns
string
formatSquareMMValueToUnitString
▸ formatSquareMMValueToUnitString(aValue
, aUnit
): string
Parameters
Name | Type |
---|---|
|
|
|
Returns
string
init
▸ init(mmLabel
, cmLabel
, ftShortLabel
, ftLongLabel
, inchShortLabel
, inchLongLabel
, sqMLabel
, sqftLabel
, showExactValue
, maxPrecision
, showFractionalUnitString
): void
Parameters
Name | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns
void
isParseableNumber
▸ isParseableNumber(aString
): boolean
Parameters
Name | Type |
---|---|
|
|
Returns
boolean
isParseableUnitString
▸ isParseableUnitString(aString
, aUnit
): boolean
Parameters
Name | Type |
---|---|
|
|
|
Returns
boolean
parseMMValueFromUnitString
▸ parseMMValueFromUnitString(aString
, aUnit
): number
Parameters
Name | Type |
---|---|
|
|
|
Returns
number
parseNumber
▸ parseNumber(aString
): number
Parameters
Name | Type |
---|---|
|
|
Returns
number
parseSquareMMValueFromUnitString
▸ parseSquareMMValueFromUnitString(aString
, aUnit
): number
Parameters
Name | Type |
---|---|
|
|
|
Returns
number
showExactValues
▸ showExactValues(shouldeI
): void
Parameters
Name | Type |
---|---|
|
|
Returns
void
Last updated