本文へ移動

Suido水道

管を回してポンプと排水口をつなぎます。収録された問題やシード付きの問題で遊べます。

「水道」は、水を届ける設備を表す言葉です。 名前について(英語)

目次

リファレンス

盤の登録

import { … } from "@johnmorrisdotca/suido/element/define";

最小化と gzip 圧縮をしたサイズは 451.6 kB(読み込むものをすべて含み、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.

エクスポート

名前種類概要
defineBoard関数Register a board under its standard tag or a host's own tag, preserving an existing definition.
SUIDO_EMBED_OPTION_KEYS定数The mounted-board options, checked for completeness by TypeScript and the builder.
SuidoBoardクラスNative custom element with reflected setup and presentation.
SuidoElementOptions型Host callbacks; the same actions also emit native events.

ソースを見るGitHub で編集@johnmorrisdotca/suido 1.7.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。