Reference
Board element
import { … } from "@johnmorrisdotca/narabe/element";
22.5 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
defineBoard | function | Defines the default board or a subclass under a custom tag. |
NARABE_DRAW_OPTION_KEYS | constant | Native drawing option keys, checked by the embed builder. |
NARABE_EMBED_OPTION_KEYS | constant | Real host option keys, checked by the embed builder. |
NarabeBoard | class | A board position and keyboard-operable replay of the native game engine. |
NarabeElementOptions | type | Host state, rules, replay choices, drawing options and callbacks. |
parseEmbedMoves | function | Reads a bounded JSON move list for a board embed, or null for malformed input. |