From 2e8fb70fd74bb700fe8647df8b5054715a35073b Mon Sep 17 00:00:00 2001 From: Andrew Michael McNutt Date: Tue, 27 Feb 2024 14:56:26 -0800 Subject: [PATCH] lab not percentage --- src/lib/Color.ts | 2 +- src/scatterplot/ColorScatterPlot.svelte | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/Color.ts b/src/lib/Color.ts index a262c9cc..e357cc95 100644 --- a/src/lib/Color.ts +++ b/src/lib/Color.ts @@ -233,7 +233,7 @@ class CIELAB extends Color { } toPrettyString(): string { const [L, a, b] = this.prettyChannels(); - return `lab(${L}% ${a} ${b})`; + return `lab(${L} ${a} ${b})`; } } class HSV extends Color { diff --git a/src/scatterplot/ColorScatterPlot.svelte b/src/scatterplot/ColorScatterPlot.svelte index a886a81c..c520c731 100644 --- a/src/scatterplot/ColorScatterPlot.svelte +++ b/src/scatterplot/ColorScatterPlot.svelte @@ -477,7 +477,6 @@ /> {/if} - {#if typeof hoveredPoint !== "boolean"}