svgconstant
The flag of Mauritania (モーリタニア), MR, drawn again by hand at 4:3 by flag-icons 7.5.0 (MIT), as an SVG string: viewBox 640 by 480, 416 B.
The drawing flag("MR", { shape: "4:3" }) uses, 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 { svg } from "@johnmorrisdotca/hata/flags/mr.4x3";
Definition
const svg: string = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 480\"><path fill=\"#cd2a3e\" d=\"M0 0h640v480H0z\"/><path fill=\"#006233\" d=\"M0 72h640v336H0z\"/><path fill=\"#ffc400\" d=\"M470 154.6a150 150 0 0 1-300 0 155 155 0 0 0-5 39.2 155 155 0 1 0 310 0 154 154 0 0 0-5-39.2\" class=\"hata-mr-4x3-mr-st1\"/><path fill=\"#ffc400\" d=\"m320 93.8-13.5 41.5H263l35.3 25.6-13.5 41.4 35.3-25.6 35.3 25.6-13.5-41.4 35.3-25.6h-43.6z\"/></svg>"
Examples
Example 1
import square from "@johnmorrisdotca/hata/flags/mr.4x3";
const host=document.createElement("div");
host.innerHTML = square;
console.log(host.querySelector("svg")?.getAttribute("viewBox"));Example 2
import { svg } from "@johnmorrisdotca/hata/flags/mr.4x3";
console.log(svg.startsWith("<svg"),svg.length);true 416What it prints (run when this page was built)