gifted-charts-core 0.1.16 → 0.1.17

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.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Mathematical and logical utilities used by react-gifted-charts and react-native-gifted-charts",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -370,6 +370,7 @@ export declare const useLineChart: (props: extendedLineChartPropsType) => {
370
370
  stripWidth: number;
371
371
  stripColor: any;
372
372
  stripOpacity: number;
373
+ stripStrokeDashArray: number[] | undefined;
373
374
  unFocusOnPressOut: boolean;
374
375
  delayBeforeUnFocus: number;
375
376
  containerHeightIncludingBelowXAxis: number;
@@ -971,6 +971,7 @@ export var useLineChart = function (props) {
971
971
  var stripWidth = (_284 = props.stripWidth) !== null && _284 !== void 0 ? _284 : LineDefaults.stripWidth;
972
972
  var stripColor = (_285 = props.stripColor) !== null && _285 !== void 0 ? _285 : color1;
973
973
  var stripOpacity = (_286 = props.stripOpacity) !== null && _286 !== void 0 ? _286 : (startOpacity1 + endOpacity1) / 2;
974
+ var stripStrokeDashArray = props.stripStrokeDashArray;
974
975
  var unFocusOnPressOut = (_287 = props.unFocusOnPressOut) !== null && _287 !== void 0 ? _287 : LineDefaults.unFocusOnPressOut;
975
976
  var delayBeforeUnFocus = (_288 = props.delayBeforeUnFocus) !== null && _288 !== void 0 ? _288 : LineDefaults.delayBeforeUnFocus;
976
977
  var containerHeightIncludingBelowXAxis = extendedContainerHeight + noOfSectionsBelowXAxis * stepHeight;
@@ -1455,6 +1456,7 @@ export var useLineChart = function (props) {
1455
1456
  stripWidth: stripWidth,
1456
1457
  stripColor: stripColor,
1457
1458
  stripOpacity: stripOpacity,
1459
+ stripStrokeDashArray: stripStrokeDashArray,
1458
1460
  unFocusOnPressOut: unFocusOnPressOut,
1459
1461
  delayBeforeUnFocus: delayBeforeUnFocus,
1460
1462
  containerHeightIncludingBelowXAxis: containerHeightIncludingBelowXAxis,
@@ -1663,6 +1663,7 @@ export const useLineChart = (props: extendedLineChartPropsType) => {
1663
1663
  const stripWidth = props.stripWidth ?? LineDefaults.stripWidth
1664
1664
  const stripColor = props.stripColor ?? color1
1665
1665
  const stripOpacity = props.stripOpacity ?? (startOpacity1 + endOpacity1) / 2
1666
+ const stripStrokeDashArray = props.stripStrokeDashArray
1666
1667
  const unFocusOnPressOut =
1667
1668
  props.unFocusOnPressOut ?? LineDefaults.unFocusOnPressOut
1668
1669
  const delayBeforeUnFocus =
@@ -2187,6 +2188,7 @@ export const useLineChart = (props: extendedLineChartPropsType) => {
2187
2188
  stripWidth,
2188
2189
  stripColor,
2189
2190
  stripOpacity,
2191
+ stripStrokeDashArray,
2190
2192
  unFocusOnPressOut,
2191
2193
  delayBeforeUnFocus,
2192
2194
  containerHeightIncludingBelowXAxis,
@@ -62,6 +62,7 @@ export interface LineChartPropsType {
62
62
  stripWidth?: number;
63
63
  stripColor?: ColorValue | string | any;
64
64
  stripOpacity?: number;
65
+ stripStrokeDashArray?: number[];
65
66
  onPress?: Function;
66
67
  unFocusOnPressOut?: boolean;
67
68
  delayBeforeUnFocus?: number;
@@ -325,6 +326,7 @@ export interface lineDataItem {
325
326
  stripWidth?: number;
326
327
  stripColor?: ColorValue | string | any;
327
328
  stripOpacity?: number;
329
+ stripStrokeDashArray?: number[];
328
330
  focusedDataPointShape?: string;
329
331
  focusedDataPointWidth?: number;
330
332
  focusedDataPointHeight?: number;
@@ -77,6 +77,7 @@ export interface LineChartPropsType {
77
77
  stripWidth?: number
78
78
  stripColor?: ColorValue | string | any
79
79
  stripOpacity?: number
80
+ stripStrokeDashArray?: number[]
80
81
  onPress?: Function
81
82
  unFocusOnPressOut?: boolean
82
83
  delayBeforeUnFocus?: number
@@ -365,6 +366,7 @@ export interface lineDataItem {
365
366
  stripWidth?: number
366
367
  stripColor?: ColorValue | string | any
367
368
  stripOpacity?: number
369
+ stripStrokeDashArray?: number[]
368
370
 
369
371
  focusedDataPointShape?: string
370
372
  focusedDataPointWidth?: number