@@ -50,7 +50,7 @@ interface SunburstItemStyleOption<TCbParams = never> extends ItemStyleOption<TCb
50
50
borderRadius ?: ( number | string ) [ ] | number | string
51
51
}
52
52
53
- interface SunburstLabelOption extends Omit < SeriesLabelOption , 'rotate' | 'position' > {
53
+ interface SunburstLabelOption extends Omit < SeriesLabelOption < SunburstDataParams > , 'rotate' | 'position' > {
54
54
rotate ?: 'radial' | 'tangential' | number
55
55
minAngle ?: number
56
56
silent ?: boolean
@@ -77,8 +77,8 @@ export interface SunburstStateOption<TCbParams = never> {
77
77
}
78
78
79
79
export interface SunburstSeriesNodeItemOption extends
80
- SunburstStateOption < CallbackDataParams > ,
81
- StatesOptionMixin < SunburstStateOption < CallbackDataParams > , SunburstStatesMixin > ,
80
+ SunburstStateOption < SunburstDataParams > ,
81
+ StatesOptionMixin < SunburstStateOption < SunburstDataParams > , SunburstStatesMixin > ,
82
82
OptionDataItemObject < OptionDataValue >
83
83
{
84
84
nodeClick ?: 'rootToNode' | 'link' | false
@@ -92,8 +92,9 @@ export interface SunburstSeriesNodeItemOption extends
92
92
93
93
cursor ?: string
94
94
}
95
- export interface SunburstSeriesLevelOption
96
- extends SunburstStateOption , StatesOptionMixin < SunburstStateOption , SunburstStatesMixin > {
95
+ export interface SunburstSeriesLevelOption extends
96
+ SunburstStateOption < SunburstDataParams > ,
97
+ StatesOptionMixin < SunburstStateOption < SunburstDataParams > , SunburstStatesMixin > {
97
98
98
99
radius ?: ( number | string ) [ ]
99
100
/**
@@ -118,7 +119,8 @@ interface SortParam {
118
119
getValue ( ) : number
119
120
}
120
121
export interface SunburstSeriesOption extends
121
- SeriesOption < SunburstStateOption , SunburstStatesMixin > , SunburstStateOption ,
122
+ SeriesOption < SunburstStateOption < SunburstDataParams > , SunburstStatesMixin > ,
123
+ SunburstStateOption < SunburstDataParams > ,
122
124
SunburstColorByMixin ,
123
125
CircleLayoutOptionMixin {
124
126
@@ -142,6 +144,8 @@ export interface SunburstSeriesOption extends
142
144
143
145
renderLabelForZeroData ?: boolean
144
146
147
+ data ?: SunburstSeriesNodeItemOption [ ]
148
+
145
149
levels ?: SunburstSeriesLevelOption [ ]
146
150
147
151
animationType ?: 'expansion' | 'scale'
0 commit comments