リファレンス
国のカードを登録する
import { … } from "@johnmorrisdotca/kuni/element/define";
最小化と gzip 圧縮をしたサイズは 290.3 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Register the country card. Safe to import without a browser.
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
defineCard | 関数 | Register <kuni-card> or a host's own tag, preserving an existing definition. |
KUNI_CARD_FIELDS | 定数 | The fields a card can show, in any order; facts retain their recorded year. |
KUNI_CARD_OPTION_KEYS | 定数 | Host option keys, kept complete by TypeScript and checked by the builder. |
KuniCard | クラス | <kuni-card code="JP" fields="name flag map capital population">, a country or ISO subdivision without stored state. |
KuniCardOptions | 型 | Host SVG loaders and native map appearance; attributes override drawing defaults. |
readCardColors | 関数 | Read the card's bounded code:hex-colour attribute without accepting CSS or markup fragments. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。