本文へ移動

Tsunagi繋ぎ

同じ印の2つを別々の線で結び、盤を埋めます。収録された問題やシード付きの問題で遊べます。

「つなぎ」は、物をつなぐことを表す言葉です。 名前について(英語)

目次

リファレンス

盤の登録

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

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

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

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

<script type="module" src="https://cdn.jsdelivr.net/npm/@johnmorrisdotca/tsunagi@1/dist/element-define.js"></script>
<tsunagi-board size="6" level="3"></tsunagi-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, preserving a definition.
TSUNAGI_EMBED_OPTION_KEYS定数Every mounted-board option, kept complete by TypeScript and checked by the builder.
TsunagiBoardクラスNative custom element with reflected setup and presentation.
TsunagiElementOptions型Host callbacks and custom drawing palettes, which cannot be put in an attribute.

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

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