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 · BUMM--UNION flag SVG

defaultconstant

The flag of 1948 to 1974: one of the flags of Burma (ビルマ), BUMM, in real use, as an SVG string: viewBox 900 by 500 (1.800:1), 965 B. From Wikimedia Commons, "Flag of Burma (1948–1974).svg" (public domain). flag("BUMM", { variant: "union" }) loads it, and variantsOf("BUMM") says its status, dates and why it is offered.

Import it

import value from "@johnmorrisdotca/hata/flags/bumm--union";

Definition

const svg: string = "<svg data-hata=\"bumm--union\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 900 500\"><path fill=\"#da2d1c\" d=\"M0 0h900v500H0z\"/><path fill=\"#2042a1\" d=\"M0 0h400v250H0z\"/><path fill=\"#fff\" d=\"m200 50 16.935 51.728 54.423.123-43.957 32.093 16.7 51.805-44.102-31.894-44.102 31.894 16.7-51.805-43.957-32.093 54.423-.123zm0 115.04 8.468 25.864 27.212.062-21.978 16.047 8.35 25.902L200 216.968l-22.051 15.947 8.35-25.902-21.978-16.047 27.212-.062zm-73.74-53.58 8.468 25.864 27.212.062-21.978 16.047 8.35 25.902-22.051-15.947-22.051 15.947 8.35-25.902-21.978-16.047 27.212-.062zm28.16-86.692 8.468 25.864 27.212.062-21.978 16.047 8.35 25.902-22.051-15.947-22.051 15.947 8.35-25.902-21.978-16.047 27.212-.062zm91.16 0 8.468 25.864 27.212.062-21.978 16.047 8.35 25.902-22.051-15.947-22.051 15.947 8.35-25.902-21.978-16.047 27.212-.062zm28.17 86.692 8.468 25.864 27.212.062-21.978 16.047 8.35 25.902-22.051-15.947-22.051 15.947 8.35-25.902-21.978-16.047 27.212-.062z\"/></svg>"

Examples

Example 1

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

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

Example 2

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

What it prints (run when this page was built)

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