From a9d21b678964796cad79511b306a1f6a4f892e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Thu, 21 Dec 2023 12:44:48 +0100 Subject: [PATCH 1/2] type the observable10 color scheme --- src/scales.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scales.d.ts b/src/scales.d.ts index 7f7748b970..c9f8595001 100644 --- a/src/scales.d.ts +++ b/src/scales.d.ts @@ -25,6 +25,7 @@ export type Interpolate = /** The built-in color schemes, cased. */ type ColorSchemeCase = + | "Observable10" | "Accent" | "Category10" | "Dark2" From b695142c5c5905ec9cdff94d7ba4840fb9ffbf43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Thu, 21 Dec 2023 15:29:16 +0100 Subject: [PATCH 2/2] Update scales.d.ts order, fix comment --- src/scales.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scales.d.ts b/src/scales.d.ts index c9f8595001..80ba1d3ed2 100644 --- a/src/scales.d.ts +++ b/src/scales.d.ts @@ -25,10 +25,10 @@ export type Interpolate = /** The built-in color schemes, cased. */ type ColorSchemeCase = - | "Observable10" | "Accent" | "Category10" | "Dark2" + | "Observable10" | "Paired" | "Pastel1" | "Pastel2" @@ -83,13 +83,14 @@ type ColorSchemeCase = * - *Accent* - eight colors * - *Category10* - ten colors * - *Dark2* - eight colors + * - *Observable10* (default) - ten colors * - *Paired* - twelve paired colors * - *Pastel1* - nine colors * - *Pastel2* - eight colors * - *Set1* - nine colors * - *Set2* - eight colors * - *Set3* - twelve colors - * - *Tableau10* (default) - ten colors + * - *Tableau10* - ten colors * * For diverging data, one of: *