gifted-charts-core 0.0.5 → 0.0.6
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/types.ts +4 -0
package/package.json
CHANGED
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;
|