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 +1 -1
- package/src/BarChart/index.ts +1 -0
- package/src/BarChart/types.ts +5 -0
package/package.json
CHANGED
package/src/BarChart/index.ts
CHANGED
|
@@ -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,
|
package/src/BarChart/types.ts
CHANGED
|
@@ -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;
|