Reference · Rules, tiles and records
TABLEconstant
HOW THE TABLE IS LOOKED AT: which squares are shown, how big a tile is
drawn and where. Pure, and apart from the game (play.ts): the tiles are
where the player put them whatever the view, and a view is a function of
the tiles, the screen and the player's own zooming and panning.
John, 2026-09-26: no board — "literally there is no board in the real world
game." The table shown is the tiles' own extent plus a margin all round, so
there is always room to build outward, and it zooms to fit the crossword:
big tiles for a first word, smaller as the grid spreads, never smaller than
a thumb can press (TABLE.tileLeast). Past that the table pans instead.
Import it
import { TABLE } from "@johnmorrisdotca/kumimoji";
Definition
const TABLE: { readonly margin: 2; readonly tileLeast: 32; readonly zoomLeast: 12; readonly tileMost: 56; readonly growsFrom: 544; readonly zoomMost: 88; readonly edge: 36; readonly edgeStep: 8; readonly edgeDwellMs: 350; } = {
margin: 2,
tileLeast: 32,
zoomLeast: 12,
tileMost: 56,
growsFrom: 544,
zoomMost: 88,
edge: 36,
edgeStep: 8,
edgeDwellMs: 350,
} as const
Members
| Name | Type | Description |
|---|---|---|
margin | 2 | Empty squares shown beyond the tiles on every side. |
tileLeast | 32 | The smallest a tile is drawn, in CSS pixels: a comfortable thumb. |
zoomLeast | 12 | The smallest a player may zoom a tile to by hand, to see a big crossword
whole: too small to press, and not meant to be (John, 2026-09-28: "I would
like to zoom out even further"). Fit never goes below |
tileMost | 56 | The largest a fitted tile is drawn: a first word does not fill a desk. |
growsFrom | 544 | The shorter side of a table past which |
zoomMost | 88 | The largest a player may zoom a tile to by hand. |
edge | 36 | How near an edge of the table a dragged tile starts it panning, and how fast, in pixels a frame. |
edgeStep | 8 | |
edgeDwellMs | 350 | How long a dragged tile must stay near an edge before the table pans: crossing an edge on the way in is not asking to pan. |
Examples
import { TABLE } from "@johnmorrisdotca/kumimoji";
console.log(TABLE);{
margin: 2,
tileLeast: 32,
zoomLeast: 12,
tileMost: 56,
growsFrom: 544,
zoomMost: 88,
edge: 36,
edgeStep: 8,
edgeDwellMs: 350
}What it prints (run when this page was built)