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 · PF--FRANCE flag SVG

svgconstant

France's flag: one of the flags of French Polynesia (仏領ポリネシア), PF, in real use, as an SVG string: viewBox 900 by 600 (3:2), 203 B. The same picture as FR's. From Wikimedia Commons, "Flag of France.svg" (public domain). flag("PF", { variant: "france" }) loads it, and variantsOf("PF") says its status, dates and why it is offered.

Import it

import { svg } from "@johnmorrisdotca/hata/flags/pf--france";

Definition

const svg: string = shared

Examples

Example 1

import flag from "@johnmorrisdotca/hata/flags/pf--france";

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

Example 2

import { svg } from "@johnmorrisdotca/hata/flags/pf--france";
console.log(svg.startsWith("<svg"),svg.length);
true 203

What it prints (run when this page was built)

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