gifted-charts-core 0.1.21 → 0.1.22

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.
Files changed (86) hide show
  1. package/{src → dist}/LineChart/index.d.ts +0 -3
  2. package/{src → dist}/LineChart/index.js +5 -54
  3. package/{src → dist}/components/common/types.d.ts +9 -8
  4. package/{src → dist}/index.d.ts +1 -0
  5. package/package.json +4 -4
  6. package/src/BarChart/Animated2DWithGradient.js.map +0 -1
  7. package/src/BarChart/Animated2DWithGradient.ts +0 -192
  8. package/src/BarChart/RenderStackBars.js.map +0 -1
  9. package/src/BarChart/RenderStackBars.ts +0 -160
  10. package/src/BarChart/index.js.map +0 -1
  11. package/src/BarChart/index.ts +0 -909
  12. package/src/BarChart/types.js.map +0 -1
  13. package/src/BarChart/types.ts +0 -668
  14. package/src/LineChart/LineChartBiColor.js.map +0 -1
  15. package/src/LineChart/LineChartBiColor.ts +0 -613
  16. package/src/LineChart/index.js.map +0 -1
  17. package/src/LineChart/index.ts +0 -2205
  18. package/src/LineChart/types.js.map +0 -1
  19. package/src/LineChart/types.ts +0 -616
  20. package/src/PieChart/index.js.map +0 -1
  21. package/src/PieChart/index.ts +0 -180
  22. package/src/PieChart/main.js.map +0 -1
  23. package/src/PieChart/main.ts +0 -173
  24. package/src/PieChart/pro.ts +0 -309
  25. package/src/PieChart/types.js.map +0 -1
  26. package/src/PieChart/types.ts +0 -105
  27. package/src/PopulationPyramid/index.js.map +0 -1
  28. package/src/PopulationPyramid/index.ts +0 -365
  29. package/src/PopulationPyramid/types.js.map +0 -1
  30. package/src/PopulationPyramid/types.ts +0 -258
  31. package/src/components/AnimatedThreeDBar/index.js.map +0 -1
  32. package/src/components/AnimatedThreeDBar/index.ts +0 -60
  33. package/src/components/BarAndLineChartsWrapper/getHorizSectionsVals.js.map +0 -1
  34. package/src/components/BarAndLineChartsWrapper/getHorizSectionsVals.ts +0 -408
  35. package/src/components/BarAndLineChartsWrapper/index.js.map +0 -1
  36. package/src/components/BarAndLineChartsWrapper/index.ts +0 -408
  37. package/src/components/common/StripAndLabel.js.map +0 -1
  38. package/src/components/common/StripAndLabel.ts +0 -80
  39. package/src/components/common/types.ts +0 -32
  40. package/src/index.ts +0 -153
  41. package/src/utils/constants.js.map +0 -1
  42. package/src/utils/constants.ts +0 -349
  43. package/src/utils/index.js.map +0 -1
  44. package/src/utils/index.ts +0 -1563
  45. package/src/utils/types.js.map +0 -1
  46. package/src/utils/types.ts +0 -442
  47. /package/{src → dist}/BarChart/Animated2DWithGradient.d.ts +0 -0
  48. /package/{src → dist}/BarChart/Animated2DWithGradient.js +0 -0
  49. /package/{src → dist}/BarChart/RenderStackBars.d.ts +0 -0
  50. /package/{src → dist}/BarChart/RenderStackBars.js +0 -0
  51. /package/{src → dist}/BarChart/index.d.ts +0 -0
  52. /package/{src → dist}/BarChart/index.js +0 -0
  53. /package/{src → dist}/BarChart/types.d.ts +0 -0
  54. /package/{src → dist}/BarChart/types.js +0 -0
  55. /package/{src → dist}/LineChart/LineChartBiColor.d.ts +0 -0
  56. /package/{src → dist}/LineChart/LineChartBiColor.js +0 -0
  57. /package/{src → dist}/LineChart/types.d.ts +0 -0
  58. /package/{src → dist}/LineChart/types.js +0 -0
  59. /package/{src → dist}/PieChart/index.d.ts +0 -0
  60. /package/{src → dist}/PieChart/index.js +0 -0
  61. /package/{src → dist}/PieChart/main.d.ts +0 -0
  62. /package/{src → dist}/PieChart/main.js +0 -0
  63. /package/{src → dist}/PieChart/pro.d.ts +0 -0
  64. /package/{src → dist}/PieChart/pro.js +0 -0
  65. /package/{src → dist}/PieChart/types.d.ts +0 -0
  66. /package/{src → dist}/PieChart/types.js +0 -0
  67. /package/{src → dist}/PopulationPyramid/index.d.ts +0 -0
  68. /package/{src → dist}/PopulationPyramid/index.js +0 -0
  69. /package/{src → dist}/PopulationPyramid/types.d.ts +0 -0
  70. /package/{src → dist}/PopulationPyramid/types.js +0 -0
  71. /package/{src → dist}/components/AnimatedThreeDBar/index.d.ts +0 -0
  72. /package/{src → dist}/components/AnimatedThreeDBar/index.js +0 -0
  73. /package/{src → dist}/components/BarAndLineChartsWrapper/getHorizSectionsVals.d.ts +0 -0
  74. /package/{src → dist}/components/BarAndLineChartsWrapper/getHorizSectionsVals.js +0 -0
  75. /package/{src → dist}/components/BarAndLineChartsWrapper/index.d.ts +0 -0
  76. /package/{src → dist}/components/BarAndLineChartsWrapper/index.js +0 -0
  77. /package/{src → dist}/components/common/StripAndLabel.d.ts +0 -0
  78. /package/{src → dist}/components/common/StripAndLabel.js +0 -0
  79. /package/{src → dist}/components/common/types.js +0 -0
  80. /package/{src → dist}/index.js +0 -0
  81. /package/{src → dist}/utils/constants.d.ts +0 -0
  82. /package/{src → dist}/utils/constants.js +0 -0
  83. /package/{src → dist}/utils/index.d.ts +0 -0
  84. /package/{src → dist}/utils/index.js +0 -0
  85. /package/{src → dist}/utils/types.d.ts +0 -0
  86. /package/{src → dist}/utils/types.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":";;;;;;;YAYA,WAAY,SAAS;gBACnB,2CAAK,CAAA;gBACL,mDAAS,CAAA;YACX,CAAC,EAHW,SAAS,4BAAT,SAAS,SAGpB;YAED,WAAY,YAAY;gBACtB,uEAAgB,CAAA;gBAChB,yEAAiB,CAAA;gBACjB,yEAAiB,CAAA;YACnB,CAAC,EAJW,YAAY,+BAAZ,YAAY,SAIvB;QAwVD,CAAC"}
@@ -1,442 +0,0 @@
1
- import { type ColorValue } from 'react-native'
2
- import { type chartTypes, type yAxisSides } from './constants'
3
- import { type lineDataItem } from '../LineChart/types'
4
- import {
5
- lineConfigType,
6
- type barDataItem,
7
- type stackDataItem
8
- } from '../BarChart/types'
9
-
10
- export enum Framework {
11
- reactJS,
12
- reactNative
13
- }
14
-
15
- export type RuleType = 'solid' | 'dashed' | 'dotted' | string
16
-
17
- export type LabelsPosition = 'onBorder' | 'outward' | 'inward' | 'mid'
18
-
19
- export type Linecap = 'butt' | 'square' | 'round'
20
-
21
- export interface RuleTypes {
22
- SOLID: RuleType
23
- DASHED: RuleType
24
- DOTTED: RuleType
25
- }
26
-
27
- export enum CurveType {
28
- CUBIC,
29
- QUADRATIC
30
- }
31
-
32
- export enum EdgePosition {
33
- AFTER_DATA_POINT,
34
- AROUND_DATA_POINT,
35
- BEFORE_DATA_POINT
36
- }
37
-
38
- export interface RulesConfig {
39
- rulesLength?: number
40
- rulesColor?: ColorValue
41
- rulesThickness?: number
42
- rulesType?: RuleType
43
- dashWidth?: number
44
- dashGap?: number
45
- }
46
-
47
- export interface XAxisConfig {
48
- thickness?: number
49
- color?: ColorValue
50
- labelsDistanceFromXaxis?: number
51
- labelsHeight?: number
52
- labelsTextStyle?: any
53
- labelTexts?: string[]
54
- }
55
-
56
- export type PointerEvents = 'box-none' | 'none' | 'box-only' | 'auto'
57
-
58
- export interface secondaryYAxisType {
59
- noOfSections?: number
60
- maxValue?: number
61
- mostNegativeValue?: number
62
- stepValue?: number
63
- stepHeight?: number
64
- negativeStepValue?: number
65
- negativeStepHeight?: number
66
- showFractionalValues?: boolean
67
- roundToDigits?: number
68
- noOfSectionsBelowXAxis?: number
69
-
70
- showYAxisIndices?: boolean
71
- yAxisIndicesHeight?: number
72
- yAxisIndicesWidth?: number
73
- yAxisIndicesColor?: ColorValue
74
-
75
- yAxisSide?: yAxisSides
76
- yAxisOffset?: number
77
- yAxisThickness?: number
78
- yAxisColor?: ColorValue
79
- yAxisLabelContainerStyle?: any
80
- yAxisLabelTexts?: string[] | undefined
81
- yAxisTextStyle?: any
82
- yAxisTextNumberOfLines?: number
83
- yAxisLabelWidth?: number
84
- hideYAxisText?: boolean
85
- yAxisLabelPrefix?: string
86
- yAxisLabelSuffix?: string
87
- hideOrigin?: boolean
88
- formatYLabel?: (label: string) => string
89
- }
90
-
91
- export interface secondaryLineConfigType {
92
- zIndex?: number
93
- curved?: boolean
94
- curvature?: number
95
- curveType?: CurveType
96
- areaChart?: boolean
97
- color?: ColorValue
98
- thickness?: number
99
- zIndex1?: number
100
- strokeDashArray?: number[]
101
- startIndex?: number
102
- endIndex?: number
103
- hideDataPoints?: boolean
104
- dataPointsHeight?: number
105
- dataPointsWidth?: number
106
- dataPointsRadius?: number
107
- dataPointsColor?: string
108
- dataPointsShape?: string
109
- showValuesAsDataPointsText?: boolean
110
- startFillColor?: string
111
- endFillColor?: string
112
- startOpacity?: number
113
- endOpacity?: number
114
- textFontSize?: number
115
- textColor?: string
116
- showArrow?: boolean
117
- arrowConfig?: arrowConfigType
118
- isSecondary?: boolean
119
- }
120
-
121
- export interface ExtendedLineConfigType extends lineConfigType {
122
- startIndex: number
123
- endIndex: number
124
- dataPointsHeight: number
125
- }
126
-
127
- export interface LineInBarChartPropsType {
128
- yAxisLabelWidth: number
129
- initialSpacing: number
130
- spacing: number
131
- containerHeight: number
132
- lineConfig: ExtendedLineConfigType
133
- maxValue: number
134
- animatedWidth: number
135
- lineBehindBars: boolean
136
- points: any
137
- arrowPoints: any
138
- data: any[]
139
- totalWidth: number
140
- barWidth?: number
141
- labelsExtraHeight: number
142
- scrollEventThrottle: number
143
- xAxisLabelsVerticalShift: number
144
- selectedIndex: number
145
- }
146
-
147
- export interface DataPointProps {
148
- data: any[]
149
- lineConfig: ExtendedLineConfigType
150
- barWidth?: number
151
- containerHeight: number
152
- maxValue: number
153
- firstBarWidth: number
154
- yAxisLabelWidth: number
155
- spacing: number
156
- selectedIndex: number
157
- }
158
-
159
- export interface referenceConfigType {
160
- thickness?: number
161
- width?: number
162
- color?: ColorValue | string | any
163
- type?: string
164
- dashWidth?: number
165
- dashGap?: number
166
- labelText?: string
167
- labelTextStyle?: any
168
- zIndex?: number
169
- }
170
-
171
- export interface arrowConfigType {
172
- length: number
173
- width: number
174
- strokeWidth: number
175
- strokeColor: string
176
- fillColor: string
177
- showArrowBase: boolean
178
- }
179
-
180
- export interface horizSectionPropTypes {
181
- chartType: chartTypes
182
- width: number | undefined
183
- horizSections: any[]
184
- noOfSectionsBelowXAxis: number
185
- totalWidth: number
186
- endSpacing: number
187
- yAxisSide: yAxisSides
188
- horizontalRulesStyle: any
189
- noOfSections: number
190
- sectionColors?: ColorValue[]
191
- stepHeight: number
192
- negativeStepHeight: number
193
- yAxisLabelWidth: number
194
- yAxisLabelContainerStyle: any
195
- yAxisThickness: number
196
- trimYAxisAtTop: boolean
197
- yAxisColor: string
198
- yAxisExtraHeight: number
199
- xAxisThickness: number
200
- xAxisColor: string
201
- xAxisLength: number
202
- xAxisType: RuleType
203
- dashWidth: number
204
- dashGap: number
205
- rulesConfigArray: RulesConfig[]
206
- backgroundColor: string
207
- hideRules: boolean
208
- rulesLength: number
209
- rulesType: RuleType
210
- rulesThickness: number
211
- rulesColor: string
212
- spacing: number
213
- showYAxisIndices: boolean
214
- yAxisIndicesHeight: number
215
- yAxisIndicesWidth: number
216
- yAxisIndicesColor: string
217
-
218
- hideOrigin: boolean
219
- hideYAxisText: boolean
220
- showFractionalValues: boolean
221
- yAxisTextNumberOfLines: number
222
- yAxisLabelPrefix: string
223
- yAxisLabelSuffix: string
224
- yAxisTextStyle: any
225
- rotateYAxisTexts: number | undefined
226
- rtl: boolean
227
-
228
- containerHeight: number
229
- overflowTop: number
230
- maxValue: number
231
-
232
- referenceLinesConfig: any
233
-
234
- yAxisLabelTexts: string[] | undefined
235
- yAxisOffset: number | undefined
236
-
237
- horizontal: boolean
238
- yAxisAtTop: boolean
239
-
240
- stepValue: number
241
- negativeStepValue: number
242
- roundToDigits: number | undefined
243
-
244
- secondaryData: any[] | undefined
245
- secondaryYAxis: secondaryYAxisType | null
246
- formatYLabel?: (label: string) => string
247
- onlyReferenceLines?: boolean
248
- renderReferenceLines?: boolean
249
- secondaryXAxis?: XAxisConfig
250
- }
251
-
252
- interface HorizSectionObject {
253
- value: string
254
- }
255
-
256
- export type HorizSectionsType = HorizSectionObject[]
257
-
258
- export interface BarAndLineChartsWrapperTypes {
259
- chartType: chartTypes
260
- containerHeight: number
261
- noOfSectionsBelowXAxis: number
262
- sectionColors?: ColorValue[]
263
- stepHeight: number
264
- negativeStepHeight: number
265
- labelsExtraHeight: number
266
- yAxisLabelWidth: number
267
- horizontal: boolean
268
- rtl: boolean
269
- shiftX: number
270
- shiftY: number
271
- scrollRef?: any
272
- yAxisAtTop: boolean
273
- initialSpacing: number
274
- data: any[]
275
- stackData: any[] | undefined
276
- secondaryData: any[] | undefined
277
- barWidth: number | undefined
278
- xAxisThickness: number
279
- totalWidth: number
280
- disableScroll: boolean
281
- showScrollIndicator: boolean
282
- scrollToEnd: boolean
283
- scrollToIndex: number | undefined
284
- scrollAnimation: boolean
285
- indicatorColor: 'black' | 'default' | 'white' | undefined
286
- selectedIndex: number
287
- setSelectedIndex: any
288
- spacing: number
289
- showLine: boolean
290
- lineConfig: any
291
- lineConfig2: any
292
- maxValue: number
293
- lineData?: Array<lineDataItem | barDataItem | stackDataItem>
294
- lineData2?: Array<lineDataItem | barDataItem | stackDataItem>
295
- animatedWidth?: any
296
- lineBehindBars: boolean
297
- points: string | any[]
298
- points2: string | any[]
299
- arrowPoints: any
300
- renderChartContent?: any
301
- remainingScrollViewProps?: any
302
-
303
- width: number | undefined
304
- horizSections: HorizSectionsType
305
- endSpacing: number
306
- horizontalRulesStyle: any
307
- noOfSections: number
308
- showFractionalValues: boolean
309
- axesAndRulesProps: any
310
-
311
- yAxisLabelTexts: string[] | undefined
312
- yAxisOffset: number | undefined
313
- rotateYAxisTexts: number | undefined
314
- hideAxesAndRules: boolean | undefined
315
-
316
- showXAxisIndices: boolean
317
- xAxisIndicesHeight: number
318
- xAxisIndicesWidth: number
319
- xAxisIndicesColor: ColorValue
320
-
321
- pointerConfig?: Pointer
322
- getPointerProps: any
323
- pointerIndex: number
324
- pointerX: number
325
- pointerY: number
326
-
327
- scrollEventThrottle: number
328
-
329
- onEndReached?: () => void
330
- onStartReached?: () => void
331
- onMomentumScrollEnd?: Function
332
- endReachedOffset: number
333
- isRTL?: boolean
334
- extraWidthDueToDataPoint?: number
335
- nestedScrollEnabled?: boolean
336
- }
337
-
338
- export interface Pointer {
339
- height?: number
340
- width?: number
341
- radius?: number
342
- pointerColor?: ColorValue
343
- pointer1Color?: ColorValue
344
- pointer2Color?: ColorValue
345
- pointer3Color?: ColorValue
346
- pointer4Color?: ColorValue
347
- pointer5Color?: ColorValue
348
- pointerColorsForDataSet?: ColorValue[]
349
- secondaryPointerColor?: ColorValue
350
- pointerComponent?: Function
351
- showPointerStrip?: boolean
352
- pointerStripWidth?: number
353
- pointerStripHeight?: number
354
- pointerStripColor?: ColorValue
355
- pointerStripUptoDataPoint?: boolean
356
- pointerLabelComponent?: Function
357
- stripOverPointer?: boolean
358
- autoAdjustPointerLabelPosition?: boolean
359
- shiftPointerLabelX?: number
360
- shiftPointerLabelY?: number
361
- pointerLabelWidth?: number
362
- pointerLabelHeight?: number
363
- pointerVanishDelay?: number
364
- activatePointersOnLongPress?: boolean
365
- activatePointersDelay?: number
366
- initialPointerIndex?: number
367
- initialPointerAppearDelay?: number
368
- persistPointer?: boolean
369
- hidePointer1?: boolean
370
- hidePointer2?: boolean
371
- hidePointer3?: boolean
372
- hidePointer4?: boolean
373
- hidePointer5?: boolean
374
- hideSecondaryPointer?: boolean
375
- strokeDashArray?: number[]
376
- barTouchable?: boolean
377
- pointerEvents?: PointerEvents
378
- stripBehindBars?: boolean
379
- resetPointerOnDataChange?: boolean
380
- }
381
-
382
- export interface HighlightedRange {
383
- from: number
384
- to: number
385
- color?: string | ColorValue
386
- thickness?: number
387
- strokeDashArray?: number[]
388
- }
389
-
390
- export interface LineSegment {
391
- startIndex: number
392
- endIndex: number
393
- color?: string | ColorValue
394
- thickness?: number
395
- strokeDashArray?: number[]
396
- }
397
-
398
- export interface LineSvgProps {
399
- d: string
400
- fill: string
401
- stroke: string | ColorValue
402
- strokeWidth: number
403
- strokeDasharray?: number[]
404
- }
405
-
406
- export interface LineProperties {
407
- d: string
408
- color: string | ColorValue
409
- strokeWidth: number
410
- strokeDashArray?: number[]
411
- }
412
-
413
- export interface DataSet {
414
- data: lineDataItem[]
415
- zIndex?: number
416
- thickness?: number
417
- strokeDashArray?: number[]
418
- areaChart?: boolean
419
- stepChart?: boolean
420
- startIndex?: number
421
- endIndex?: number
422
- color?: string
423
- hideDataPoints?: boolean
424
- dataPointsHeight?: number
425
- dataPointsWidth?: number
426
- dataPointsRadius?: number
427
- dataPointsColor?: string
428
- dataPointsShape?: string
429
- startFillColor?: string
430
- endFillColor?: string
431
- startOpacity?: number
432
- endOpacity?: number
433
- textFontSize?: number
434
- textColor?: string
435
- showArrow?: boolean
436
- arrowConfig?: arrowConfigType
437
- curved?: boolean
438
- curvature?: number
439
- curveType?: CurveType
440
- lineSegments?: LineSegment[]
441
- isSecondary?: boolean
442
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes