Skip to content

Commit 36ff240

Browse files
committed
fix default values
1 parent 3c44cb0 commit 36ff240

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/victory-pie/src/curved-label.tsx

+8-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ import {
99
Helpers,
1010
VictoryLabelProps,
1111
VictoryLabel,
12-
TextPath,
12+
TSpan,
13+
Text,
14+
TextPath
1315
} from "victory-core";
1416

15-
interface CurvedLabelProps
17+
export interface CurvedLabelProps
1618
extends Omit<
1719
VictoryLabelProps,
1820
| "angle"
@@ -190,7 +192,10 @@ const renderLabel = (calculatedProps, tspanValues) => {
190192
};
191193

192194
const defaultProps = {
193-
...VictoryLabel.defaultProps,
195+
tspanComponent: <TSpan />,
196+
capHeight: 0.71, // Magic number from d3.
197+
lineHeight: 1,
198+
textComponent: <Text />,
194199
textPathComponent: <TextPath />,
195200
};
196201

0 commit comments

Comments
 (0)