Skip to content

Commit

Permalink
fix(venn): fix venn color option type compatibility (#3015)
Browse files Browse the repository at this point in the history
  • Loading branch information
FOWind committed Dec 9, 2021
1 parent be7caa9 commit 4364df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plots/venn/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 样式 */
Expand Down

0 comments on commit 4364df5

Please sign in to comment.