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

PoseTarget interface

Absolute target in world px (viewport centre 0,0, y up) and radians.

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

Omitted fields keep layout.

interface PoseTarget

Members

NameTypeDescription
readonly above?number

Draw level while weight > 0, like Copy.above. Default 0.

readonly clip?boolean

false: ignore the clipping ancestor while weight > 0. Default true.

readonly height?number

Box height in px the layer takes in the pose.

readonly radius?number

border-radius in px at weight 1, blended from the element's.

readonly rotateX?number

Rotation around x in radians.

readonly rotateY?number

Rotation around y in radians.

readonly rotateZ?number

Rotation around z in radians.

readonly scale?number

Uniform scale on top of the size.

readonly width?number

Box width in px the layer takes in the pose.

readonly x?number

Centre x in world px.

readonly y?number

Centre y in world px, y up.

readonly z?number

Depth in world px, towards the viewer.

Also exported from @dioramajs/effects.

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