@@ -31,14 +31,13 @@ import {
31
31
VictorySliceLabelPlacementType ,
32
32
VictorySliceLabelPositionType ,
33
33
} from "./slice" ;
34
- import { CurvedLabel } from "./curved-label" ;
34
+ import { CurvedLabel , CurvedLabelProps } from "./curved-label" ;
35
35
36
36
export interface VictoryPieProps
37
37
extends Omit < VictoryCommonProps , "polar" > ,
38
38
VictoryDatableProps ,
39
39
VictoryLabelableProps ,
40
40
VictoryMultiLabelableProps {
41
- curvedLabelComponent ?: React . ReactElement ;
42
41
colorScale ?: ColorScalePropType ;
43
42
cornerRadius ?: SliceNumberOrCallback < SliceProps , "cornerRadius" > ;
44
43
endAngle ?: number ;
@@ -217,7 +216,7 @@ class VictoryPieBase extends React.Component<VictoryPieProps> {
217
216
// have label value(tspan) as child component.
218
217
if ( labelPlacement === "curved" ) {
219
218
const labelPathComponents = this . dataKeys . map ( ( _dataKey , index ) => {
220
- const curvedLabelProps = this . getComponentProps (
219
+ const curvedLabelProps : CurvedLabelProps = this . getComponentProps (
221
220
curvedLabelComponent ,
222
221
"curvedLabels" ,
223
222
index ,
@@ -236,7 +235,7 @@ class VictoryPieBase extends React.Component<VictoryPieProps> {
236
235
237
236
const curvedLabelComponents = this . dataKeys
238
237
. map ( ( _dataKey , index ) => {
239
- const curvedLabelProps = this . getComponentProps (
238
+ const curvedLabelProps : CurvedLabelProps = this . getComponentProps (
240
239
curvedLabelComponent ,
241
240
"curvedLabels" ,
242
241
index ,
0 commit comments