DimensionFormat ​Contract 2.0.0 · package sha256
a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e· generated fromconfigurator-runtime.d.tsbyservices/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.
Interface · import type { DimensionFormat } from '@holostep-configurators/runtime-client/contract'; · stable · since 2.0.0 · section 13. Overlays
How rulers print a length: the number to decimals places, a space and unit ('120 cm'), as 1.x printed its unit. Any other text (a thousands separator, a datasheet value, the axis name) is the format function.
| Member | Kind | Summary |
|---|---|---|
unit? |
property | The unit a length prints in, after the number ('120 cm'). |
decimals? |
property | Decimal places of the printed number, rounded ('1.25 m' with 2). |
export interface DimensionFormat {
unit?: 'mm' | 'cm' | 'm';
decimals?: number;
}
| Rule | Result |
|---|---|
| 1. Neutral name | pass: DimensionFormat names no product |
| 2. A precedent | pass: Intl.NumberFormat (row G14); Unity Renderer.bounds (row G14) |
| 3. Two apps, or labs | pass: 4 apps (ledger: app-ceb4eccc72, app-fb16dd1985, app-fc306ec3dc, app-fd09090420) |
| 4. The cheaper fix first | decided per need in Appendix B: rows G14 at tier stable (a member only where no rule, data, asset or app code serves the need) |