Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

Reference · YUCS--FRY flag SVG

svgconstant

The flag of the Federal Republic: one of the flags of Yugoslavia (ユーゴスラビア), YUCS, in real use, as an SVG string: viewBox 1200 by 600 (2:1), 206 B. The same picture as CSXX's. From Wikimedia Commons, "Flag of Serbia and Montenegro (1992–2006).svg" (public domain). flag("YUCS", { variant: "fry" }) loads it, and variantsOf("YUCS") says its status, dates and why it is offered.

Import it

import { svg } from "@johnmorrisdotca/hata/flags/yucs--fry";

Definition

const svg: string = shared

Examples

Example 1

import flag from "@johnmorrisdotca/hata/flags/yucs--fry";

const host=document.createElement("div");
host.innerHTML = flag;
console.log(host.querySelector("svg")?.getAttribute("viewBox"));

Example 2

import { svg } from "@johnmorrisdotca/hata/flags/yucs--fry";
console.log(svg.startsWith("<svg"),svg.length);
true 206

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.31.0.