gifted-charts-core
Advanced tools
Comparing version 0.1.19 to 0.1.20
{ | ||
"name": "gifted-charts-core", | ||
"version": "0.1.19", | ||
"version": "0.1.20", | ||
"description": "Mathematical and logical utilities used by react-gifted-charts and react-native-gifted-charts", | ||
@@ -15,11 +15,11 @@ "main": "./src/index.js", | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^5.17.0", | ||
"@testing-library/react": "^13.4.0", | ||
"@testing-library/user-event": "^13.5.0", | ||
"@typescript-eslint/eslint-plugin": "^6.21.0", | ||
"@types/react": "^18.2.14", | ||
"@types/react-dom": "^18.2.6", | ||
"@types/react-native": "^0.72.2", | ||
"@testing-library/jest-dom": "^6.4.8", | ||
"@testing-library/react": "^16.0.0", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@typescript-eslint/eslint-plugin": "^7.17.0", | ||
"@types/react": "^18.3.3", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/react-native": "^0.73.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-standard-with-typescript": "^43.0.1", | ||
"eslint-config-love": "^62.0.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
@@ -29,3 +29,3 @@ "eslint-plugin-n": "^16.6.2", | ||
"eslint-plugin-react": "^7.33.2", | ||
"typescript": "^5.3.3" | ||
"typescript": "^5.5.4" | ||
}, | ||
@@ -32,0 +32,0 @@ "peerDependencies": { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type lineConfigType, type BarChartPropsType, type barDataItem, type stackDataItem } from './types'; | ||
@@ -78,3 +77,3 @@ import { type BarAndLineChartsWrapperTypes, type secondaryYAxisType } from '../utils/types'; | ||
barBorderColor: import("react-native").ColorValue; | ||
barInnerComponent: ((item?: barDataItem | stackDataItem | undefined, index?: number | undefined) => import("react").ReactNode) | undefined; | ||
barInnerComponent: ((item?: stackDataItem | barDataItem, index?: number) => import("react").ReactNode) | undefined; | ||
xAxisTextNumberOfLines: number; | ||
@@ -152,3 +151,3 @@ selectedIndex: number; | ||
barBorderBottomRightRadius: number | undefined; | ||
barInnerComponent: ((item?: barDataItem | stackDataItem | undefined, index?: number | undefined) => import("react").ReactNode) | undefined; | ||
barInnerComponent: ((item?: stackDataItem | barDataItem, index?: number) => import("react").ReactNode) | undefined; | ||
color: import("react-native").ColorValue | undefined; | ||
@@ -155,0 +154,0 @@ showGradient: boolean | undefined; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type StackedBarChartPropsType, type stackDataItem } from './types'; | ||
@@ -6,3 +5,3 @@ export declare const useRenderStackBars: (props: StackedBarChartPropsType) => { | ||
noAnimation: boolean; | ||
localBarInnerComponent: ((item?: stackDataItem | undefined, index?: number | undefined) => import("react").ReactNode) | undefined; | ||
localBarInnerComponent: ((item?: stackDataItem, index?: number) => import("react").ReactNode) | undefined; | ||
borderRadius: number | undefined; | ||
@@ -9,0 +8,0 @@ borderTopLeftRadius: number | undefined; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type animatedBarPropTypes } from '../../BarChart/types'; | ||
@@ -3,0 +2,0 @@ export declare const useAnimatedThreeDBar: (props: animatedBarPropTypes) => { |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { LineInBarChartPropsType, type BarAndLineChartsWrapperTypes, type horizSectionPropTypes } from '../../utils/types'; | ||
@@ -3,0 +2,0 @@ import { type NativeScrollEvent } from 'react-native'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type LineChartPropsType, type lineDataItem } from './types'; | ||
@@ -3,0 +2,0 @@ import { type BarAndLineChartsWrapperTypes, EdgePosition, type LineSegment } from '../utils/types'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import { type LineChartBicolorPropsType, type bicolorLineDataItem } from './types'; | ||
@@ -3,0 +2,0 @@ import { type BarAndLineChartsWrapperTypes } from '../utils/types'; |
@@ -113,6 +113,6 @@ import { Framework } from '../utils/types'; | ||
yAxisLineProps: { | ||
framework?: Framework.reactNative | undefined; | ||
framework?: Framework.reactNative; | ||
} & import("./types").RulesProps; | ||
midAxisLineCommonProps: { | ||
framework?: Framework.reactNative | undefined; | ||
framework?: Framework.reactNative; | ||
} & import("./types").RulesProps; | ||
@@ -127,3 +127,3 @@ xAxisLabelY: number; | ||
verticalLinesCommonProps: { | ||
framework?: Framework.reactNative | undefined; | ||
framework?: Framework.reactNative; | ||
} & import("./types").RulesProps; | ||
@@ -130,0 +130,0 @@ xAxisLabelsCommonProps: { |
@@ -84,3 +84,3 @@ import { type ColorValue } from 'react-native'; | ||
export declare const computeMaxAndMinItems: (data: any[] | undefined, roundToDigits?: number, showFractionalValues?: boolean) => MaxAndMin; | ||
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; | ||
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; | ||
export declare const getXForLineInBar: (index: number, firstBarWidth: number, currentBarWidth: number, yAxisLabelWidth: number, lineConfig: any, spacing: number) => number; | ||
@@ -87,0 +87,0 @@ export declare const getYForLineInBar: (value: number | undefined, shiftY: number | undefined, containerHeight: number, maxValue: number) => number; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
965591
18522