Reference · The globe as an SVG string
Styletype
The lines and fills of one look: colours and widths only, never the geometry.
Import it
import type { Style } from "@johnmorrisdotca/chikyu-earth";
Definition
interface Style {
line: string;
ocean: string;
land: string;
outline: number;
horizon: number;
graticule: number;
}
Members
| Name | Type | Description |
|---|---|---|
line | string | The colour of the outlines and the rim. |
ocean | string | The disc of ocean. |
land | string | The fill under a country's outline. |
outline | number | Country outline width, in SVG units. |
horizon | number | Rim width, in SVG units. |
graticule | number | Graticule width, in SVG units. |
Examples
import { STYLES, type Style } from "@johnmorrisdotca/chikyu-earth";
const thick: Style = STYLES.thick;
console.log(thick.outline, thick.line);1.2 #b4c2d4What it prints (run when this page was built)