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 +10 -10
- package/src/BarChart/RenderStackBars.d.ts +1 -2
- package/src/BarChart/index.d.ts +2 -3
- package/src/LineChart/LineChartBiColor.d.ts +0 -1
- package/src/LineChart/index.d.ts +0 -1
- package/src/PopulationPyramid/index.d.ts +3 -3
- package/src/components/AnimatedThreeDBar/index.d.ts +0 -1
- package/src/components/BarAndLineChartsWrapper/index.d.ts +0 -1
- package/src/utils/index.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gifted-charts-core",
|
|
3
|
-
"version": "0.1.
|
|
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": "^
|
|
16
|
-
"@testing-library/react": "^
|
|
17
|
-
"@testing-library/user-event": "^
|
|
18
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
19
|
-
"@types/react": "^18.
|
|
20
|
-
"@types/react-dom": "^18.
|
|
21
|
-
"@types/react-native": "^0.
|
|
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-
|
|
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.
|
|
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
|
|
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;
|
package/src/BarChart/index.d.ts
CHANGED
|
@@ -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?:
|
|
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?:
|
|
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;
|
package/src/LineChart/index.d.ts
CHANGED
|
@@ -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
|
|
113
|
+
framework?: Framework.reactNative;
|
|
114
114
|
} & import("./types").RulesProps;
|
|
115
115
|
midAxisLineCommonProps: {
|
|
116
|
-
framework?: Framework.reactNative
|
|
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
|
|
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 { LineInBarChartPropsType, type BarAndLineChartsWrapperTypes, type horizSectionPropTypes } from '../../utils/types';
|
|
3
2
|
import { type NativeScrollEvent } from 'react-native';
|
|
4
3
|
export declare const useBarAndLineChartsWrapper: (props: BarAndLineChartsWrapperTypes) => {
|
package/src/utils/index.d.ts
CHANGED
|
@@ -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?: (
|
|
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;
|