From 4364df569c411c248acad8911f91872d46bced2b Mon Sep 17 00:00:00 2001 From: FOWind Date: Fri, 10 Dec 2021 01:32:33 +0800 Subject: [PATCH] fix(venn): fix venn color option type compatibility (#3015) --- src/plots/venn/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plots/venn/types.ts b/src/plots/venn/types.ts index c937ac316f..ce3cd48542 100644 --- a/src/plots/venn/types.ts +++ b/src/plots/venn/types.ts @@ -15,7 +15,7 @@ export interface VennOptions extends Options { // 韦恩图 样式 /** color */ - readonly color?: string | string[] | ((datum: Datum, defaultColor: string) => string); + readonly color?: string | string[] | ((datum: Datum, defaultColor?: string) => string); /** 并集合的颜色混合方式, 可选项: 参考 https://gka.github.io/chroma.js/#chroma-blend, 默认: multiply */ readonly blendMode?: string; /** point 样式 */