Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

Reference

Military flags (naval ensigns, jacks and war flags)

import { … } from "@johnmorrisdotca/hata/military";

424.7 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
isMilitaryIdfunctionTrue for an id of this set, written exactly as this package writes it.
MILITARY_IDSconstantEvery military flag id of the set, in the order of the table, without the restricted ones (MILITARY_RESTRICTED_IDS).
MILITARY_RESTRICTED_IDSconstantThe 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.
militaryAboutfunctionWhat the flag is, in a sentence, in English or Japanese: whose it is, what it shows and when it was fixed.
militaryAspectfunctionA flag's width over its height, from its viewBox: 1.5 for the Self-Defense Force ensign's 3 to 2.
militaryFlagfunctionA military flag as an SVG string: it has a viewBox and no width or height.
militaryIdfunctionThe id of a flag from an id written loosely: either case, with spaces around it, with or without mil:.
MilitaryIdtypeThe 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").
militaryInfunctionThe ids of one kind of flag: ensign (the flag a warship flies at the stern) or jack (the flag at the bow).
militaryInfofunctionEverything 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.
MilitaryInfotypeWhat 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.
militaryNamefunctionA flag's name, in English or Japanese: the country and what the flag is.
MilitaryRestrictiontypeWhy a flag is withheld by default, and who it is for, in both languages: reason, reasonJa, allowedFor and allowedForJa.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.31.0.