CountryOptionstype
What a "my country" sheet is drawn for: the room, the language and the type, and the capital.
Import it
import type { CountryOptions } from "@johnmorrisdotca/chikyu-earth/sheets";
Definition
interface CountryOptions extends SheetOptions {
capital?: Capital;
}
Members
| Name | Type | Description |
|---|---|---|
capital (optional) | Capital | undefined | The capital, to put a star on it and say its name; without it the sheet asks the child to find it. |
widthMm | number | |
heightMm | number | |
lang (optional) | Lang | undefined | |
type (optional) | TypeName | undefined |
|
Examples
import { countrySheetSvg, type CountryOptions } from "@johnmorrisdotca/chikyu-earth/sheets";
const options: CountryOptions = { widthMm: 184.6, heightMm: 170, capital: { name: "Paris", lon: 2.35, lat: 48.86 } };
console.log(countrySheetSvg("FR", options)?.includes("Paris"));trueWhat it prints (run when this page was built)