gifted-charts-core 0.1.25 → 0.1.27
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/dist/BarChart/types.d.ts +2 -0
- package/dist/LineChart/index.d.ts +6 -2
- package/dist/LineChart/index.js +41 -26
- package/dist/LineChart/types.d.ts +2 -1
- package/dist/components/common/types.d.ts +4 -1
- package/dist/index.d.ts +1 -1
- package/dist/utils/index.js +6 -2
- package/dist/utils/types.d.ts +4 -0
- package/package.json +1 -1
package/dist/BarChart/types.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface stackDataItem {
|
|
|
9
9
|
onLongPress?: any;
|
|
10
10
|
onPressOut?: any;
|
|
11
11
|
label?: string;
|
|
12
|
+
labelWidth?: number;
|
|
12
13
|
labelsDistanceFromXaxis?: number;
|
|
13
14
|
barWidth?: number;
|
|
14
15
|
spacing?: number;
|
|
@@ -74,6 +75,7 @@ export interface StackedBarChartPropsType {
|
|
|
74
75
|
onPress?: Function;
|
|
75
76
|
onLongPress?: Function;
|
|
76
77
|
onPressOut?: Function;
|
|
78
|
+
labelWidth?: number;
|
|
77
79
|
rotateLabel?: boolean;
|
|
78
80
|
showXAxisIndices: boolean;
|
|
79
81
|
xAxisIndicesHeight: number;
|
|
@@ -48,8 +48,12 @@ export declare const useLineChart: (props: extendedLineChartPropsType) => {
|
|
|
48
48
|
setPointerItem5: import("react").Dispatch<import("react").SetStateAction<lineDataItem | undefined>>;
|
|
49
49
|
secondaryPointerY: number;
|
|
50
50
|
setSecondaryPointerY: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
51
|
-
secondaryPointerItem: undefined;
|
|
52
|
-
setSecondaryPointerItem: import("react").Dispatch<import("react").SetStateAction<undefined>>;
|
|
51
|
+
secondaryPointerItem: lineDataItem | undefined;
|
|
52
|
+
setSecondaryPointerItem: import("react").Dispatch<import("react").SetStateAction<lineDataItem | undefined>>;
|
|
53
|
+
pointerItemsForSet: lineDataItem[];
|
|
54
|
+
setPointerItemsForSet: import("react").Dispatch<import("react").SetStateAction<lineDataItem[]>>;
|
|
55
|
+
secondaryPointerItemsForSet: lineDataItem[];
|
|
56
|
+
setSecondaryPointerItemsForSet: import("react").Dispatch<import("react").SetStateAction<lineDataItem[]>>;
|
|
53
57
|
responderStartTime: number;
|
|
54
58
|
setResponderStartTime: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
55
59
|
responderActive: boolean;
|
package/dist/LineChart/index.js
CHANGED
|
@@ -25,6 +25,15 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
25
25
|
}
|
|
26
26
|
return ar;
|
|
27
27
|
};
|
|
28
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
29
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
30
|
+
if (ar || !(i in from)) {
|
|
31
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
32
|
+
ar[i] = from[i];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
36
|
+
};
|
|
28
37
|
import { useEffect, useMemo, useState } from 'react';
|
|
29
38
|
import { AxesAndRulesDefaults, LineDefaults, SEGMENT_END, SEGMENT_START, chartTypes, defaultArrowConfig, defaultPointerConfig } from '../utils/constants';
|
|
30
39
|
import { adjustToOffset, computeMaxAndMinItems, getAllArrowProperties, getArrowPoints, getAxesAndRulesProps, getCurvePathWithSegments, getExtendedContainerHeightWithPadding, getInterpolatedData, getLineSegmentsForMissingValues, getMaxValue, getNoOfSections, getPathWithHighlight, getSanitisedData, getSecondaryDataWithOffsetIncluded, getSegmentString, svgPath } from '../utils';
|
|
@@ -56,24 +65,26 @@ export var useLineChart = function (props) {
|
|
|
56
65
|
var _318 = __read(useState(), 2), pointerItem5 = _318[0], setPointerItem5 = _318[1];
|
|
57
66
|
var _319 = __read(useState(0), 2), secondaryPointerY = _319[0], setSecondaryPointerY = _319[1];
|
|
58
67
|
var _320 = __read(useState(), 2), secondaryPointerItem = _320[0], setSecondaryPointerItem = _320[1];
|
|
59
|
-
var _321 = __read(useState(
|
|
60
|
-
var _322 = __read(useState(
|
|
61
|
-
var _323 = __read(useState(
|
|
62
|
-
var _324 = __read(useState(
|
|
63
|
-
var _325 = __read(useState(''), 2),
|
|
64
|
-
var _326 = __read(useState(''), 2),
|
|
65
|
-
var _327 = __read(useState(''), 2),
|
|
66
|
-
var _328 = __read(useState(''), 2),
|
|
67
|
-
var _329 = __read(useState(''), 2),
|
|
68
|
-
var _330 = __read(useState(''), 2),
|
|
69
|
-
var _331 = __read(useState(''), 2),
|
|
70
|
-
var _332 = __read(useState(''), 2),
|
|
71
|
-
var _333 = __read(useState(''), 2),
|
|
72
|
-
var _334 = __read(useState(''), 2),
|
|
73
|
-
var _335 = __read(useState(
|
|
74
|
-
var _336 = __read(useState(
|
|
75
|
-
var _337 = __read(useState([]), 2),
|
|
76
|
-
var _338 = __read(useState(
|
|
68
|
+
var _321 = __read(useState([]), 2), pointerItemsForSet = _321[0], setPointerItemsForSet = _321[1];
|
|
69
|
+
var _322 = __read(useState([]), 2), secondaryPointerItemsForSet = _322[0], setSecondaryPointerItemsForSet = _322[1];
|
|
70
|
+
var _323 = __read(useState(0), 2), responderStartTime = _323[0], setResponderStartTime = _323[1];
|
|
71
|
+
var _324 = __read(useState(false), 2), responderActive = _324[0], setResponderActive = _324[1];
|
|
72
|
+
var _325 = __read(useState(''), 2), points = _325[0], setPoints = _325[1];
|
|
73
|
+
var _326 = __read(useState(''), 2), points2 = _326[0], setPoints2 = _326[1];
|
|
74
|
+
var _327 = __read(useState(''), 2), points3 = _327[0], setPoints3 = _327[1];
|
|
75
|
+
var _328 = __read(useState(''), 2), points4 = _328[0], setPoints4 = _328[1];
|
|
76
|
+
var _329 = __read(useState(''), 2), points5 = _329[0], setPoints5 = _329[1];
|
|
77
|
+
var _330 = __read(useState(''), 2), secondaryPoints = _330[0], setSecondaryPoints = _330[1];
|
|
78
|
+
var _331 = __read(useState(''), 2), fillPoints = _331[0], setFillPoints = _331[1];
|
|
79
|
+
var _332 = __read(useState(''), 2), fillPoints2 = _332[0], setFillPoints2 = _332[1];
|
|
80
|
+
var _333 = __read(useState(''), 2), fillPoints3 = _333[0], setFillPoints3 = _333[1];
|
|
81
|
+
var _334 = __read(useState(''), 2), fillPoints4 = _334[0], setFillPoints4 = _334[1];
|
|
82
|
+
var _335 = __read(useState(''), 2), fillPoints5 = _335[0], setFillPoints5 = _335[1];
|
|
83
|
+
var _336 = __read(useState(''), 2), secondaryFillPoints = _336[0], setSecondaryFillPoints = _336[1];
|
|
84
|
+
var _337 = __read(useState([]), 2), pointsFromSet = _337[0], setPointsFromSet = _337[1];
|
|
85
|
+
var _338 = __read(useState([]), 2), fillPointsFromSet = _338[0], setFillPointsFromSet = _338[1];
|
|
86
|
+
var _339 = __read(useState([]), 2), arrowPointsFromSet = _339[0], setArrowPointsFromSet = _339[1];
|
|
87
|
+
var _340 = __read(useState((_c = props.focusedDataPointIndex) !== null && _c !== void 0 ? _c : -1), 2), selectedIndex = _340[0], setSelectedIndex = _340[1];
|
|
77
88
|
useEffect(function () {
|
|
78
89
|
var _a;
|
|
79
90
|
setSelectedIndex((_a = props.focusedDataPointIndex) !== null && _a !== void 0 ? _a : -1);
|
|
@@ -134,6 +145,9 @@ export var useLineChart = function (props) {
|
|
|
134
145
|
var endIndex4 = (_y = props.endIndex4) !== null && _y !== void 0 ? _y : data4.length - 1;
|
|
135
146
|
var startIndex5 = (_z = props.startIndex5) !== null && _z !== void 0 ? _z : 0;
|
|
136
147
|
var endIndex5 = (_0 = props.endIndex5) !== null && _0 !== void 0 ? _0 : data5.length - 1;
|
|
148
|
+
var lengthOfLongestDataArray = Math.max(data.length, data2.length, data3.length, data4.length, data5.length);
|
|
149
|
+
var maxLengthOfDataOrSet = dataSet
|
|
150
|
+
? Math.max.apply(Math, __spreadArray([], __read(dataSet.map(function (item) { return item.data.length; })), false)) : lengthOfLongestDataArray;
|
|
137
151
|
var lineSegments = !interpolateMissingValues
|
|
138
152
|
? getLineSegmentsForMissingValues(props.data)
|
|
139
153
|
: props.lineSegments;
|
|
@@ -150,9 +164,6 @@ export var useLineChart = function (props) {
|
|
|
150
164
|
? getLineSegmentsForMissingValues(props.data5)
|
|
151
165
|
: props.lineSegments5;
|
|
152
166
|
var highlightedRange = props.highlightedRange;
|
|
153
|
-
var newPoints = '';
|
|
154
|
-
var newFillPoints = '';
|
|
155
|
-
var counter = 0;
|
|
156
167
|
var adjustToWidth = (_1 = props.adjustToWidth) !== null && _1 !== void 0 ? _1 : false;
|
|
157
168
|
var initialSpacing = (_2 = props.initialSpacing) !== null && _2 !== void 0 ? _2 : LineDefaults.initialSpacing;
|
|
158
169
|
var endSpacing = (_3 = props.endSpacing) !== null && _3 !== void 0 ? _3 : (adjustToWidth ? 0 : LineDefaults.endSpacing);
|
|
@@ -233,8 +244,8 @@ export var useLineChart = function (props) {
|
|
|
233
244
|
var textColor3 = (_93 = (_92 = props.textColor3) !== null && _92 !== void 0 ? _92 : props.textColor) !== null && _93 !== void 0 ? _93 : LineDefaults.textColor;
|
|
234
245
|
var textColor4 = (_95 = (_94 = props.textColor4) !== null && _94 !== void 0 ? _94 : props.textColor) !== null && _95 !== void 0 ? _95 : LineDefaults.textColor;
|
|
235
246
|
var textColor5 = (_97 = (_96 = props.textColor5) !== null && _96 !== void 0 ? _96 : props.textColor) !== null && _97 !== void 0 ? _97 : LineDefaults.textColor;
|
|
236
|
-
var totalWidth = initialSpacing + spacing *
|
|
237
|
-
var
|
|
247
|
+
var totalWidth = initialSpacing + spacing * maxLengthOfDataOrSet - 1 + endSpacing;
|
|
248
|
+
var _341 = computeMaxAndMinItems(data0 !== null && data0 !== void 0 ? data0 : data, props.roundToDigits, props.showFractionalValues), maxItem = _341.maxItem, minItem = _341.minItem;
|
|
238
249
|
var maxValue = getMaxValue(props.maxValue, props.stepValue, noOfSections, maxItem);
|
|
239
250
|
var mostNegativeValue = (_98 = props.mostNegativeValue) !== null && _98 !== void 0 ? _98 : minItem;
|
|
240
251
|
var overflowTop = ((_99 = props.overflowTop) !== null && _99 !== void 0 ? _99 : props.secondaryXAxis)
|
|
@@ -303,7 +314,7 @@ export var useLineChart = function (props) {
|
|
|
303
314
|
var endOpacity5 = (_178 = props.endOpacity5) !== null && _178 !== void 0 ? _178 : endOpacity;
|
|
304
315
|
defaultArrowConfig.strokeWidth = (_180 = (_179 = dataSet === null || dataSet === void 0 ? void 0 : dataSet[0]) === null || _179 === void 0 ? void 0 : _179.thickness) !== null && _180 !== void 0 ? _180 : thickness1;
|
|
305
316
|
defaultArrowConfig.strokeColor = (_182 = (_181 = dataSet === null || dataSet === void 0 ? void 0 : dataSet[0]) === null || _181 === void 0 ? void 0 : _181.color) !== null && _182 !== void 0 ? _182 : color1;
|
|
306
|
-
var
|
|
317
|
+
var _342 = getAllArrowProperties(props, defaultArrowConfig), arrowLength1 = _342.arrowLength1, arrowWidth1 = _342.arrowWidth1, arrowStrokeWidth1 = _342.arrowStrokeWidth1, arrowStrokeColor1 = _342.arrowStrokeColor1, arrowFillColor1 = _342.arrowFillColor1, showArrowBase1 = _342.showArrowBase1, arrowLength2 = _342.arrowLength2, arrowWidth2 = _342.arrowWidth2, arrowStrokeWidth2 = _342.arrowStrokeWidth2, arrowStrokeColor2 = _342.arrowStrokeColor2, arrowFillColor2 = _342.arrowFillColor2, showArrowBase2 = _342.showArrowBase2, arrowLength3 = _342.arrowLength3, arrowWidth3 = _342.arrowWidth3, arrowStrokeWidth3 = _342.arrowStrokeWidth3, arrowStrokeColor3 = _342.arrowStrokeColor3, arrowFillColor3 = _342.arrowFillColor3, showArrowBase3 = _342.showArrowBase3, arrowLength4 = _342.arrowLength4, arrowWidth4 = _342.arrowWidth4, arrowStrokeWidth4 = _342.arrowStrokeWidth4, arrowStrokeColor4 = _342.arrowStrokeColor4, arrowFillColor4 = _342.arrowFillColor4, showArrowBase4 = _342.showArrowBase4, arrowLength5 = _342.arrowLength5, arrowWidth5 = _342.arrowWidth5, arrowStrokeWidth5 = _342.arrowStrokeWidth5, arrowStrokeColor5 = _342.arrowStrokeColor5, arrowFillColor5 = _342.arrowFillColor5, showArrowBase5 = _342.showArrowBase5, arrowLengthsFromSet = _342.arrowLengthsFromSet, arrowWidthsFromSet = _342.arrowWidthsFromSet, arrowStrokeWidthsFromSet = _342.arrowStrokeWidthsFromSet, arrowStrokeColorsFromSet = _342.arrowStrokeColorsFromSet, arrowFillColorsFromSet = _342.arrowFillColorsFromSet, showArrowBasesFromSet = _342.showArrowBasesFromSet;
|
|
307
318
|
var secondaryLineConfig = {
|
|
308
319
|
zIndex: (_184 = (_183 = props.secondaryLineConfig) === null || _183 === void 0 ? void 0 : _183.zIndex) !== null && _184 !== void 0 ? _184 : zIndex1,
|
|
309
320
|
curved: (_186 = (_185 = props.secondaryLineConfig) === null || _185 === void 0 ? void 0 : _185.curved) !== null && _186 !== void 0 ? _186 : props.curved,
|
|
@@ -480,7 +491,7 @@ export var useLineChart = function (props) {
|
|
|
480
491
|
var pp4 = '';
|
|
481
492
|
var pp5 = '';
|
|
482
493
|
if (!props.curved) {
|
|
483
|
-
for (var i = 0; i <
|
|
494
|
+
for (var i = 0; i < lengthOfLongestDataArray; i++) {
|
|
484
495
|
if (i >= startIndex1 && i <= endIndex1) {
|
|
485
496
|
if (stepChart !== null && stepChart !== void 0 ? stepChart : stepChart1) {
|
|
486
497
|
pp += getStepPath(data, i);
|
|
@@ -643,7 +654,7 @@ export var useLineChart = function (props) {
|
|
|
643
654
|
var p3Array = [];
|
|
644
655
|
var p4Array = [];
|
|
645
656
|
var p5Array = [];
|
|
646
|
-
for (var i = 0; i <
|
|
657
|
+
for (var i = 0; i < lengthOfLongestDataArray; i++) {
|
|
647
658
|
if (i >= startIndex1 && i <= endIndex1) {
|
|
648
659
|
p1Array.push([getX(i), getY(data[i].value)]);
|
|
649
660
|
}
|
|
@@ -1121,6 +1132,10 @@ export var useLineChart = function (props) {
|
|
|
1121
1132
|
setSecondaryPointerY: setSecondaryPointerY,
|
|
1122
1133
|
secondaryPointerItem: secondaryPointerItem,
|
|
1123
1134
|
setSecondaryPointerItem: setSecondaryPointerItem,
|
|
1135
|
+
pointerItemsForSet: pointerItemsForSet,
|
|
1136
|
+
setPointerItemsForSet: setPointerItemsForSet,
|
|
1137
|
+
secondaryPointerItemsForSet: secondaryPointerItemsForSet,
|
|
1138
|
+
setSecondaryPointerItemsForSet: setSecondaryPointerItemsForSet,
|
|
1124
1139
|
responderStartTime: responderStartTime,
|
|
1125
1140
|
setResponderStartTime: setResponderStartTime,
|
|
1126
1141
|
responderActive: responderActive,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GestureResponderEvent, type ColorValue } from 'react-native';
|
|
2
2
|
import { type yAxisSides } from '../utils/constants';
|
|
3
|
-
import { XAxisConfig, type CurveType, type DataSet, type EdgePosition, type HighlightedRange, type LineSegment, type Pointer, type RuleType, type RulesConfig, type arrowConfigType, type referenceConfigType, type secondaryLineConfigType, type secondaryYAxisType, type Linecap } from '../utils/types';
|
|
3
|
+
import { XAxisConfig, type CurveType, type DataSet, type EdgePosition, type HighlightedRange, type LineSegment, type Pointer, type RuleType, type RulesConfig, type arrowConfigType, type referenceConfigType, type secondaryLineConfigType, type secondaryYAxisType, type Linecap, type IntersectionAreaConfig } from '../utils/types';
|
|
4
4
|
export interface LineChartPropsType {
|
|
5
5
|
height?: number;
|
|
6
6
|
overflowTop?: number;
|
|
@@ -302,6 +302,7 @@ export interface LineChartPropsType {
|
|
|
302
302
|
onChartAreaPress?: (event: GestureResponderEvent) => void;
|
|
303
303
|
onBackgroundPress?: (event: GestureResponderEvent) => void;
|
|
304
304
|
secondaryXAxis?: XAxisConfig;
|
|
305
|
+
intersectionAreaConfig?: IntersectionAreaConfig;
|
|
305
306
|
}
|
|
306
307
|
export interface lineDataItem {
|
|
307
308
|
value: number;
|
|
@@ -22,7 +22,10 @@ export interface StripAndLabelProps {
|
|
|
22
22
|
pointerStripColor: ColorValue;
|
|
23
23
|
pointerConfig?: Pointer;
|
|
24
24
|
pointerLabelComponent: Function | null;
|
|
25
|
-
secondaryPointerItem?: any
|
|
25
|
+
secondaryPointerItem?: any;
|
|
26
|
+
pointerItemsForSet?: any[];
|
|
27
|
+
secondaryPointerItemsForSet?: any[];
|
|
28
|
+
hasDataSet?: boolean;
|
|
26
29
|
scrollX: number;
|
|
27
30
|
pointerEvents?: PointerEvents;
|
|
28
31
|
width: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -36,4 +36,4 @@ export { type StripAndLabelProps } from './components/common/types';
|
|
|
36
36
|
/***********************************************************************************************************************/
|
|
37
37
|
export { getCumulativeWidth, getLighterColor, svgQuadraticCurvePath, svgPath, bezierCommand, getSegmentString, getCurvePathWithSegments, getPreviousSegmentsLastPoint, getPathWithHighlight, getRegionPathObjects, getSegmentedPathObjects, getArrowPoints, getAxesAndRulesProps, getExtendedContainerHeightWithPadding, getSecondaryDataWithOffsetIncluded, getArrowProperty, getAllArrowProperties, maxAndMinUtil, computeMaxAndMinItems, getLabelTextUtil, getXForLineInBar, getYForLineInBar, clone, getLineConfigForBarChart, adjustToOffset } from './utils';
|
|
38
38
|
export { chartTypes, yAxisSides, loc, SEGMENT_START, SEGMENT_END, RANGE_ENTER, RANGE_EXIT, STOP, ruleTypes, AxesAndRulesDefaults, defaultArrowConfig, BarDefaults, defaultLineConfig, LineDefaults, defaultPointerConfig, pieColors, populationDefaults, defaultAnimationDuration } from './utils/constants';
|
|
39
|
-
export { type RuleType, type RuleTypes, type RulesConfig, CurveType, EdgePosition, type LabelsPosition, type PointerEvents, type secondaryYAxisType, type secondaryLineConfigType, type referenceConfigType, type arrowConfigType, type horizSectionPropTypes, type HorizSectionsType, type BarAndLineChartsWrapperTypes, type Pointer, type HighlightedRange, type LineSegment, type LineSvgProps, type LineProperties, type DataSet, Framework, type XAxisConfig, type LineInBarChartPropsType, type DataPointProps, type Linecap } from './utils/types';
|
|
39
|
+
export { type RuleType, type RuleTypes, type RulesConfig, CurveType, EdgePosition, type LabelsPosition, type PointerEvents, type secondaryYAxisType, type secondaryLineConfigType, type referenceConfigType, type arrowConfigType, type horizSectionPropTypes, type HorizSectionsType, type BarAndLineChartsWrapperTypes, type Pointer, type HighlightedRange, type LineSegment, type LineSvgProps, type LineProperties, type DataSet, Framework, type XAxisConfig, type LineInBarChartPropsType, type DataPointProps, type Linecap, type IntersectionAreaConfig } from './utils/types';
|
package/dist/utils/index.js
CHANGED
|
@@ -883,10 +883,12 @@ export var getInterpolatedData = function (dataParam, showDataPointsForMissingVa
|
|
|
883
883
|
// 4. None has valid value -> this is already handled in preprocessing
|
|
884
884
|
var pre = data.slice(0, index);
|
|
885
885
|
var post = data.slice(index + 1, n);
|
|
886
|
-
var
|
|
886
|
+
var preCount = pre.length - 1;
|
|
887
|
+
var tempPreValidIndex = pre
|
|
887
888
|
.slice()
|
|
888
889
|
.reverse()
|
|
889
890
|
.findIndex(function (item) { return typeof item.value === 'number'; });
|
|
891
|
+
var preValidIndex = tempPreValidIndex >= 0 ? preCount - tempPreValidIndex : tempPreValidIndex;
|
|
890
892
|
var postValidInd = post.findIndex(function (item) { return typeof item.value === 'number'; });
|
|
891
893
|
var postValidIndex = postValidInd + index + 1;
|
|
892
894
|
var count, step;
|
|
@@ -903,10 +905,12 @@ export var getInterpolatedData = function (dataParam, showDataPointsForMissingVa
|
|
|
903
905
|
// 1. There's only 1 valid value in the pre -> this is already handled in preprocessing
|
|
904
906
|
// 2. There are more than valid values in pre
|
|
905
907
|
var secondPre = data.slice(0, preValidIndex);
|
|
906
|
-
var
|
|
908
|
+
var secondPreCount = pre.length - 1;
|
|
909
|
+
var tempSecondPreIndex = secondPre
|
|
907
910
|
.slice()
|
|
908
911
|
.reverse()
|
|
909
912
|
.findIndex(function (item) { return typeof item.value === 'number'; });
|
|
913
|
+
var secondPreIndex = tempSecondPreIndex >= 0 ? secondPreCount - tempSecondPreIndex : tempSecondPreIndex;
|
|
910
914
|
count = preValidIndex - secondPreIndex;
|
|
911
915
|
step = (data[secondPreIndex].value - data[preValidIndex].value) / count;
|
|
912
916
|
data[index].value =
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -357,6 +357,7 @@ export interface LineSvgProps {
|
|
|
357
357
|
stroke: string | ColorValue;
|
|
358
358
|
strokeWidth: number;
|
|
359
359
|
strokeDasharray?: number[];
|
|
360
|
+
clipPath?: string;
|
|
360
361
|
}
|
|
361
362
|
export interface LineProperties {
|
|
362
363
|
d: string;
|
|
@@ -394,4 +395,7 @@ export interface DataSet {
|
|
|
394
395
|
lineSegments?: LineSegment[];
|
|
395
396
|
isSecondary?: boolean;
|
|
396
397
|
}
|
|
398
|
+
export interface IntersectionAreaConfig {
|
|
399
|
+
fillColor?: ColorValue;
|
|
400
|
+
}
|
|
397
401
|
export {};
|