Skip to content

Commit

Permalink
lab not percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnuttandrew committed Feb 27, 2024
1 parent fad6c7d commit 2e8fb70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/Color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion src/scatterplot/ColorScatterPlot.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,6 @@
/>
{/if}

<!-- hover bull shit -->
{#if typeof hoveredPoint !== "boolean"}
<g transform={`translate(0, ${height - margin.bottom})`}>
<circle fill={hoveredPoint.toDisplay()} cx={6} cy={-7.5} r="6" />
Expand Down

0 comments on commit 2e8fb70

Please sign in to comment.