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

Built interface

A built device: its group, centred on its bounds, and its size at rest in screen heights.

View as Markdown
import type { Built } from '@dioramajs/model/device'
interface Built

Members

NameTypeDescription
readonly aspectnumber

Width over height of the screen, which the picture covers.

readonly baseboolean

The laptop stands on its base: its shadow is a band under it, not its whole outline.

readonly cornernumber
readonly depthnumber
readonly groupGroup
readonly heightnumber
readonly pointsreadonly Vector3[]

Corners of the bounds of its parts around its centre, for a fit tighter than its box.

readonly widthnumber

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