Reference · Tiles, layouts and deals
MahjongSlottype
A place in a layout: a tile's top-left corner in half-tile units across and down, and its layer.
Import it
import type { MahjongSlot } from "@johnmorrisdotca/jarajara";
Definition
type MahjongSlot = {
x: number;
y: number;
z: number;
};
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | number | |
z | number |
Examples
import type { MahjongSlot } from "@johnmorrisdotca/jarajara";
const value: MahjongSlot = {x:0,y:0,z:0};
console.log(value);{ x: 0, y: 0, z: 0 }What it prints (run when this page was built)