リファレンス
国際機関の旗
import { … } from "@johnmorrisdotca/hata/organisations";
最小化と gzip 圧縮をしたサイズは 21.7 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
isOrganisationId | 関数 | True for one of the ids with a flag here, written exactly as this package writes it: "org:eu". |
loadOrganisationFlag | 関数 | Any organisation's flag as an SVG string, loaded when it is asked for: each drawing is a module of its own (@johnmorrisdotca/hata/organisations/<slug>), so a page carries the drawings it asks for and no others. |
ORGANISATION_IDS | 定数 | Every organisation id with a flag, in the order of the table. |
organisationAspect | 関数 | An organisation's flag's width over its height, from its viewBox: 1.5 for the European Union's 3:2. |
organisationFlag | 関数 | An organisation's flag as an SVG string, the same kind of string a country's module holds: it has a viewBox and no width or height. |
organisationId | 関数 | The id of an organisation's flag, from an id written loosely: either case, with spaces around it. |
OrganisationId | 型 | The id of an organisation's flag, written exactly as this package writes it: org: and a lower-case slug. |
organisationName | 関数 | An organisation's name, in English or Japanese: what a screen reader should say for the flag, or a caption. |
organisationSource | 関数 | Where a drawing taken from Wikimedia Commons comes from: its file, its page, its licence as Commons states it (public domain or CC0, never share-alike) and its author as Commons gives it. |
organisationTerms | 関数 | Where the terms for an organisation's flag were read: the page, the day, and what they say. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。