本文へ移動

Jarajaraジャラジャラ

麻雀牌を描き、手牌や積み重ねた盤を配置し、シード付きの「合わせ」をひとりでも対戦卓でも遊べます。

「ジャラジャラ」は麻雀牌が触れ合う音を表す言葉です。 名前について(英語)

目次

リファレンス · SVGの図柄と見た目

tileBackSvg関数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

One tile's back on its own, as a whole <svg> in the same box as tileSvg: the back plate over a solid block, its thickness showing on two sides (the back plate's own colour, with the ivory layer beyond it). With flat, the old look (a sliver of side in 32 by 42) and with bare the back alone in 30 by 40, for a page that gives the tile its thickness itself. Null for a name that is no back drawn here and no design to bring it.

インポート

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

定義

function tileBackSvg(name?: TileBackName, options?: TileBackOptions & { flat?: boolean; bare?: boolean; mirror?: TileMirror; }): string | null

引数

名前型説明
name (省略可)TileBackName

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

options (省略可)TileBackOptions & { flat?: boolean; bare?: boolean; mirror?: TileMirror; }

Native game, SVG, sound or presentation options.

戻り値

string | null

A complete SVG back string, or null for a name without a supported back.

例

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

console.log(tileBackSvg("jade")?.startsWith("<svg"));
true

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/jarajara 1.7.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。