svgconstant
The flag of Iceland (アイスランド), IS, drawn again by hand at 4:3 by flag-icons 7.5.0 (MIT), as an SVG string: viewBox 640 by 480, 462 B.
The drawing flag("IS", { 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/is.4x3";
Definition
const svg: string = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 480\"><defs><clipPath id=\"hata-is-4x3-a\"><path fill-opacity=\".7\" d=\"M0 0h640v480H0z\"/></clipPath></defs><g fill-rule=\"evenodd\" stroke-width=\"0\" clip-path=\"url(#hata-is-4x3-a)\"><path fill=\"#003897\" d=\"M0 0h666.7v480H0z\"/><path fill=\"#fff\" d=\"M0 186.7h186.7V0h106.6v186.7h373.4v106.6H293.3V480H186.7V293.3H0z\"/><path fill=\"#d72828\" d=\"M0 213.3h213.3V0h53.4v213.3h400v53.4h-400V480h-53.4V266.7H0z\"/></g></svg>"
Examples
Example 1
import square from "@johnmorrisdotca/hata/flags/is.4x3";
const host=document.createElement("div");
host.innerHTML = square;
console.log(host.querySelector("svg")?.getAttribute("viewBox"));Example 2
import { svg } from "@johnmorrisdotca/hata/flags/is.4x3";
console.log(svg.startsWith("<svg"),svg.length);true 462What it prints (run when this page was built)