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 · Flag source and framing metadata

RoleNotetype

Why a flag is only one of the two roles, with the page that says so: why, a sentence or two, and the source page of sourceKind (see Variant).

Import it

import type { RoleNote } from "@johnmorrisdotca/hata/manifest";

Definition

interface RoleNote {
    why: string;
    source: string;
    sourceKind: "official" | "reference" | "encyclopedia";
}

Members

NameTypeDescription
whystring

What was the law and what was the practice, and the days that matter.

sourcestring

Where it is documented: a web page.

sourceKind"official" | "reference" | "encyclopedia"

What kind of page source is: official, reference or encyclopedia.

Examples

import { variantsOf, type RoleNote } from "@johnmorrisdotca/hata/manifest";

const note: RoleNote | null = variantsOf("CA").find((one) => one.id === "red-ensign-1957")?.roleNote ?? null;
console.log(note?.sourceKind); // "official"
console.log(note?.source);     // "https://www.canada.ca/en/canadian-heritage/services/flag-canada-history.html"
official
https://www.canada.ca/en/canadian-heritage/services/flag-canada-history.html

What it prints (run when this page was built)

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