Reference
Minesweeper element
import { … } from "@johnmorrisdotca/jirai/element";
14.6 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
defineBoard | function | Registers the default board, or a subclass under a host's custom tag. |
defineJirai | function | Registers the compatible default tag in a registry. |
JIRAI_EMBED_OPTION_KEYS | constant | The real mounted options, checked by TypeScript and the builder. |
JiraiElement | class | A Minesweeper board with reflected settings, UTC daily play and native events. |
JiraiElementOptions | type | Host settings, saved play and callbacks; visual attributes override settings. |