リファレンス
盤面の登録
import { … } from "@johnmorrisdotca/narabe/element/define";
最小化と gzip 圧縮をしたサイズは 22.5 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
defineBoard | 関数 | Defines the default board or a subclass under a custom tag. |
NARABE_DRAW_OPTION_KEYS | 定数 | Native drawing option keys, checked by the embed builder. |
NARABE_EMBED_OPTION_KEYS | 定数 | Real host option keys, checked by the embed builder. |
NarabeBoard | クラス | A board position and keyboard-operable replay of the native game engine. |
NarabeElementOptions | 型 | Host state, rules, replay choices, drawing options and callbacks. |
parseEmbedMoves | 関数 | Reads a bounded JSON move list for a board embed, or null for malformed input. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。