Reference · Tile and table elements
RackPlacetype
One tile's place: across and down in tile widths from where the rack starts. A lifted tile is above the row, so its y is negative.
Import it
import type { RackPlace } from "@johnmorrisdotca/jarajara/element";
Definition
type RackPlace = {
x: number;
y: number;
};
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | number |
Examples
import type { RackPlace } from "@johnmorrisdotca/jarajara/element";
const value: RackPlace = {x:0,y:-5};
console.log(value);{ x: 0, y: -5 }What it prints (run when this page was built)