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

Native flag element

import { … } from "@johnmorrisdotca/hata/element";

3941.6 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
defineFlagfunctionRegister <hata-flag>, once.
FLAG_ELEMENT_ATTRIBUTESconstantThe attributes <hata-flag> reads.
FLAG_ELEMENT_NAMEconstantThe name the element is registered under.
FlagElementEventDetailtypeWhat hata-load and hata-error carry in detail: the code as asked, and for an error why nothing was drawn.
HataFlagElementtypeWhat <hata-flag> adds to an ordinary element.

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