Reference · Tiles, layouts and deals
layoutForfunction
The layout a size names, or null for one there is not.
Import it
import { layoutFor } from "@johnmorrisdotca/jarajara";
Definition
function layoutFor(size: number): MahjongLayout | null
Parameters
| Name | Type | Description |
|---|---|---|
size | number | The native layout size identifier, measured in tiles across. |
Returns
MahjongLayout | null
The layout a size names, or null for one there is not.
Examples
import { layoutFor } from "@johnmorrisdotca/jarajara";
console.log(layoutFor(4)?.key);tinyWhat it prints (run when this page was built)