Reference
Register the board
import { … } from "@johnmorrisdotca/suido/element/define";
451.6 kB minified and gzipped, with everything it imports (measured with esbuild)
Defines the <suido-board> element on the page. Import it for its effect:
<script type="module" src="https://cdn.jsdelivr.net/npm/@johnmorrisdotca/suido@1/dist/element-define.js"></script>
<suido-board size="7x7" level="12"></suido-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 board under its standard tag or a host's own tag, preserving an existing definition. |
SUIDO_EMBED_OPTION_KEYS | constant | The mounted-board options, checked for completeness by TypeScript and the builder. |
SuidoBoard | class | Native custom element with reflected setup and presentation. |
SuidoElementOptions | type | Host callbacks; the same actions also emit native events. |