本文へ移動

Hata旗

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

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

目次

リファレンス · 旗の資料と表示の情報

RESTRICTED定数

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

Every flag in real use that the law restricts, each with the code of its place: Germany's national flag of 1935 to 1945. They are kept out of variantsOf, out of every record's variants and out of the lists and downloads built from them, and out of the CDN listing (/svg/), so that a picker, a quiz or a pack never offers one. A page that shows history asks for one by name. Frozen.

インポート

import { RESTRICTED } from "@johnmorrisdotca/hata/manifest";

定義

const RESTRICTED: readonly RestrictedVariant[] = deepFreeze(RESTRICTED_ROWS)

例

import { RESTRICTED } from "@johnmorrisdotca/hata/manifest";

console.log(RESTRICTED.map((one) => `${one.code} ${one.variant.id}`)); // ["DE swastika-1935"]
console.log(RESTRICTED[0]?.variant.restricted?.allowedFor);            // "education and history"
[ 'DE swastika-1935' ]
education and history

出力(このページを作ったときに実行した結果)

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

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