Reference · Tile and table elements
RackLayoutOptionstype
How a rack is laid out. Every field may be left out.
Import it
import type { RackLayoutOptions } from "@johnmorrisdotca/jarajara/element";
Definition
type RackLayoutOptions = {
breaks?: readonly number[];
lifted?: ReadonlySet<number> | readonly number[];
step?: number;
gap?: number;
lift?: number;
};
Members
| Name | Type | Description |
|---|---|---|
breaks (optional) | readonly number[] | undefined | The places, counted from 0 in the order the tiles lie, where a new group starts, after a gap. Unless said, none. |
lifted (optional) | readonly number[] | ReadonlySet<number> | undefined | The places of the tiles that are raised. Unless said, none. |
step (optional) | number | undefined | How far apart neighbours lie, in tile widths: a little over one, so tiles that touch have a hair of table between. Unless said, 1.02. |
gap (optional) | number | undefined | The gap a group is set apart by, in tile widths. Unless said, 0.45. |
lift (optional) | number | undefined | How far a raised tile stands above the row, in tile widths. Unless said, 0.22. |
Examples
import type { RackLayoutOptions } from "@johnmorrisdotca/jarajara/element";
const value: RackLayoutOptions = {breaks:[3],lifted:[0],step:30,gap:8,lift:5};
console.log(value);{ breaks: [ 3 ], lifted: [ 0 ], step: 30, gap: 8, lift: 5 }What it prints (run when this page was built)