Quantity
Class in @bimworks/viewercommon.
API catalogue · @bimworks/viewercommon · Class
A value with a unit, as BQL returns it. Compares as its number (d.width > 1.05) and prints with its unit
(${d.width} gives "1.05 m"); for strict equality use +d.width or d.width.value
Members#
| Member | Kind | Description |
|---|---|---|
| constructor | Method | |
| type | Property | |
| unit | Property | |
| value | Property | |
| toString | Method | |
| valueOf | Method |
constructor#
TypeScript#
constructor()type#
TypeScript#
readonly type: string | nullunit#
TypeScript#
readonly unit: string | nullvalue#
TypeScript#
readonly value: numbertoString#
TypeScript#
toString(): stringvalueOf#
TypeScript#
valueOf(): number