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

Board interface

The keys and the case round them.

View as Markdown
import type { Board } from '@dioramajs/text/keycaps'
interface Board

Members

NameTypeDescription
readonly casereadonly [number, number, number, number]

The case in box px: centre x, centre y (y down), width, height.

readonly keysreadonly KeyPlan[]
readonly rowsnumber
readonly unitnumber

Key pitch, px.

readonly wellreadonly [number, number, number, number]

The plate the keys sit on, keyboard px: centre x, y, half width, half height.

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