gifted-charts-core 0.0.2 → 0.0.4
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
package/src/BarChart/index.ts
CHANGED
|
@@ -682,8 +682,8 @@ export const useBarChart = (props: extendedBarChartPropsType) => {
|
|
|
682
682
|
pointerX,
|
|
683
683
|
pointerY,
|
|
684
684
|
|
|
685
|
-
|
|
686
|
-
|
|
685
|
+
onEndReached: props.onEndReached,
|
|
686
|
+
onStartReached: props.onStartReached,
|
|
687
687
|
};
|
|
688
688
|
|
|
689
689
|
return {
|
package/src/BarChart/types.ts
CHANGED
|
@@ -286,8 +286,8 @@ export type BarChartPropsType = {
|
|
|
286
286
|
getPointerProps?: Function;
|
|
287
287
|
formatYLabel?: (label: string) => string;
|
|
288
288
|
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
onEndReached?: () => void;
|
|
290
|
+
onStartReached?: () => void;
|
|
291
291
|
};
|
|
292
292
|
type lineConfigType = {
|
|
293
293
|
initialSpacing?: number;
|
package/src/LineChart/index.ts
CHANGED
|
@@ -1762,8 +1762,8 @@ export const useLineChart = (props: extendedLineChartPropsType) => {
|
|
|
1762
1762
|
pointerX,
|
|
1763
1763
|
pointerY,
|
|
1764
1764
|
|
|
1765
|
-
|
|
1766
|
-
|
|
1765
|
+
onEndReached: props.onEndReached,
|
|
1766
|
+
onStartReached: props.onStartReached,
|
|
1767
1767
|
}
|
|
1768
1768
|
|
|
1769
1769
|
return {
|
package/src/LineChart/types.ts
CHANGED
|
@@ -316,8 +316,8 @@ export type LineChartPropsType = {
|
|
|
316
316
|
lineSegments5?: Array<LineSegment>;
|
|
317
317
|
highlightedRange?: HighlightedRange;
|
|
318
318
|
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
onEndReached?: () => void;
|
|
320
|
+
onStartReached?: () => void;
|
|
321
321
|
};
|
|
322
322
|
|
|
323
323
|
export type lineDataItem = {
|
|
@@ -18,9 +18,9 @@ export const useAnimatedThreeDBar = (props: animatedBarPropTypes) => {
|
|
|
18
18
|
return {
|
|
19
19
|
showGradient,
|
|
20
20
|
gradientColor,
|
|
21
|
-
frontColor,
|
|
22
|
-
sideColor,
|
|
23
|
-
topColor,
|
|
21
|
+
frontColor: frontColor?.toString()?.trim?.()?.length ? frontColor : BarDefaults.threeDBarFrontColor,
|
|
22
|
+
sideColor: sideColor?.toString()?.trim?.()?.length ? sideColor : BarDefaults.threeDBarSideColor,
|
|
23
|
+
topColor: topColor?.toString()?.trim?.()?.length ? topColor : BarDefaults.threeDBarTopColor,
|
|
24
24
|
opacity,
|
|
25
25
|
initialRender,
|
|
26
26
|
setInitialRender,
|
package/src/utils/constants.ts
CHANGED
|
@@ -146,9 +146,9 @@ export const BarDefaults = {
|
|
|
146
146
|
opacity: 1,
|
|
147
147
|
isThreeD: false,
|
|
148
148
|
threeDBarGradientColor: 'white',
|
|
149
|
-
threeDBarFrontColor: '#
|
|
150
|
-
threeDBarSideColor: '#
|
|
151
|
-
threeDBarTopColor: '#
|
|
149
|
+
threeDBarFrontColor: '#C0CA3A',
|
|
150
|
+
threeDBarSideColor: '#887A24',
|
|
151
|
+
threeDBarTopColor: '#D9E676',
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
export const defaultLineConfig: defaultLineConfigType = {
|
package/src/utils/types.ts
CHANGED
|
@@ -254,8 +254,8 @@ export type BarAndLineChartsWrapperTypes = {
|
|
|
254
254
|
|
|
255
255
|
scrollEventThrottle: number;
|
|
256
256
|
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
onEndReached?: () => void;
|
|
258
|
+
onStartReached?: () => void;
|
|
259
259
|
};
|
|
260
260
|
|
|
261
261
|
export type Pointer = {
|