defaultconstant
The flag of Burkina Faso (ブルキナファソ), BF, drawn again by hand at 1:1 by flag-icons 7.5.0 (MIT), as an SVG string: viewBox 512 by 512, 339 B.
The drawing flag("BF", { 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 value from "@johnmorrisdotca/hata/flags/bf.1x1";
Definition
const svg: string = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><g fill-rule=\"evenodd\"><path fill=\"#de0000\" d=\"M512 511.6H.5V0H512z\"/><path fill=\"#35a100\" d=\"M511.8 512H0V256.2h511.7z\"/></g><path fill=\"#fff300\" fill-rule=\"evenodd\" d=\"m389 223.8-82.9 56.5 31.7 91.6-82.7-56.7-82.8 56.7 31.7-91.6-82.8-56.6 102.3.2 31.6-91.7 31.5 91.6\"/></svg>"
Examples
Example 1
import square from "@johnmorrisdotca/hata/flags/bf.1x1";
const host=document.createElement("div");
host.innerHTML = square;
console.log(host.querySelector("svg")?.getAttribute("viewBox"));Example 2
import { svg } from "@johnmorrisdotca/hata/flags/bf.1x1";
console.log(svg.startsWith("<svg"),svg.length);true 339What it prints (run when this page was built)