gifted-charts-core 0.0.20 → 0.0.21

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/index.ts CHANGED
@@ -38,7 +38,11 @@ export {
38
38
 
39
39
  export { usePieChart } from "./src/PieChart";
40
40
  export { getPieChartMainProps } from "./src/PieChart/main";
41
- export { PieChartPropsType, pieDataItem, PieChartMainProps } from "./src/PieChart/types";
41
+ export {
42
+ PieChartPropsType,
43
+ pieDataItem,
44
+ PieChartMainProps,
45
+ } from "./src/PieChart/types";
42
46
 
43
47
  /***********************************************************************************************************************/
44
48
  /************************************ Population Pyramid Chart ************************************/
@@ -90,6 +94,7 @@ export {
90
94
  getYForLineInBar,
91
95
  clone,
92
96
  getLineConfigForBarChart,
97
+ adjustToOffset,
93
98
  } from "./src/utils";
94
99
 
95
100
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gifted-charts-core",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "Mathematical and logical utilities used by react-gifted-charts and react-native-gifted-charts",
5
5
  "main": "index.ts",
6
6
  "files": [
@@ -1383,10 +1383,7 @@ export const getTextSizeForPieLabels = (
1383
1383
  ): number => (textSize ? Math.min(textSize, radius / 5) : 16);
1384
1384
 
1385
1385
  export const adjustToOffset = (data, yAxisOffset) =>
1386
- data.map((item) => {
1387
- item.value = item.value - (yAxisOffset ?? 0);
1388
- return item;
1389
- });
1386
+ data.map((item) => ({ ...item, value: item.value - (yAxisOffset ?? 0) }));
1390
1387
 
1391
1388
  export const getSanitisedData = (data, dataSanitisationProps) => {
1392
1389
  if (!data) {