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 · Tile and table elements

defineRackfunction

Register a rack under its standard tag or a host's own tag. Safe to call without a browser.

Import it

import { defineRack } from "@johnmorrisdotca/jarajara/element";

Definition

function defineRack(tag?: string): void

Parameters

NameTypeDescription
tag (optional)string

The custom tag name; omitted to use the package default.

Examples

import { defineRack } from "@johnmorrisdotca/jarajara/element";
defineRack();
console.log(typeof defineRack); // function
function

What it prints (run when this page was built)

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