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

watchRig function

Calls `listener` with the element's rig now if there is one, then on every change: a new rig when `model` rebuilds, undefined when it goes.

View as Markdown
import { watchRig } from '@dioramajs/diorama/model/rig'

. Stops with the signal.

function watchRig(
  element: Element,
  listener: Listener,
  signal: AbortSignal,
): void

Parameters

NameTypeDescription
elementElement
listenerListener
signalAbortSignal

Also exported from @dioramajs/model/rig.

Defined in packages/model/src/rig.ts.