svgconstant
The flag of Puerto Rico (プエルトリコ), PR, drawn again by hand at 4:3 by flag-icons 7.5.0 (MIT), as an SVG string: viewBox 640 by 480, 573 B.
The drawing flag("PR", { 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/pr.4x3";
Definition
const svg: string = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 480\"><defs><clipPath id=\"hata-pr-4x3-a\"><path fill-opacity=\".7\" d=\"M-37.3 0h682.7v512H-37.3z\"/></clipPath></defs><g fill-rule=\"evenodd\" clip-path=\"url(#hata-pr-4x3-a)\" transform=\"translate(35)scale(.9375)\"><path fill=\"#ed0000\" d=\"M-37.3 0h768v512h-768z\"/><path fill=\"#fff\" d=\"M-37.3 102.4h768v102.4h-768zm0 204.8h768v102.4h-768z\"/><path fill=\"#0050f0\" d=\"m-37.3 0 440.7 255.7L-37.3 511z\"/><path fill=\"#fff\" d=\"M156.4 325.5 109 290l-47.2 35.8 17.6-58.1-47.2-36 58.3-.4 18.1-58 18.5 57.8 58.3.1-46.9 36.3z\"/></g></svg>"
Examples
Example 1
import square from "@johnmorrisdotca/hata/flags/pr.4x3";
const host=document.createElement("div");
host.innerHTML = square;
console.log(host.querySelector("svg")?.getAttribute("viewBox"));Example 2
import { svg } from "@johnmorrisdotca/hata/flags/pr.4x3";
console.log(svg.startsWith("<svg"),svg.length);true 573What it prints (run when this page was built)