From e71140352ef7ce36a0c1a099b585daebd3e53daa Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 11 Feb 2024 20:48:52 +0100 Subject: [PATCH] [core] Sort prop asc (#12033) --- packages/x-charts/src/PieChart/PieArc.tsx | 24 +++++++++---------- .../x-charts/src/PieChart/PieArcLabelPlot.tsx | 22 ++++++++--------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/packages/x-charts/src/PieChart/PieArc.tsx b/packages/x-charts/src/PieChart/PieArc.tsx index 7e22b1253d3dd..8b0717359e167 100644 --- a/packages/x-charts/src/PieChart/PieArc.tsx +++ b/packages/x-charts/src/PieChart/PieArc.tsx @@ -61,32 +61,32 @@ const PieArcRoot = styled(animated.path, { export type PieArcProps = Omit, 'id'> & PieArcOwnerState & { - startAngle: SpringValue; + cornerRadius: SpringValue; endAngle: SpringValue; + highlightScope?: Partial; innerRadius: SpringValue; + onClick?: (event: React.MouseEvent) => void; outerRadius: SpringValue; - cornerRadius: SpringValue; paddingAngle: SpringValue; - highlightScope?: Partial; - onClick?: (event: React.MouseEvent) => void; + startAngle: SpringValue; }; function PieArc(props: PieArcProps) { const { - id, - dataIndex, classes: innerClasses, color, + cornerRadius, + dataIndex, + endAngle, highlightScope, - onClick, + id, + innerRadius, isFaded, isHighlighted, - startAngle, - endAngle, - paddingAngle, - innerRadius, + onClick, outerRadius, - cornerRadius, + paddingAngle, + startAngle, ...other } = props; diff --git a/packages/x-charts/src/PieChart/PieArcLabelPlot.tsx b/packages/x-charts/src/PieChart/PieArcLabelPlot.tsx index aa12ba9db2c7e..eb1d9c627f5b4 100644 --- a/packages/x-charts/src/PieChart/PieArcLabelPlot.tsx +++ b/packages/x-charts/src/PieChart/PieArcLabelPlot.tsx @@ -83,21 +83,21 @@ export interface PieArcLabelPlotProps function PieArcLabelPlot(props: PieArcLabelPlotProps) { const { - slots, - slotProps, - innerRadius, - outerRadius, + arcLabel, + arcLabelMinAngle = 0, arcLabelRadius, cornerRadius = 0, - paddingAngle = 0, - id, - highlightScope, - highlighted, - faded = { additionalRadius: -5 }, data, - arcLabel, - arcLabelMinAngle = 0, + faded = { additionalRadius: -5 }, + highlighted, + highlightScope, + id, + innerRadius, + outerRadius, + paddingAngle = 0, skipAnimation, + slotProps, + slots, ...other } = props;