# Cut

interface in `@dioramajs/text/unfold`

```ts
import type { Cut } from '@dioramajs/text/unfold'
```

A flat cut of the text block that folds on a hinge.

```ts
interface Cut
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `corners` | `readonly [number, number, number, number, number, number, number, number]` | Corners in box px (y down): top left, top right, bottom left, bottom right; a triangle repeats its last. |
| `edges` | `readonly [number, number, number, number]` | Across each edge (top, bottom, left, right): the cut whose hinge it is, -1 for none. |
| `hinge` | `readonly [number, number, number, number]` | A point on the hinge and the unit direction across it into this cut, box px, y down. |
| `layer` | `number` | Paper thicknesses it lies above its parent when folded: the cuts folded in under it. |
| `parent` | `number` | The cut it hangs from, always an earlier one; -1 hangs it from the page. |
| `unit` | `number` | The timing unit that opens it; -1 never moves. |

Defined in [packages/text/src/unfold.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/unfold.ts#L81).
