本文へ移動

Jarajaraジャラジャラ

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

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

目次

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

TileBackOptions型

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

How a back is drawn. Every field may be left out.

インポート

import type { TileBackOptions } from "@johnmorrisdotca/jarajara/faces";

定義

type TileBackOptions = {
    colour?: string;
    mark?: string;
    title?: string;
    design?: TileDesign;
};

メンバー

名前型説明
colour (省略可)string | undefined

The back's colour as #rgb or #rrggbb, in place of its own; its lines are worked out from it.

mark (省略可)string | undefined

A few letters written across the middle of it, a site's name: at most 8 are drawn.

title (省略可)string | undefined

What a screen reader says. Unless said, "tile, face down". An empty string makes the picture decoration.

design (省略可)TileDesign | undefined

A design whose own back is drawn, for the names a design brings (riichi).

例

import type { TileBackOptions } from "@johnmorrisdotca/jarajara/faces";

const value: TileBackOptions = {colour:"#2f5d4a",mark:"中",title:"Tile back"};
console.log(value);
{ colour: '#2f5d4a', mark: '中', title: 'Tile back' }

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

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

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