本文へ移動

Hata旗

国や地域の旗を読み込み、対応する表示の形を選び、絵ごとの資料・作者・ライセンスを保てます。

「旗(はた)」は、旗を表す日本語です。 名前について(英語)

目次

リファレンス

中世の旗

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

最小化と gzip 圧縮をしたサイズは 164.2 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
isMedievalId関数True for an id of this set, written exactly as this package writes it.
MEDIEVAL_IDS定数Every medieval flag id of the set, in the order of the table.
medievalAbout関数What the banner is, in a sentence, in English or Japanese: whose it was, what it shows and what its source dates.
medievalAspect関数A banner's width over its height, from its viewBox: 1.5 for the arms of Aragon's 3 to 2.
medievalFlag関数A medieval banner as an SVG string: it has a viewBox and no width or height.
medievalId関数The id of a banner from an id written loosely: either case, with spaces around it, with or without med:.
MedievalId型The id of a medieval banner, written exactly as this package writes it: med: and a lower-case slug ("med:red-cross").
medievalIn関数The ids of one kind of banner: order (a military or religious order's), cross (a cross on a field), kingdom (a kingdom's), empire (an empire's or a dynasty's) or city (a city's or a republic's).
medievalInfo関数Everything the package knows of a banner, a copy: its group (order, cross, kingdom, empire or city), both names, what it is, its dates (where its source gives them), its status (reconstruction for every banner here), the note that says what the source documents and what is this package's, and the page it was read from.
MedievalInfo型What the package knows of one medieval banner: its id, group, both names, what it is, its status, the note on what the source documents and what is this package's, its dates, its source and its aspect ratio.
medievalName関数A banner's name, in English or Japanese: whose it was and what it is.

ソースを見るGitHub で編集@johnmorrisdotca/hata 1.31.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。