@dioramajs/model/explode
Exports of @dioramajs/model/explode.
On this page
import { default, extent, layout } from '@dioramajs/model/explode'Functions
extent | Bounds 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. |
layout | The 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
default | An 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
Piece | A part that moves apart, with everything about it in the file's coordinates. |