本文へ移動

Hata旗

国や地域の旗を読み込み、対応する表示の形を選び、絵ごとの資料・作者・ライセンスを保てます。

「旗(はた)」は、旗を表す日本語です。 名前について(英語)

目次

リファレンス

軍の旗(軍艦旗・艦首旗・軍旗)

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.

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

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