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

PlaceOptions interface

Options of `ctx.place`.

View as Markdown
import type { PlaceOptions } from '@dioramajs/diorama/effects'
interface PlaceOptions

Members

NameTypeDescription
readonly dispose?boolean

Dispose geometry, materials and textures on detach. Default true, false for shared ones.

readonly fit?'none' | 'contain' | 'box'

'box' (default) stretches a 1x1 object to the box, 'contain' scales it by min(width, height), 'none' keeps px units.

readonly replace?boolean

Use this object as the element's GL copy instead of the surface mesh.

Also exported from @dioramajs/effects.

Defined in packages/effects/src/types.ts.