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 · Ship signal flags (International Code of Signals)

SignalInfotype

What the package knows of one flag of the Code: its id, group, both names, meaning, status, note, source and aspect ratio.

Import it

import type { SignalInfo } from "@johnmorrisdotca/hata/signals";

Definition

type SignalInfo = DrawnInfo;

Members

NameTypeDescription
idstring
groupstring
name{ en: string; ja: string; }
about{ en: string; ja: string; }
statusDrawnStatus
dates{ from: string | null; until: string | null; } | null
note{ en: string; ja: string; }
sourceDrawnSource
aspectnumber
restrictedDrawnRestriction | null

Why the drawing is withheld by default, or null.

Examples

import { signalInfo, type SignalInfo } from "@johnmorrisdotca/hata/signals";

const info: SignalInfo | null = signalInfo("ics:a");
console.log(info?.name.en);
A: Alfa

What it prints (run when this page was built)

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