本文へ移動

Hitotsu一つ

色か数字をそろえて出し、手札が1枚になったら声をかけます。クラシックやパーティーのルールで、コンピューターや共有のテーブルで遊べます。

「ヒトツ」は「一つ」。手札が1枚になったときに言う言葉です。 名前について(英語)

目次

リファレンス

登録の別名

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

最小化と gzip 圧縮をしたサイズは 42.7 kB(読み込むものをすべて含み、esbuild で計測)

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

<hitotsu-table>, registered by being imported:

<script type="module" src="…/dist/element-define.js"></script>

<hitotsu-table rules="party" computers="3"></hitotsu-table>

The one module of the package that does something when it is imported, and package.json says so, so that a bundler keeps it. ./element exports the same class and defineHitotsuTable() with no effect of its own, for a page that wants to choose when.

エクスポート

名前種類概要
defineHitotsuTable関数Register a default or custom-tag native table; safe on servers and idempotent.
defineTable関数Standard table registration helper.
HITOTSU_EMBED_OPTION_KEYS定数Native option keys checked by the builder.
HitotsuElementOptions型Host-only settings, including custom house rules and private names.
HitotsuTableElementクラスA native playable colour-card table with reflected settings.

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

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