defaultconstant
The flag of North Korea (北朝鮮), KP, drawn again by hand at 4:3 by flag-icons 7.5.0 (MIT), as an SVG string: viewBox 640 by 480, 721 B.
The drawing flag("KP", { 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 value from "@johnmorrisdotca/hata/flags/kp.4x3";
Definition
const svg: string = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 640 480\"><defs><clipPath id=\"hata-kp-4x3-a\"><path fill-opacity=\".7\" d=\"M5 .1h682.6V512H5.1z\"/></clipPath></defs><g fill-rule=\"evenodd\" clip-path=\"url(#hata-kp-4x3-a)\" transform=\"translate(-4.8 -.1)scale(.93768)\"><path fill=\"#fff\" stroke=\"#000\" d=\"M776 511.5H-76V.5h852z\"/><path fill=\"#3e5698\" d=\"M776 419H-76v92.5h852z\"/><path fill=\"#c60000\" d=\"M776 397.6H-76V114.4h852z\"/><path fill=\"#3e5698\" d=\"M776 .6H-76V93h852z\"/><path fill=\"#fff\" d=\"M328.5 256c0 63.5-53 115-118.6 115S91.3 319.5 91.3 256s53-114.8 118.6-114.8 118.6 51.4 118.6 114.9z\"/><path fill=\"#c40000\" d=\"m175.8 270.6-57-40.7 71-.2 22.7-66.4 21.1 66.1 71-.4-57.9 41.2 21.3 66.1-57-40.7-58 41.3z\"/></g></svg>"
Examples
Example 1
import square from "@johnmorrisdotca/hata/flags/kp.4x3";
const host=document.createElement("div");
host.innerHTML = square;
console.log(host.querySelector("svg")?.getAttribute("viewBox"));Example 2
import { svg } from "@johnmorrisdotca/hata/flags/kp.4x3";
console.log(svg.startsWith("<svg"),svg.length);true 721What it prints (run when this page was built)