LegendEntrytype
One line of a legend: what it is called, in the page's language, and its colour.
Import it
import type { LegendEntry } from "@johnmorrisdotca/chikyu-earth/catalogue";
Definition
interface LegendEntry {
key: string;
label: string;
colour: string;
}
Members
| Name | Type | Description |
|---|---|---|
key | string | |
label | string | |
colour | string |
Examples
import type { LegendEntry } from "@johnmorrisdotca/chikyu-earth/catalogue";
const entry: LegendEntry = { key: "leo", label: "Low orbit", colour: "#5dd6a2" };
console.log(entry.label);Low orbitWhat it prints (run when this page was built)