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 · GB-NIR--UNION-FLAG flag SVG

svgconstant

The Union Flag: one of the flags of Northern Ireland (北アイルランド), GB-NIR, in real use, as an SVG string: viewBox 50 by 30 (5:3), 452 B. The same picture as GB's. From Wikimedia Commons, "Flag of the United Kingdom (3-5).svg" (public domain). flag("GB-NIR", { variant: "union-flag" }) loads it, and variantsOf("GB-NIR") says its status, dates and why it is offered.

Import it

import { svg } from "@johnmorrisdotca/hata/flags/gb-nir--union-flag";

Definition

const svg: string = shared

Examples

Example 1

import flag from "@johnmorrisdotca/hata/flags/gb-nir--union-flag";

const host=document.createElement("div");
host.innerHTML = flag;
console.log(host.querySelector("svg")?.getAttribute("viewBox"));

Example 2

import { svg } from "@johnmorrisdotca/hata/flags/gb-nir--union-flag";
console.log(svg.startsWith("<svg"),svg.length);
true 452

What it prints (run when this page was built)

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