Skip to the content

Suido水道

Turn pipes to connect the pumps and drains, through fixed levels or seeded puzzles.

Suido means water supply in Japanese. About the name

Contents

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

NameKindWhat it is
defineBoardfunctionRegister a board under its standard tag or a host's own tag, preserving an existing definition.
SUIDO_EMBED_OPTION_KEYSconstantThe mounted-board options, checked for completeness by TypeScript and the builder.
SuidoBoardclassNative custom element with reflected setup and presentation.
SuidoElementOptionstypeHost callbacks; the same actions also emit native events.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/suido 1.7.0.