# cut

function in `@dioramajs/text/unfold`

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

Cuts the text block for a style. `bands` 'auto' picks the cut from the text: a band per line for
strips and origami (three for a single line of strips), about an em per pleat for accordion.
`flaps` hangs every strip from the page instead of from the strip above, for hover.

```ts
function cut(
  r: Raster,
  style: Style,
  bands: number | 'auto',
  align: number,
  flaps?: boolean,
): Sheet | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `r` | `Raster` |  |
| `style` | `Style` |  |
| `bands` | `number \| 'auto'` |  |
| `align` | `number` |  |
| `flaps?` | `boolean` |  |

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