Reference
Register puzzles
import { … } from "@johnmorrisdotca/meikyuu/element/define";
52.8 kB minified and gzipped, with everything it imports (measured with esbuild)
Defines the <meikyuu-board> element on the page. Import it for its effect:
<script type="module" src="https://cdn.jsdelivr.net/npm/@johnmorrisdotca/meikyuu@2/dist/element-define.js"></script>
<meikyuu-board level="12"></meikyuu-board>A tag already defined is left as it is, and on a server, where there is no page, nothing happens.
Exports
| Name | Kind | What it is |
|---|---|---|
defineBoard | function | Register a standard or custom tag without replacing a definition. |
MEIKYUU_EMBED_OPTION_KEYS | constant | The real mounted-board options, checked by TypeScript and the embed builder. |
MeikyuuBoard | class | Native custom element with reflected setup and presentation. |
MeikyuuElementOptions | type | Host callbacks; the same actions emit native events. |