KeyPlan interface
One key of the board.
import type { KeyPlan } from '@dioramajs/text/keycaps'interface KeyPlanMembers
| Name | Type | Description |
|---|---|---|
readonly piece | number | The atlas piece printed on it; -1 for a space bar. |
readonly row | number | |
readonly seq | number | Place in the typing order. |
readonly units | number | Width in keys. |
readonly x | number | Centre in keyboard px: x right, y away from the viewer, the case's middle at 0. |
readonly y | number |
Defined in packages/text/src/keycaps.ts.