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

Register the elements

import { … } from "@johnmorrisdotca/jarajara/element/define";

97.4 kB minified and gzipped, with everything it imports (measured with esbuild)

Defines Jarajara's custom elements on the page: <jarajara-tile>, <jarajara-rack>, <jarajara-layout>, <jarajara-table>, <jarajara-group>, <jarajara-set> and <jarajara-viewer>. Import it for its effect:

<script type="module" src="https://cdn.jsdelivr.net/npm/@johnmorrisdotca/jarajara@1/dist/element-define.js"></script>
<jarajara-tile code="east" flip></jarajara-tile>

A tag already defined is left as it is, and on a server, where there is no page, nothing happens.

Exports

NameKindWhat it is

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