organisationAspect関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
An organisation's flag's width over its height, from its viewBox: 1.5 for the European Union's 3:2. For keeping a box before the picture is drawn.
インポート
import { organisationAspect } from "@johnmorrisdotca/hata/organisations";
定義
function organisationAspect(id: string): number | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
id | string | An organisation's id, in any case, with or without |
戻り値
number | null
The aspect ratio, or null when the id has no flag here.
例
import { organisationAspect } from "@johnmorrisdotca/hata/organisations";
console.log(organisationAspect("org:eu")); // 1.5
console.log(organisationAspect("org:xx")); // null1.5
null出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。