リファレンス
盤面と局面の要素
import { … } from "@johnmorrisdotca/sugoroku/element";
最小化と gzip 圧縮をしたサイズは 24.4 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
defineBoard | 関数 | Defines the default playable board, or a subclass under a custom tag. |
definePosition | 関数 | Defines a static position, or a subclass under a host's tag. |
readEmbedPosition | 関数 | Reads a GNU position ID or bounded JSON position; null means invalid counts or input. |
SUGOROKU_DRAW_OPTION_KEYS | 定数 | Native draw keys, checked by the shared builder. |
SUGOROKU_EMBED_OPTION_KEYS | 定数 | The real mounted options, checked alongside builder coverage. |
SUGOROKU_POSITION_OPTION_KEYS | 定数 | All host position options, checked by the builder. |
SugorokuBoard | クラス | Native custom element with reflected setup and presentation. |
SugorokuElementOptions | 型 | Host mount options, including custom colours, names, a match and callbacks. |
SugorokuPosition | クラス | A read-only backgammon position, drawn by the native SVG writer. |
SugorokuPositionOptions | 型 | Host data and all native SVG drawing choices for a position. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。