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

PosedBox interface

Where the element's own effects pose its copy, in viewport CSS px.

View as Markdown
import type { PosedBox } from '@dioramajs/diorama/effects'
interface PosedBox extends Box

Members

NameTypeDescription
readonly clipboolean

false while the pose lifts the clipping ancestor's clip (clip: false).

readonly heightnumber

Height, CSS px.

readonly radiusnumber

border-radius in px, blended by the pose.

readonly widthnumber

Width, CSS px.

readonly xnumber

Viewport x, CSS px.

readonly ynumber

Viewport y, CSS px.

Also exported from @dioramajs/effects.

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