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

RestrictedVarianttype

One restricted flag with the code of its place, as RESTRICTED in /manifest lists it.

Import it

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

Definition

interface RestrictedVariant {
    code: string;
    variant: Variant;
}

Members

NameTypeDescription
codestring

The place's code.

variantVariant

The flag: a Variant with restricted set.

Examples

import { RESTRICTED, type RestrictedVariant } from "@johnmorrisdotca/hata/manifest";

const one: RestrictedVariant | undefined = RESTRICTED[0];
console.log(one?.code, one?.variant.id); // "DE" "swastika-1935"
DE swastika-1935

What it prints (run when this page was built)

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