defaultconstant
The flag of Mato Grosso (マットグロッソ州), BR-MT, as an SVG string: viewBox 2000 by 1400 (10:7), 666 B. From Wikimedia Commons, "Bandeira de Mato Grosso.svg" (public domain); the /manifest entry gives its author, licence and why it was chosen. It has a viewBox and no width or height, so it fills the box it is put in at its own aspect ratio.
Import it
import value from "@johnmorrisdotca/hata/flags/br-mt";
Definition
const svg: string = "<svg data-hata=\"br-mt\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 2000 1400\"><rect width=\"100%\" height=\"100%\" fill=\"#28166f\"/><path fill=\"#fff\" d=\"m170 700 830 530 830-530-830-530z\"/><circle cx=\"1000\" cy=\"700\" r=\"350\" fill=\"#00923f\"/><g transform=\"matrix(350 0 0 350 1000 700)\"><g id=\"hata-br-mt-b\"><path id=\"hata-br-mt-a\" fill=\"#f8c300\" d=\"M0 0v1h.5z\" transform=\"rotate(18 3.15687576 -.5)\"/><use href=\"#hata-br-mt-a\" transform=\"scale(-1 1)\"/></g><use href=\"#hata-br-mt-b\" transform=\"rotate(72)\"/><use href=\"#hata-br-mt-b\" transform=\"rotate(-72)\"/><use href=\"#hata-br-mt-b\" transform=\"rotate(144)\"/><use href=\"#hata-br-mt-b\" transform=\"rotate(-144)\"/></g></svg>"
Examples
Example 1
import flag from "@johnmorrisdotca/hata/flags/br-mt";
const host=document.createElement("div");
host.innerHTML = flag; // or toDataUri(flag) from "@johnmorrisdotca/hata" for an <img src>
console.log(host.querySelector("svg")?.getAttribute("viewBox"));Example 2
import { svg } from "@johnmorrisdotca/hata/flags/br-mt";
console.log(svg.startsWith("<svg"),svg.length);true 666What it prints (run when this page was built)