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

parse function

The first number in `text`, read as written: `12,480`, `99.9`, `4,2` or `1.204.500` in German, `1 204 500`, `12,34,567`.

View as Markdown
import { parse } from '@dioramajs/text/counter'

. A lone point or comma before exactly three digits groups them unless it is the decimal separator of lang. Undefined without digits or past 15 of them.

function parse(text: string, lang?: string): Written | undefined

Parameters

NameTypeDescription
textstring
lang?string

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