リファレンス
盤の登録
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. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。