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

Grid interface

How the text block is cut into slats or tiles.

View as Markdown
import type { Grid } from '@dioramajs/text/blinds'
interface Grid

Members

NameTypeDescription
readonly axisFloat32Array

Per cell, row by row: the axis in the page it turns about, x and y (y up).

readonly blockreadonly [number, number, number, number]

The panel in element px, y down: x0, y0, x1, y1.

readonly cellsFloat32Array

Cells in draw order: the farthest from the middle first, so nearer ones cover them.

readonly colsnumber
readonly emnumber

Font size of the largest line.

readonly orderFloat32Array

Per cell: its place in the wave, in slats from the first.

readonly pitchreadonly [number, number]

Width and height of one cell.

readonly reachFloat32Array

Per cell: half its extent across its axis, px, how far it stands out edge-on.

readonly rowsnumber
readonly styleStyle

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