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

@dioramajs/model/rig

How model shares its placed scene with the effects that work on it.

View as Markdown
On this page
import { publish, rigOf, watchRig } from '@dioramajs/model/rig'

Functions

publishCalled by `model`: the element's rig, or undefined when it goes.
rigOfThe element's rig now, if `model` placed one.
watchRigCalls `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. Stops with the signal.

Interfaces

RigThe placed model of an element, as `model` publishes it.