Reference · Framing, geometry and quiz tools
ChizuPortOptionstype
How the marks are chosen and drawn: drawChizu's portOptions.
Import it
import type { ChizuPortOptions } from "@johnmorrisdotca/chizu";
Definition
type ChizuPortOptions = {
tier?: 1 | 2 | 3;
kinds?: readonly ChizuPort["kind"][];
};
Members
| Name | Type | Description |
|---|---|---|
tier (optional) | 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 (optional) | readonly ("airport" | "harbour")[] | undefined | Draw only these kinds. Default both. |
Examples
import type { ChizuPortOptions } from "@johnmorrisdotca/chizu";
const options: ChizuPortOptions = { tier: 1, kinds: ["airport"] };
console.log(options.tier);
// 11What it prints (run when this page was built)