Skip to the content

Jarajaraジャラジャラ

Draw mahjong tiles, arrange racks and stacked boards, and play seeded Awase alone or at a shared table.

Jarajara is the Japanese sound of mahjong tiles rattling together. About the name

Contents

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

NameTypeDescription
sizenumber

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);
tiny

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jarajara 1.7.0.