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

Medieval banners

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

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

Exports

NameKindWhat it is
isMedievalIdfunctionTrue for an id of this set, written exactly as this package writes it.
MEDIEVAL_IDSconstantEvery medieval flag id of the set, in the order of the table.
medievalAboutfunctionWhat the banner is, in a sentence, in English or Japanese: whose it was, what it shows and what its source dates.
medievalAspectfunctionA banner's width over its height, from its viewBox: 1.5 for the arms of Aragon's 3 to 2.
medievalFlagfunctionA medieval banner as an SVG string: it has a viewBox and no width or height.
medievalIdfunctionThe id of a banner from an id written loosely: either case, with spaces around it, with or without med:.
MedievalIdtypeThe id of a medieval banner, written exactly as this package writes it: med: and a lower-case slug ("med:red-cross").
medievalInfunctionThe ids of one kind of banner: order (a military or religious order's), cross (a cross on a field), kingdom (a kingdom's), empire (an empire's or a dynasty's) or city (a city's or a republic's).
medievalInfofunctionEverything the package knows of a banner, a copy: its group (order, cross, kingdom, empire or city), both names, what it is, its dates (where its source gives them), its status (reconstruction for every banner here), the note that says what the source documents and what is this package's, and the page it was read from.
MedievalInfotypeWhat the package knows of one medieval banner: its id, group, both names, what it is, its status, the note on what the source documents and what is this package's, its dates, its source and its aspect ratio.
medievalNamefunctionA banner's name, in English or Japanese: whose it was and what it is.

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