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

loadTileDesignfunction

A design by name. jarajara at once; riichi and riichi-black fetched now, and kept. Null for a name that is no design. The drawings are @johnmorrisdotca/jarajara/designs/riichi and /designs/riichi-black if a bundler should be told of them by name.

Import it

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

Definition

function loadTileDesign(name: TileDesignName | string): Promise<TileDesign | null>

Parameters

NameTypeDescription
namestring

The local seat name, back name or design name specified by this signature.

Returns

Promise<TileDesign | null>

A design by name. jarajara at once; riichi and riichi-black fetched now, and kept. null for a name that is no design. The drawings are @johnmorrisdotca/jarajara/designs/riichi and /designs/riichi-black if a bundler should be told of them by name.

Examples

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

console.log((await loadTileDesign("riichi"))?.name);
riichi

What it prints (run when this page was built)

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