リファレンス
軍の旗(軍艦旗・艦首旗・軍旗)
import { … } from "@johnmorrisdotca/hata/military";
最小化と gzip 圧縮をしたサイズは 424.7 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
isMilitaryId | 関数 | True for an id of this set, written exactly as this package writes it. |
MILITARY_IDS | 定数 | Every military flag id of the set, in the order of the table, without the restricted ones (MILITARY_RESTRICTED_IDS). |
MILITARY_RESTRICTED_IDS | 定数 | The ids of the flags shipped for history and education and never given by default: the Confederate battle flag of the Army of Northern Virginia and the Confederate States Navy's jack. |
militaryAbout | 関数 | What the flag is, in a sentence, in English or Japanese: whose it is, what it shows and when it was fixed. |
militaryAspect | 関数 | A flag's width over its height, from its viewBox: 1.5 for the Self-Defense Force ensign's 3 to 2. |
militaryFlag | 関数 | A military flag as an SVG string: it has a viewBox and no width or height. |
militaryId | 関数 | The id of a flag from an id written loosely: either case, with spaces around it, with or without mil:. |
MilitaryId | 型 | The id of a military flag, written exactly as this package writes it: mil:, the country's two letters and a lower-case slug ("mil:gb-white-ensign"). |
militaryIn | 関数 | The ids of one kind of flag: ensign (the flag a warship flies at the stern) or jack (the flag at the bow). |
militaryInfo | 関数 | Everything the package knows of a military flag, a copy: its group (ensign or jack), both names, what it is, its dates (from, and until where it ended), its status (documented where a source gives the construction, reconstruction where the sizes are this package's), the note that says which, and the page it was read from. |
MilitaryInfo | 型 | What the package knows of one military flag: its id, group, both names, what it is, its status, the note on what is the source's and what is this package's, its dates, its source and its aspect ratio. |
militaryName | 関数 | A flag's name, in English or Japanese: the country and what the flag is. |
MilitaryRestriction | 型 | Why a flag is withheld by default, and who it is for, in both languages: reason, reasonJa, allowedFor and allowedForJa. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。