build function
The box of a `width` × 1 front and `depth`, its faces in `faces`, bare board in `inside`.
import { build } from '@dioramajs/model/box'flap: the top on a hinge at its back edge; lift: a lid over the top LID of the box; drawer: a sleeve with a tray that slides out to the right.
function build(
width: number,
depth: number,
motion: Motion,
faces: Readonly<Record<FaceName, Material>>,
inside: Material,
): BuiltParameters
| Name | Type | Description |
|---|---|---|
width | number | |
depth | number | |
motion | Motion | |
faces | Readonly<Record<FaceName, Material>> | |
inside | Material |
Defined in packages/model/src/box.ts.