gifted-charts-core 0.0.5 → 0.0.7

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.5",
3
+ "version": "0.0.7",
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": [
@@ -590,6 +590,7 @@ export const useBarChart = (props: extendedBarChartPropsType) => {
590
590
  barBackgroundPattern: props.barBackgroundPattern,
591
591
  patternId: props.patternId,
592
592
  onPress: props.onPress,
593
+ onLongPress: props.onLongPress,
593
594
  xAxisTextNumberOfLines: xAxisTextNumberOfLines,
594
595
  xAxisLabelsHeight: props.xAxisLabelsHeight,
595
596
  xAxisLabelsVerticalShift,
@@ -12,6 +12,7 @@ import { Component, ReactNode } from "react";
12
12
 
13
13
  export type stackDataItem = {
14
14
  onPress?: any;
15
+ onLongPress?: any;
15
16
  label?: String;
16
17
  barWidth?: number;
17
18
  spacing?: number;
@@ -75,6 +76,7 @@ export type StackedBarChartPropsType = {
75
76
  data?: any;
76
77
  barWidth?: number;
77
78
  onPress?: Function;
79
+ onLongPress?: Function;
78
80
 
79
81
  rotateLabel?: boolean;
80
82
  showXAxisIndices: boolean;
@@ -277,6 +279,7 @@ export type BarChartPropsType = {
277
279
  patternId?: String;
278
280
  barMarginBottom?: number;
279
281
  onPress?: Function;
282
+ onLongPress?: Function;
280
283
  renderTooltip?: Function;
281
284
  leftShiftForTooltip?: number;
282
285
  leftShiftForLastIndexTooltip?: number;
@@ -371,6 +374,7 @@ type sectionType = {
371
374
  export type barDataItem = {
372
375
  value: number;
373
376
  onPress?: any;
377
+ onLongPress?: any;
374
378
  frontColor?: ColorValue;
375
379
  sideColor?: ColorValue;
376
380
  topColor?: ColorValue;
@@ -508,6 +512,7 @@ export type RenderBarsPropsType = {
508
512
  patternId?: String;
509
513
  barMarginBottom?: number;
510
514
  onPress?: Function;
515
+ onLongPress?: Function;
511
516
  xAxisTextNumberOfLines: number;
512
517
  xAxisLabelsHeight?: number;
513
518
  xAxisLabelsVerticalShift: number;