Reference · The realistic Earth's pure parts
CountryNamesStyletype
The look of the country names, all optional: the text's font, weight and colour, the outline round it, and the smallest and largest size in pixels.
Import it
import type { CountryNamesStyle } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
interface CountryNamesStyle {
font?: string;
weight?: number | string;
colour?: string;
halo?: string;
haloWidth?: number;
smallest?: number;
largest?: number;
}
Members
| Name | Type | Description |
|---|---|---|
font (optional) | string | undefined | |
weight (optional) | string | number | undefined | |
colour (optional) | string | undefined | |
halo (optional) | string | undefined | |
haloWidth (optional) | number | undefined | |
smallest (optional) | number | undefined | |
largest (optional) | number | undefined |
Examples
import type { CountryNamesStyle } from "@johnmorrisdotca/chikyu-earth/realistic";
const look: CountryNamesStyle = { font: "Georgia, serif", colour: "#fff3d6", halo: "#1a1000", smallest: 11, largest: 18 };
console.log(Object.keys(look).join(" "));font colour halo smallest largestWhat it prints (run when this page was built)