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 · SVG faces and looks

layoutBoxfunction

The drawing's width and height for a layout's size, room left for the thickness and the layers. Null for a size with no layout. The same in every view.

Import it

import { layoutBox } from "@johnmorrisdotca/jarajara/faces";

Definition

function layoutBox(size: number): { width: number; height: number; } | null

Parameters

NameTypeDescription
sizenumber

The native layout size identifier, measured in tiles across.

Returns

{ width: number; height: number; } | null

The drawing's width and height for a layout's size, room left for the thickness and the layers. null for a size with no layout. The same in every view.

Examples

import { layoutBox } from "@johnmorrisdotca/jarajara/faces";

console.log(layoutBox(4));
{ width: 140, height: 60 }

What it prints (run when this page was built)

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