ChizuPortOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How the marks are chosen and drawn: drawChizu's portOptions.
インポート
import type { ChizuPortOptions } from "@johnmorrisdotca/chizu";
定義
type ChizuPortOptions = {
tier?: 1 | 2 | 3;
kinds?: readonly ChizuPort["kind"][];
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
tier (省略可) | 1 | 2 | 3 | undefined | Draw the places of this tier and the tiers above it, at every zoom. Default: chosen from how much ground the window shows. |
kinds (省略可) | readonly ("airport" | "harbour")[] | undefined | Draw only these kinds. Default both. |
例
import type { ChizuPortOptions } from "@johnmorrisdotca/chizu";
const options: ChizuPortOptions = { tier: 1, kinds: ["airport"] };
console.log(options.tier);
// 11出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。