gifted-charts-core 0.1.19 → 0.1.20

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.1.19",
3
+ "version": "0.1.20",
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": [
@@ -12,20 +12,20 @@
12
12
  "lint": "eslint src/**/*.ts"
13
13
  },
14
14
  "devDependencies": {
15
- "@testing-library/jest-dom": "^5.17.0",
16
- "@testing-library/react": "^13.4.0",
17
- "@testing-library/user-event": "^13.5.0",
18
- "@typescript-eslint/eslint-plugin": "^6.21.0",
19
- "@types/react": "^18.2.14",
20
- "@types/react-dom": "^18.2.6",
21
- "@types/react-native": "^0.72.2",
15
+ "@testing-library/jest-dom": "^6.4.8",
16
+ "@testing-library/react": "^16.0.0",
17
+ "@testing-library/user-event": "^14.5.2",
18
+ "@typescript-eslint/eslint-plugin": "^7.17.0",
19
+ "@types/react": "^18.3.3",
20
+ "@types/react-dom": "^18.3.0",
21
+ "@types/react-native": "^0.73.0",
22
22
  "eslint": "^8.56.0",
23
- "eslint-config-standard-with-typescript": "^43.0.1",
23
+ "eslint-config-love": "^62.0.0",
24
24
  "eslint-plugin-import": "^2.29.1",
25
25
  "eslint-plugin-n": "^16.6.2",
26
26
  "eslint-plugin-promise": "^6.1.1",
27
27
  "eslint-plugin-react": "^7.33.2",
28
- "typescript": "^5.3.3"
28
+ "typescript": "^5.5.4"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": "*",
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { type StackedBarChartPropsType, type stackDataItem } from './types';
3
2
  export declare const useRenderStackBars: (props: StackedBarChartPropsType) => {
4
3
  cotainsNegative: boolean;
5
4
  noAnimation: boolean;
6
- localBarInnerComponent: ((item?: stackDataItem | undefined, index?: number | undefined) => import("react").ReactNode) | undefined;
5
+ localBarInnerComponent: ((item?: stackDataItem, index?: number) => import("react").ReactNode) | undefined;
7
6
  borderRadius: number | undefined;
8
7
  borderTopLeftRadius: number | undefined;
9
8
  borderTopRightRadius: number | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type lineConfigType, type BarChartPropsType, type barDataItem, type stackDataItem } from './types';
3
2
  import { type BarAndLineChartsWrapperTypes, type secondaryYAxisType } from '../utils/types';
4
3
  import { type Animated } from 'react-native';
@@ -75,7 +74,7 @@ export declare const useBarChart: (props: extendedBarChartPropsType) => {
75
74
  rtl: boolean;
76
75
  intactTopLabel: boolean;
77
76
  barBorderColor: import("react-native").ColorValue;
78
- barInnerComponent: ((item?: barDataItem | stackDataItem | undefined, index?: number | undefined) => import("react").ReactNode) | undefined;
77
+ barInnerComponent: ((item?: stackDataItem | barDataItem, index?: number) => import("react").ReactNode) | undefined;
79
78
  xAxisTextNumberOfLines: number;
80
79
  selectedIndex: number;
81
80
  setSelectedIndex: import("react").Dispatch<import("react").SetStateAction<number>>;
@@ -148,7 +147,7 @@ export declare const useBarChart: (props: extendedBarChartPropsType) => {
148
147
  barBorderTopRightRadius: number | undefined;
149
148
  barBorderBottomLeftRadius: number | undefined;
150
149
  barBorderBottomRightRadius: number | undefined;
151
- barInnerComponent: ((item?: barDataItem | stackDataItem | undefined, index?: number | undefined) => import("react").ReactNode) | undefined;
150
+ barInnerComponent: ((item?: stackDataItem | barDataItem, index?: number) => import("react").ReactNode) | undefined;
152
151
  color: import("react-native").ColorValue | undefined;
153
152
  showGradient: boolean | undefined;
154
153
  gradientColor: import("react-native").ColorValue | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type LineChartBicolorPropsType, type bicolorLineDataItem } from './types';
3
2
  import { type BarAndLineChartsWrapperTypes } from '../utils/types';
4
3
  interface Points {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type LineChartPropsType, type lineDataItem } from './types';
3
2
  import { type BarAndLineChartsWrapperTypes, EdgePosition, type LineSegment } from '../utils/types';
4
3
  import { type Animated } from 'react-native';
@@ -110,10 +110,10 @@ export declare const usePopulationPyramid: (props: extendedPopulationPyramidProp
110
110
  leftXAfterMid: number;
111
111
  rightXAfterMid: number;
112
112
  yAxisLineProps: {
113
- framework?: Framework.reactNative | undefined;
113
+ framework?: Framework.reactNative;
114
114
  } & import("./types").RulesProps;
115
115
  midAxisLineCommonProps: {
116
- framework?: Framework.reactNative | undefined;
116
+ framework?: Framework.reactNative;
117
117
  } & import("./types").RulesProps;
118
118
  xAxisLabelY: number;
119
119
  xAxisIndicesCommonProps: {
@@ -123,7 +123,7 @@ export declare const usePopulationPyramid: (props: extendedPopulationPyramidProp
123
123
  strokeWidth: number;
124
124
  };
125
125
  verticalLinesCommonProps: {
126
- framework?: Framework.reactNative | undefined;
126
+ framework?: Framework.reactNative;
127
127
  } & import("./types").RulesProps;
128
128
  xAxisLabelsCommonProps: {
129
129
  y: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { type animatedBarPropTypes } from '../../BarChart/types';
3
2
  export declare const useAnimatedThreeDBar: (props: animatedBarPropTypes) => {
4
3
  showGradient: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { LineInBarChartPropsType, type BarAndLineChartsWrapperTypes, type horizSectionPropTypes } from '../../utils/types';
3
2
  import { type NativeScrollEvent } from 'react-native';
4
3
  export declare const useBarAndLineChartsWrapper: (props: BarAndLineChartsWrapperTypes) => {
@@ -81,7 +81,7 @@ interface MaxAndMin {
81
81
  }
82
82
  export declare const maxAndMinUtil: (maxItem: number, minItem: number, roundToDigits?: number, showFractionalValues?: boolean) => MaxAndMin;
83
83
  export declare const computeMaxAndMinItems: (data: any[] | undefined, roundToDigits?: number, showFractionalValues?: boolean) => MaxAndMin;
84
- export declare const getLabelTextUtil: (val: string, index: number, showFractionalValues?: boolean, yAxisLabelTexts?: string[], yAxisOffset?: number, yAxisLabelPrefix?: string, yAxisLabelSuffix?: string, roundToDigits?: number, formatYLabel?: ((label: string) => string) | undefined) => string;
84
+ export declare const getLabelTextUtil: (val: string, index: number, showFractionalValues?: boolean, yAxisLabelTexts?: string[], yAxisOffset?: number, yAxisLabelPrefix?: string, yAxisLabelSuffix?: string, roundToDigits?: number, formatYLabel?: (label: string) => string) => string;
85
85
  export declare const getXForLineInBar: (index: number, firstBarWidth: number, currentBarWidth: number, yAxisLabelWidth: number, lineConfig: any, spacing: number) => number;
86
86
  export declare const getYForLineInBar: (value: number | undefined, shiftY: number | undefined, containerHeight: number, maxValue: number) => number;
87
87
  export declare const clone: (obj: any) => any;