# DrawnBox

interface in `@dioramajs/diorama/effects`

```ts
import type { DrawnBox } from '@dioramajs/diorama/effects'
```

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

```ts
interface DrawnBox extends Box
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `clip?` | `Box` | Box it was clipped to (clipping ancestor or the `clip` override), if any. |
| `height` | `number` | Height, CSS px. |
| `opacity` | `number` | Alpha it was drawn with. |
| `radius` | `number` | border-radius in px, largest corner. |
| `width` | `number` | Width, CSS px. |
| `x` | `number` | Viewport x, CSS px. |
| `y` | `number` | Viewport y, CSS px. |

Also exported from `@dioramajs/effects`.

Defined in [packages/effects/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/types.ts#L820).
