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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gifted-charts-core",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "description": "Mathematical and logical utilities used by react-gifted-charts and react-native-gifted-charts",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -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 * (semiCircle ? 1 : 2) : _2;
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;
@@ -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 * (semiCircle ? 1 : 2)
120
+ endAngle = props.endAngle ?? startAngle + Math.PI * 2
121
121
  } = props
122
122
 
123
123
  const canvasWidth = radius * 2