Grid interface
How the text block is cut into slats or tiles.
import type { Grid } from '@dioramajs/text/blinds'interface GridMembers
| Name | Type | Description |
|---|---|---|
readonly axis | Float32Array | Per cell, row by row: the axis in the page it turns about, x and y (y up). |
readonly block | readonly [number, number, number, number] | The panel in element px, y down: x0, y0, x1, y1. |
readonly cells | Float32Array | Cells in draw order: the farthest from the middle first, so nearer ones cover them. |
readonly cols | number | |
readonly em | number | Font size of the largest line. |
readonly order | Float32Array | Per cell: its place in the wave, in slats from the first. |
readonly pitch | readonly [number, number] | Width and height of one cell. |
readonly reach | Float32Array | Per cell: half its extent across its axis, px, how far it stands out edge-on. |
readonly rows | number | |
readonly style | Style |
Defined in packages/text/src/blinds.ts.