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

cut function

Cuts the text block for a style.

View as Markdown
import { cut } from '@dioramajs/text/unfold'

bands 'auto' picks the cut from the text: a band per line for strips and origami (three for a single line of strips), about an em per pleat for accordion. flaps hangs every strip from the page instead of from the strip above, for hover.

function cut(
  r: Raster,
  style: Style,
  bands: number | 'auto',
  align: number,
  flaps?: boolean,
): Sheet | undefined

Parameters

NameTypeDescription
rRaster
styleStyle
bandsnumber | 'auto'
alignnumber
flaps?boolean

Default false.

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