Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

Written interface

A number as the text writes it: where it sits, its value, separators and grouping.

View as Markdown
import type { Written } from '@dioramajs/text/counter'
interface Written

Members

NameTypeDescription
readonly decimalsnumber
readonly endnumber
readonly groupstring

Group separator as written, '' for none.

readonly pointstring

Decimal separator as written, '' for none.

readonly primarynumber

Digits in the last integer group, and in the groups before it (2 in Indian grouping).

readonly secondarynumber
readonly startnumber

Offsets of its first digit and past its last in the text.

readonly valuenumber
readonly widthnumber

Integer digits as written: more than 1 only with leading zeros, as in 007.

Defined in packages/text/src/counter.ts.