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

BoardOptions interface

The interface BoardOptions of @dioramajs/text/keycaps.

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

Members

NameTypeDescription
readonly alignnumber

0 left, 0.5 centre, 1 right.

readonly fillboolean

The case is the element's box, widened to fit the keys; otherwise a rim round the keys.

readonly heightnumber
readonly paddingreadonly [number, number, number, number]

Top, right, bottom, left.

readonly roomnumber

Widest the board may grow, px.

readonly widthnumber

The element's box, px.

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