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 · ANHH flag SVG

svgconstant

The flag of Netherlands Antilles (オランダ領アンティル), ANHH, as an SVG string: viewBox 54 by 36 (3:2), 1015 B. From Wikimedia Commons, "Flag of the Netherlands Antilles (1986–2010).svg" (public domain); the /manifest entry gives its author, licence and why it was chosen. It has a viewBox and no width or height, so it fills the box it is put in at its own aspect ratio.

Import it

import { svg } from "@johnmorrisdotca/hata/flags/anhh";

Definition

const svg: string = "<svg data-hata=\"anhh\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"-27 -14 54 36\"><path fill=\"#fff\" d=\"M-27-14h54v36h-54z\"/><path fill=\"#dc171d\" d=\"M-6-14H6v36H-6z\"/><path fill=\"#012a87\" d=\"M-27-2h54v12h-54z\"/><g id=\"hata-anhh-c\" fill=\"#fff\" transform=\"scale(1.5)\"><g id=\"hata-anhh-b\"><path id=\"hata-anhh-a\" d=\"M0 0v1h.5z\" transform=\"matrix(.95105652 .30901699 -.30901699 .95105652 0 -1)\"/><use href=\"#hata-anhh-a\" transform=\"scale(-1 1)\"/></g><use href=\"#hata-anhh-b\" transform=\"matrix(.30901699 .95105652 -.95105652 .30901699 0 0)\"/><use href=\"#hata-anhh-b\" transform=\"matrix(.30901699 -.95105652 .95105652 .30901699 0 0)\"/><use href=\"#hata-anhh-b\" transform=\"matrix(-.80901699 .58778525 -.58778525 -.80901699 0 0)\"/><use href=\"#hata-anhh-b\" transform=\"matrix(-.80901699 -.58778525 .58778525 -.80901699 0 0)\"/></g><g id=\"hata-anhh-d\"><use href=\"#hata-anhh-c\" transform=\"translate(8 3.313708)\"/><use href=\"#hata-anhh-c\" transform=\"translate(3.313708 8)\"/></g><use href=\"#hata-anhh-d\" transform=\"scale(-1 1)\"/></svg>"

Examples

Example 1

import flag from "@johnmorrisdotca/hata/flags/anhh";

const host=document.createElement("div");
host.innerHTML = flag; // or toDataUri(flag) from "@johnmorrisdotca/hata" for an <img src>
console.log(host.querySelector("svg")?.getAttribute("viewBox"));

Example 2

import { svg } from "@johnmorrisdotca/hata/flags/anhh";
console.log(svg.startsWith("<svg"),svg.length);
true 1015

What it prints (run when this page was built)

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