Written interface
A number as the text writes it: where it sits, its value, separators and grouping.
import type { Written } from '@dioramajs/text/counter'interface WrittenMembers
| Name | Type | Description |
|---|---|---|
readonly decimals | number | |
readonly end | number | |
readonly group | string | Group separator as written, '' for none. |
readonly point | string | Decimal separator as written, '' for none. |
readonly primary | number | Digits in the last integer group, and in the groups before it (2 in Indian grouping). |
readonly secondary | number | |
readonly start | number | Offsets of its first digit and past its last in the text. |
readonly value | number | |
readonly width | number | Integer digits as written: more than 1 only with leading zeros, as in 007. |
Defined in packages/text/src/counter.ts.