Board interface
The keys and the case round them.
import type { Board } from '@dioramajs/text/keycaps'interface BoardMembers
| Name | Type | Description |
|---|---|---|
readonly case | readonly [number, number, number, number] | The case in box px: centre x, centre y (y down), width, height. |
readonly keys | readonly KeyPlan[] | |
readonly rows | number | |
readonly unit | number | Key pitch, px. |
readonly well | readonly [number, number, number, number] | The plate the keys sit on, keyboard px: centre x, y, half width, half height. |
Defined in packages/text/src/keycaps.ts.