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/explode

Exports of @dioramajs/model/explode.

View as Markdown
On this page
import { default, extent, layout } from '@dioramajs/model/explode'

Functions

extentBounds of the parts of the model with each piece moved by its own `moves` entry (file units) and by those of the pieces it sits inside: what `contain` fits into the box.
layoutThe pieces of a file and their offsets at `spread: 1`. `radial` moves each from the centre by its own distance; `axis` spreads levels along the axis evenly over one model size; `extras` takes `extras.explode = [x, y, z]` of the glTF nodes, in file units.

Constants

defaultAn exploded view of the `model` on the same element: its parts move apart as the section scrolls and come back on the way up.

Interfaces

PieceA part that moves apart, with everything about it in the file's coordinates.