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

Sheet interface

How the text block is cut, and the units that open one after another.

View as Markdown
import type { Sheet } from '@dioramajs/text/unfold'
interface Sheet

Members

NameTypeDescription
readonly anchornumber

Accordion: the point that stays put, 0 left edge, 0.5 middle, 1 right edge.

readonly cutsreadonly Cut[]
readonly emnumber

Largest font size, px.

readonly styleStyle
readonly unitsreadonly readonly [number, number, number, number, number][]

Per unit, in opening order: its area (x0, y0, x1, y1, box px) and the hover reach, px.

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