slot function
The pose of a card at a whole depth in the pile: 0 is the top, which sits on the box.
import { slot } from '@dioramajs/media/stack'width and height are the box, rotate in degrees, offset in px.
function slot(
style: StackStyle,
depth: number,
jitter: readonly [number, number, number],
width: number,
height: number,
rotate: number,
offset: number,
): PoseParameters
| Name | Type | Description |
|---|---|---|
style | StackStyle | |
depth | number | |
jitter | readonly [number, number, number] | |
width | number | |
height | number | |
rotate | number | |
offset | number |
Defined in packages/media/src/stack.ts.