Reference · The realistic Earth's pure parts
CityNamesStyletype
The look of the city names, all optional: the text's font, size (pixels), weight and colour, the outline round it, and the dot's colour and radius (pixels).
Import it
import type { CityNamesStyle } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
interface CityNamesStyle {
font?: string;
size?: number;
weight?: number | string;
colour?: string;
halo?: string;
haloWidth?: number;
dot?: string;
dotSize?: number;
}
Members
| Name | Type | Description |
|---|---|---|
font (optional) | string | undefined | |
size (optional) | number | undefined | |
weight (optional) | string | number | undefined | |
colour (optional) | string | undefined | |
halo (optional) | string | undefined | |
haloWidth (optional) | number | undefined | |
dot (optional) | string | undefined | |
dotSize (optional) | number | undefined |
Examples
import type { CityNamesStyle } from "@johnmorrisdotca/chikyu-earth/realistic";
const look: CityNamesStyle = { font: "Georgia, serif", size: 13, colour: "#ffe9b0", halo: "#201400", dot: "#ffd166", dotSize: 3 };
console.log(Object.keys(look).join(" "));font size colour halo dot dotSizeWhat it prints (run when this page was built)