# Grid

interface in `@dioramajs/text/blinds`

```ts
import type { Grid } from '@dioramajs/text/blinds'
```

How the text block is cut into slats or tiles.

```ts
interface Grid
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `axis` | `Float32Array` | Per cell, row by row: the axis in the page it turns about, x and y (y up). |
| `block` | `readonly [number, number, number, number]` | The panel in element px, y down: x0, y0, x1, y1. |
| `cells` | `Float32Array` | Cells in draw order: the farthest from the middle first, so nearer ones cover them. |
| `cols` | `number` |  |
| `em` | `number` | Font size of the largest line. |
| `order` | `Float32Array` | Per cell: its place in the wave, in slats from the first. |
| `pitch` | `readonly [number, number]` | Width and height of one cell. |
| `reach` | `Float32Array` | Per cell: half its extent across its axis, px, how far it stands out edge-on. |
| `rows` | `number` |  |
| `style` | `Style` |  |

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