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 · BB.1X1 flag SVG

svgconstant

The flag of Barbados (バルバドス), BB, drawn again by hand at 1:1 by flag-icons 7.5.0 (MIT), as an SVG string: viewBox 512 by 512, 554 B. The drawing flag("BB", { shape: "1:1" }) uses (and the round frame, in a circle), made for that shape by hand rather than cut from the flag. The /manifest entry's framings say how each frame was chosen.

Import it

import { svg } from "@johnmorrisdotca/hata/flags/bb.1x1";

Definition

const svg: string = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"#00267f\" d=\"M0-.2h512V512H0z\"/><path fill=\"#ffc726\" d=\"M170.7-.2h170.6V512H170.7z\"/><path id=\"hata-bb-1x1-a\" fill=\"#000001\" d=\"M256 173.3c-5.5 15.1-11.2 30.9-23.3 43a52 52 0 0 1 14.6-2.3v63.6l-18 2.7q-1-.1-.9-2.4a244 244 0 0 0-11.7-53.6c-.4-2.3-7.2-11.3-2-9.7.7 0 7.7 3 6.6 1.6a68 68 0 0 0-37.1-19.2c-1.2-.3-2 .3-.9 1.7 18 27.7 33.1 60.4 33 99.2 7 0 24-4.1 31-4.1v44.9h8.8l2-125.4z\"/><use width=\"100%\" height=\"100%\" href=\"#hata-bb-1x1-a\" transform=\"matrix(-1 0 0 1 512 0)\"/></svg>"

Examples

Example 1

import square from "@johnmorrisdotca/hata/flags/bb.1x1";

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

Example 2

import { svg } from "@johnmorrisdotca/hata/flags/bb.1x1";
console.log(svg.startsWith("<svg"),svg.length);
true 554

What it prints (run when this page was built)

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