# slot

function in `@dioramajs/media/stack`

```ts
import { slot } from '@dioramajs/media/stack'
```

The pose of a card at a whole depth in the pile: 0 is the top, which sits on the box. `width`
and `height` are the box, `rotate` in degrees, `offset` in px.

```ts
function slot(
  style: StackStyle,
  depth: number,
  jitter: readonly [number, number, number],
  width: number,
  height: number,
  rotate: number,
  offset: number,
): Pose
```

| Parameter | 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](https://github.com/MasterKurosava/diorama/blob/main/packages/media/src/stack.ts#L84).
