DimensionFormat.unit ​

Contract 2.0.0 · package sha256 a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e · generated from configurator-runtime.d.ts by services/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.

Property of DimensionFormat · stable · since 2.0.0

ts
unit?: 'mm' | 'cm' | 'm';

The unit a length prints in, after the number ('120 cm').

Default: 'cm'

Generic-API test (spec 3.1) ​

Rule Result
1. Neutral name pass: unit names no product
2. A precedent pass (through its owner DimensionFormat): Intl.NumberFormat (row G14); Unity Renderer.bounds (row G14)
3. Two apps, or labs pass (through its owner DimensionFormat): 4 apps (ledger: app-ceb4eccc72, app-fb16dd1985, app-fc306ec3dc, app-fd09090420)
4. The cheaper fix first decided per need in Appendix B: rows G14 (through its owner DimensionFormat) at tier stable (a member only where no rule, data, asset or app code serves the need)