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

Troubleshooting & FAQ

Troubleshooting and FAQ

Interpret missing drawings, names and host loading errors.

Understand absence

frame and aspectOf return null for unusable SVG input. flagCode, flagUrl, flagName, flagAspect, manifest and the asynchronous loaders can return null for unavailable results as their reference explains. variantsOf returns an empty list when there are no stored alternatives. leftOut explains only a known omission; null also includes an unknown code or one with a primary flag. An optional metadata field can be absent rather than an invented empty value.

Diagnose a host

Await a loader, choose a supported variant id and keep full region codes. Use the element only in a browser with the registration import. Check your bundler's dynamic chunks or self-hosted SVG base when an asset cannot load. A data URI and an image URL need different CSP allowances; follow the existing CSP-safe embed recipe rather than disabling CSP. If a framed flag loses a colour, compare whole/auto and read the recorded crop decision.

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