From a276da65118bfeeb2330a5fc5d9fafeba951b2f7 Mon Sep 17 00:00:00 2001 From: Adrian Mroz Date: Thu, 24 Nov 2022 19:45:01 +0100 Subject: [PATCH] formatHex does not exist on our version of d3. I dunno why types say that it should exist. --- src/common/models/colors/colors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/models/colors/colors.ts b/src/common/models/colors/colors.ts index dc61621a1..033dcf9d2 100644 --- a/src/common/models/colors/colors.ts +++ b/src/common/models/colors/colors.ts @@ -43,7 +43,7 @@ export interface VisualizationColors { } export function lightMain(colors: VisualizationColors): string { - return hsl(colors.main).brighter(0.3).formatHex(); + return hsl(colors.main).brighter(1.3).toString(); } export function alphaMain(colors: VisualizationColors): string {