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 · PM--LOCAL flag SVG

defaultconstant

The local flag of Saint-Pierre and Miquelon: one of the flags of St. Pierre & Miquelon (サンピエール島・ミクロン島), PM, in real use, as an SVG string: viewBox 1050 by 700 (3:2), 81.0 KB. From Wikimedia Commons, "Flag of Saint-Pierre and Miquelon.svg" (public domain). flag("PM", { variant: "local" }) loads it, and variantsOf("PM") says its status, dates and why it is offered.

Import it

import value from "@johnmorrisdotca/hata/flags/pm--local";

Definition

const svg: string

Examples

Example 1

import flag from "@johnmorrisdotca/hata/flags/pm--local";

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

Example 2

import { svg } from "@johnmorrisdotca/hata/flags/pm--local";
console.log(svg.startsWith("<svg"),svg.length);
true 82900

What it prints (run when this page was built)

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