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

DrawnBox interface

What the copy showed in its last drawn frame, in viewport CSS px.

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

Members

NameTypeDescription
readonly clip?Box

Box it was clipped to (clipping ancestor or the clip override), if any.

readonly heightnumber

Height, CSS px.

readonly opacitynumber

Alpha it was drawn with.

readonly radiusnumber

border-radius in px, largest corner.

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.