gifted-charts-core 0.0.44 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/PieChart/index.js +1 -1
- package/src/PieChart/index.ts +1 -1
package/package.json
CHANGED
package/src/PieChart/index.js
CHANGED
|
@@ -64,7 +64,7 @@ export var usePieChart = function (props) {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}, [selectedIndex]);
|
|
67
|
-
var pro = props.pro, data = props.data, donut = props.donut, isThreeD = props.isThreeD, semiCircle = props.semiCircle, _0 = props.inwardExtraLengthForFocused, inwardExtraLengthForFocused = _0 === void 0 ? 0 : _0, _1 = props.isAnimated, isAnimated = _1 === void 0 ? false : _1, edgesRadius = props.edgesRadius, _2 = props.endAngle, endAngle = _2 === void 0 ? (_e = props.endAngle) !== null && _e !== void 0 ? _e : startAngle + Math.PI *
|
|
67
|
+
var pro = props.pro, data = props.data, donut = props.donut, isThreeD = props.isThreeD, semiCircle = props.semiCircle, _0 = props.inwardExtraLengthForFocused, inwardExtraLengthForFocused = _0 === void 0 ? 0 : _0, _1 = props.isAnimated, isAnimated = _1 === void 0 ? false : _1, edgesRadius = props.edgesRadius, _2 = props.endAngle, endAngle = _2 === void 0 ? (_e = props.endAngle) !== null && _e !== void 0 ? _e : startAngle + Math.PI * 2 : _2;
|
|
68
68
|
var canvasWidth = radius * 2;
|
|
69
69
|
var canvasHeight = isThreeD ? radius * 2.3 : radius * 2;
|
|
70
70
|
var strokeWidth = (_f = props.strokeWidth) !== null && _f !== void 0 ? _f : 0;
|
package/src/PieChart/index.ts
CHANGED
|
@@ -117,7 +117,7 @@ export const usePieChart = (props: IPieChartPropsType): IusePieChart => {
|
|
|
117
117
|
inwardExtraLengthForFocused = 0,
|
|
118
118
|
isAnimated = false,
|
|
119
119
|
edgesRadius,
|
|
120
|
-
endAngle = props.endAngle ?? startAngle + Math.PI *
|
|
120
|
+
endAngle = props.endAngle ?? startAngle + Math.PI * 2
|
|
121
121
|
} = props
|
|
122
122
|
|
|
123
123
|
const canvasWidth = radius * 2
|