Skip to content

@graphty/graphty-element / catalog / KNOWN_PALETTE_IDS

Variable: KNOWN_PALETTE_IDS ​

const KNOWN_PALETTE_IDS: readonly ["viridis", "ylorbr", "plasma", "inferno", "blues", "greens", "oranges", "okabe-ito", "tol-vibrant", "tol-muted", "pastel", "carbon", "purple-green", "blue-orange", "red-blue", "blue-highlight", "green-highlight", "orange-highlight"]

Defined in: graphty-element/src/catalog/types.ts:221

The built-in palettes: seven sequential ramps, five categorical sets, three diverging ramps and three highlight pairs, in the order PALETTE_DESCRIPTORS lists them.

All eighteen are here because this list is what autocomplete offers. Four of them used to be, so a consumer typing a palette name was shown a quarter of the element's own palettes and had to read the catalogue table to find the rest.