gifted-charts-core 0.1.61 → 0.1.62

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.
@@ -639,7 +639,8 @@ export var useBarChart = function (props) {
639
639
  customBackground: props.customBackground,
640
640
  highlightEnabled: highlightEnabled,
641
641
  lowlightOpacity: lowlightOpacity,
642
- xAxisLabelsAtBottom: xAxisLabelsAtBottom
642
+ xAxisLabelsAtBottom: xAxisLabelsAtBottom,
643
+ onScrollEndDrag: props.onScrollEndDrag
643
644
  };
644
645
  return {
645
646
  lineConfig: lineConfig,
@@ -145,6 +145,9 @@ export interface StackedBarChartPropsType {
145
145
  selectedStackIndex: number;
146
146
  setSelectedStackIndex: Function;
147
147
  onBackgroundPress?: Function;
148
+ bounces?: boolean;
149
+ overScrollMode?: 'auto' | 'always' | 'never';
150
+ onScrollEndDrag?: (event: any, direction: any) => void;
148
151
  }
149
152
  export interface StackedBarChartPropsTypeForWeb extends StackedBarChartPropsType {
150
153
  onContextMenu?: Function;
@@ -324,6 +327,9 @@ export interface BarChartPropsType {
324
327
  endReachedOffset?: number;
325
328
  onScroll?: Function;
326
329
  onMomentumScrollEnd?: Function;
330
+ bounces?: boolean;
331
+ overScrollMode?: 'auto' | 'always' | 'never';
332
+ onScrollEndDrag?: (event: any, direction: any) => void;
327
333
  focusBarOnPress?: boolean;
328
334
  focusedBarConfig?: FocusedBarConfig;
329
335
  focusedBarIndex?: number;
@@ -438,7 +438,8 @@ export var useLineChartBiColor = function (props) {
438
438
  extraWidthDueToDataPoint: extraWidthDueToDataPoint,
439
439
  highlightEnabled: LineDefaults.highlightEnabled,
440
440
  lowlightOpacity: LineDefaults.lowlightOpacity,
441
- xAxisLabelsAtBottom: false
441
+ xAxisLabelsAtBottom: false,
442
+ onScrollEndDrag: props.onScrollEndDrag
442
443
  };
443
444
  return {
444
445
  toggle: toggle,
@@ -1389,7 +1389,8 @@ export var useLineChart = function (props) {
1389
1389
  onlyPositive: onlyPositive,
1390
1390
  highlightEnabled: LineDefaults.highlightEnabled,
1391
1391
  lowlightOpacity: LineDefaults.lowlightOpacity,
1392
- xAxisLabelsAtBottom: xAxisLabelsAtBottom
1392
+ xAxisLabelsAtBottom: xAxisLabelsAtBottom,
1393
+ onScrollEndDrag: props.onScrollEndDrag
1393
1394
  };
1394
1395
  var pointerItemLocal = [];
1395
1396
  if (pointerConfig) {
@@ -314,6 +314,9 @@ export interface LineChartPropsType {
314
314
  endReachedOffset?: number;
315
315
  onScroll?: Function;
316
316
  onMomentumScrollEnd?: Function;
317
+ bounces?: boolean;
318
+ overScrollMode?: 'auto' | 'always' | 'never';
319
+ onScrollEndDrag?: (event: any, direction: any) => void;
317
320
  showDataPointsForMissingValues?: boolean;
318
321
  interpolateMissingValues?: boolean;
319
322
  extrapolateMissingValues?: boolean;
@@ -580,6 +583,9 @@ export interface LineChartBicolorPropsType {
580
583
  formatYLabel?: (label: string) => string;
581
584
  onScroll?: Function;
582
585
  endReachedOffset?: number;
586
+ bounces?: boolean;
587
+ overScrollMode?: 'auto' | 'always' | 'never';
588
+ onScrollEndDrag?: (event: any, direction: any) => void;
583
589
  parentWidth?: number;
584
590
  }
585
591
  export interface LineChartPropsTypeForWeb extends LineChartPropsType {
@@ -341,6 +341,7 @@ export interface BarAndLineChartsWrapperTypes {
341
341
  highlightEnabled: boolean;
342
342
  lowlightOpacity: number;
343
343
  xAxisLabelsAtBottom: boolean;
344
+ onScrollEndDrag?: (event: any, direction: any) => void;
344
345
  }
345
346
  export interface HorizontalStripConfig {
346
347
  thickness?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gifted-charts-core",
3
- "version": "0.1.61",
3
+ "version": "0.1.62",
4
4
  "description": "Mathematical and logical utilities used by react-gifted-charts and react-native-gifted-charts",
5
5
  "main": "./dist/index.js",
6
6
  "files": [