Skip to content

Commit 4364df5

Browse files
authored
fix(venn): fix venn color option type compatibility (#3015)
1 parent be7caa9 commit 4364df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/venn/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface VennOptions extends Options {
1515

1616
// 韦恩图 样式
1717
/** color */
18-
readonly color?: string | string[] | ((datum: Datum, defaultColor: string) => string);
18+
readonly color?: string | string[] | ((datum: Datum, defaultColor?: string) => string);
1919
/** 并集合的颜色混合方式, 可选项: 参考 https://gka.github.io/chroma.js/#chroma-blend, 默认: multiply */
2020
readonly blendMode?: string;
2121
/** point 样式 */

0 commit comments

Comments
 (0)