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

EntryPatch interface

A known effect changed without its code: `{ ripple: { when: 'all' } }`.

View as Markdown
import type { EntryPatch } from '@dioramajs/diorama'

Both fields beat the definition's, and the light part reads them before the module loads.

interface EntryPatch

Members

NameTypeDescription
readonly load?undefined

A patch keeps the effect's loader; an object with load is a new entry.

readonly override?boolean

Marks the entry that replaces a built-in as intended, e.g. a shader from the effects folder.

readonly reducedMotion?'static' | 'off'

'off' turns the effect off under reduced motion, 'static' draws it without motion.

readonly when?When

A media query, 'hover' for '(hover: hover)', or 'all' to run on touch devices too.

Also exported from @dioramajs/diorama/auto.

Defined in packages/diorama/src/index.ts.