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

AttachOptions interface

Options of `attach`.

View as Markdown
import type { AttachOptions } from '@dioramajs/diorama/effects'
interface AttachOptions

Members

NameTypeDescription
readonly eager?boolean

Load now instead of when near the viewport.

readonly signal?AbortSignal

Aborting it detaches the handle.

readonly track?'frame' | 'layout'

By default the box is read live in every drawn frame and the motion watcher runs. 'frame' keeps the watcher awake while visible (long JS tweens). 'layout' uses a cached box, for static grids.

Also exported from @dioramajs/effects.

Defined in packages/effects/src/types.ts.