Reference
Puzzle board element
import { … } from "@johnmorrisdotca/karakuri/element";
42.1 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
defineBoard | function | Defines the board or a subclass under a custom tag. |
KARAKURI_EMBED_OPTION_KEYS | constant | Native mounted options, checked against the embed builder. |
KarakuriBoard | class | A reflected puzzle-game element with a preserved native controller. |
KarakuriElementOptions | type | Full native host options; attributes take priority over starting choices. |