gifted-charts-core 0.0.3 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gifted-charts-core",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
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": [
@@ -682,8 +682,8 @@ export const useBarChart = (props: extendedBarChartPropsType) => {
682
682
  pointerX,
683
683
  pointerY,
684
684
 
685
- endReached: props.endReached,
686
- startReached: props.startReached,
685
+ onEndReached: props.onEndReached,
686
+ onStartReached: props.onStartReached,
687
687
  };
688
688
 
689
689
  return {
@@ -286,8 +286,8 @@ export type BarChartPropsType = {
286
286
  getPointerProps?: Function;
287
287
  formatYLabel?: (label: string) => string;
288
288
 
289
- endReached?: () => void;
290
- startReached?: () => void;
289
+ onEndReached?: () => void;
290
+ onStartReached?: () => void;
291
291
  };
292
292
  type lineConfigType = {
293
293
  initialSpacing?: number;
@@ -1762,8 +1762,8 @@ export const useLineChart = (props: extendedLineChartPropsType) => {
1762
1762
  pointerX,
1763
1763
  pointerY,
1764
1764
 
1765
- endReached: props.endReached,
1766
- startReached: props.startReached,
1765
+ onEndReached: props.onEndReached,
1766
+ onStartReached: props.onStartReached,
1767
1767
  }
1768
1768
 
1769
1769
  return {
@@ -316,8 +316,8 @@ export type LineChartPropsType = {
316
316
  lineSegments5?: Array<LineSegment>;
317
317
  highlightedRange?: HighlightedRange;
318
318
 
319
- endReached?: () => void;
320
- startReached?: () => void;
319
+ onEndReached?: () => void;
320
+ onStartReached?: () => void;
321
321
  };
322
322
 
323
323
  export type lineDataItem = {
@@ -254,8 +254,8 @@ export type BarAndLineChartsWrapperTypes = {
254
254
 
255
255
  scrollEventThrottle: number;
256
256
 
257
- endReached?: () => void;
258
- startReached?: () => void;
257
+ onEndReached?: () => void;
258
+ onStartReached?: () => void;
259
259
  };
260
260
 
261
261
  export type Pointer = {