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

Samurai battle banners

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

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

Exports

NameKindWhat it is
isSamuraiIdfunctionTrue for an id of this set, written exactly as this package writes it.
SAMURAI_IDSconstantEvery banner id of the set, in the order of the table.
samuraiAboutfunctionWhat the banner is, in a sentence, in English or Japanese: the design and whose it was.
samuraiAspectfunctionA banner's width over its height, from its viewBox: 0.25 for a nobori.
samuraiFlagfunctionA 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.
samuraiIdfunctionThe id of a banner from an id written loosely: either case, with spaces around it, with or without samurai:.
SamuraiIdtypeThe id of a banner, written exactly as this package writes it: samurai: and a lower-case slug.
samuraiInfunctionThe ids of one kind of banner: nobori (the tall narrow banners), hata (flags) or uma (the signs carried beside a commander).
samuraiInfofunctionEverything 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.
SamuraiInfotypeWhat 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.
samuraiNamefunctionA 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.