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