PoseTarget interface
Absolute target in world px (viewport centre 0,0, y up) and radians.
import type { PoseTarget } from '@dioramajs/diorama/effects'Omitted fields keep layout.
interface PoseTargetMembers
| Name | Type | Description |
|---|---|---|
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.