本文へ移動

Kazu数

検証済みの数独や論理パズルを作り、標準の規則とヒントを読み、盤を描いたり埋め込んだりできます。

「数」は数字を表す言葉です。 名前について(英語)

目次

リファレンス

パズル要素の登録

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

最小化と gzip 圧縮をしたサイズは 27.7 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

Defines the <kazu-board> element on the page. Import it for its effect:

<script type="module" src="https://cdn.jsdelivr.net/npm/@johnmorrisdotca/kazu@1/dist/element-define.js"></script>
<kazu-board kind="number-place" size="9" level="medium"></kazu-board>

A tag already defined is left as it is, and on a server, where there is no page, nothing happens.

エクスポート

名前種類概要
defineBoard関数Register a standard or custom board tag without replacing a definition.
KAZU_EMBED_OPTION_KEYS定数Every mounted-board option, kept complete by TypeScript and checked by the builder.
KazuBoardクラスNative custom element with reflected setup and presentation.
KazuElementOptions型Host callbacks; the same actions also emit native events.

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

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