# KeyPlan

interface in `@dioramajs/text/keycaps`

```ts
import type { KeyPlan } from '@dioramajs/text/keycaps'
```

One key of the board.

```ts
interface KeyPlan
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `piece` | `number` | The atlas piece printed on it; -1 for a space bar. |
| `row` | `number` |  |
| `seq` | `number` | Place in the typing order. |
| `units` | `number` | Width in keys. |
| `x` | `number` | Centre in keyboard px: x right, y away from the viewer, the case's middle at 0. |
| `y` | `number` |  |

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