svgconstant
The flag of North Macedonia (北マケドニア), MK, drawn again by hand at 1:1 by flag-icons 7.5.0 (MIT), as an SVG string: viewBox 512 by 512, 377 B.
The drawing flag("MK", { 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 { svg } from "@johnmorrisdotca/hata/flags/mk.1x1";
Definition
const svg: string = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"#d20000\" d=\"M0 0h512v512H0z\"/><path fill=\"#ffe600\" d=\"M0 0h86.8L256 246.9 425.2 0H512L0 512h86.8L256 265.1 425.2 512H512zm512 204.8v102.4L0 204.8v102.4zM204.8 0 256 219.4 307.2 0zm0 512L256 292.6 307.2 512z\"/><circle cx=\"256\" cy=\"256\" r=\"82.3\" fill=\"#ffe600\" stroke=\"#d20000\" stroke-width=\"18.3\"/></svg>"
Examples
Example 1
import square from "@johnmorrisdotca/hata/flags/mk.1x1";
const host=document.createElement("div");
host.innerHTML = square;
console.log(host.querySelector("svg")?.getAttribute("viewBox"));Example 2
import { svg } from "@johnmorrisdotca/hata/flags/mk.1x1";
console.log(svg.startsWith("<svg"),svg.length);true 377What it prints (run when this page was built)