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

ReleaseRequest interface

Payload of `effects:release`: a drawn copy's element left the document and nobody took it.

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

Members

NameTypeDescription
readonly drawnDrawnBox

Where and how the copy was last drawn.

readonly elementElement

The element that left.

readonly visibleboolean

The copy was in the viewport (with the effects' bleed) in its last frame.

take
take(options?: Pick<TakeOptions, 'signal'>): Copy | undefined

Keeps the copy as a ghost. Undefined if an earlier handler took it.

Also exported from @dioramajs/effects.

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