リファレンス
武士の戦場の旗
import { … } from "@johnmorrisdotca/hata/samurai";
最小化と gzip 圧縮をしたサイズは 43.0 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
isSamuraiId | 関数 | True for an id of this set, written exactly as this package writes it. |
SAMURAI_IDS | 定数 | Every banner id of the set, in the order of the table. |
samuraiAbout | 関数 | What the banner is, in a sentence, in English or Japanese: the design and whose it was. |
samuraiAspect | 関数 | A banner's width over its height, from its viewBox: 0.25 for a nobori. |
samuraiFlag | 関数 | A banner as an SVG string: it has a viewBox and no width or height, a tall nobori, a flag or the sign of a commander. |
samuraiId | 関数 | The id of a banner from an id written loosely: either case, with spaces around it, with or without samurai:. |
SamuraiId | 型 | The id of a banner, written exactly as this package writes it: samurai: and a lower-case slug. |
samuraiIn | 関数 | The ids of one kind of banner: nobori (the tall narrow banners), hata (flags) or uma (the signs carried beside a commander). |
samuraiInfo | 関数 | Everything the package knows of a banner, a copy: its group (nobori, hata or uma), both names, what it is, its status (reconstruction for every banner here), the note that says which part follows the source and which is this package's, and the page the design was read from. |
SamuraiInfo | 型 | What the package knows of one banner: its id, group, both names, what it is, its status, the note on what is documented and what is reconstruction, its source and its aspect ratio. |
samuraiName | 関数 | A banner's name, in English or Japanese: whose it was and what it is. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。