gifted-charts-core 0.0.17 → 0.0.19

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 (43) hide show
  1. package/index.ts +136 -0
  2. package/package.json +3 -6
  3. package/src/LineChart/index.ts +22 -22
  4. package/src/PieChart/types.ts +6 -4
  5. package/index.js +0 -133
  6. package/src/BarChart/Animated2DWithGradient.js +0 -106
  7. package/src/BarChart/Animated2DWithGradient.js.map +0 -1
  8. package/src/BarChart/RenderStackBars.js +0 -97
  9. package/src/BarChart/RenderStackBars.js.map +0 -1
  10. package/src/BarChart/index.js +0 -599
  11. package/src/BarChart/index.js.map +0 -1
  12. package/src/BarChart/types.js +0 -10
  13. package/src/BarChart/types.js.map +0 -1
  14. package/src/LineChart/LineChartBiColor.js +0 -512
  15. package/src/LineChart/LineChartBiColor.js.map +0 -1
  16. package/src/LineChart/index.js +0 -1484
  17. package/src/LineChart/index.js.map +0 -1
  18. package/src/LineChart/types.js +0 -10
  19. package/src/LineChart/types.js.map +0 -1
  20. package/src/PieChart/index.js +0 -118
  21. package/src/PieChart/index.js.map +0 -1
  22. package/src/PieChart/main.js +0 -178
  23. package/src/PieChart/main.js.map +0 -1
  24. package/src/PieChart/types.js +0 -10
  25. package/src/PieChart/types.js.map +0 -1
  26. package/src/PopulationPyramid/index.js +0 -204
  27. package/src/PopulationPyramid/index.js.map +0 -1
  28. package/src/PopulationPyramid/types.js +0 -10
  29. package/src/PopulationPyramid/types.js.map +0 -1
  30. package/src/components/AnimatedThreeDBar/index.js +0 -55
  31. package/src/components/AnimatedThreeDBar/index.js.map +0 -1
  32. package/src/components/BarAndLineChartsWrapper/getHorizSectionsVals.js +0 -233
  33. package/src/components/BarAndLineChartsWrapper/getHorizSectionsVals.js.map +0 -1
  34. package/src/components/BarAndLineChartsWrapper/index.js +0 -269
  35. package/src/components/BarAndLineChartsWrapper/index.js.map +0 -1
  36. package/src/components/common/StripAndLabel.js +0 -69
  37. package/src/components/common/StripAndLabel.js.map +0 -1
  38. package/src/utils/constants.js +0 -315
  39. package/src/utils/constants.js.map +0 -1
  40. package/src/utils/index.js +0 -946
  41. package/src/utils/index.js.map +0 -1
  42. package/src/utils/types.js +0 -20
  43. package/src/utils/types.js.map +0 -1
@@ -1,204 +0,0 @@
1
- System.register(["../utils/constants"], function (exports_1, context_1) {
2
- "use strict";
3
- var constants_1, usePopulationPyramid;
4
- var __moduleName = context_1 && context_1.id;
5
- return {
6
- setters: [
7
- function (constants_1_1) {
8
- constants_1 = constants_1_1;
9
- }
10
- ],
11
- execute: function () {
12
- exports_1("usePopulationPyramid", usePopulationPyramid = function (props) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
14
- var _x = props.height, height = _x === void 0 ? constants_1.populationDefaults.height : _x, _y = props.width, width = _y === void 0 ? constants_1.populationDefaults.width : _y, _z = props.verticalMarginBetweenBars, verticalMarginBetweenBars = _z === void 0 ? constants_1.populationDefaults.verticalMarginBetweenBars : _z, _0 = props.barsMapToYAxisSections, barsMapToYAxisSections = _0 === void 0 ? constants_1.populationDefaults.barsMapToYAxisSections : _0, data = props.data, _1 = props.hideRules, hideRules = _1 === void 0 ? constants_1.AxesAndRulesDefaults.hideRules : _1, _2 = props.hideYAxisText, hideYAxisText = _2 === void 0 ? constants_1.AxesAndRulesDefaults.hideYAxisText : _2, _3 = props.yAxisColor, yAxisColor = _3 === void 0 ? constants_1.AxesAndRulesDefaults.yAxisColor : _3, _4 = props.yAxisThickness, yAxisThickness = _4 === void 0 ? constants_1.AxesAndRulesDefaults.yAxisThickness : _4, _5 = props.xAxisColor, xAxisColor = _5 === void 0 ? constants_1.AxesAndRulesDefaults.xAxisColor : _5, _6 = props.xAxisThickness, xAxisThickness = _6 === void 0 ? constants_1.AxesAndRulesDefaults.xAxisThickness : _6, _7 = props.xAxisType, xAxisType = _7 === void 0 ? constants_1.AxesAndRulesDefaults.xAxisType : _7, _8 = props.xAxisNoOfSections, xAxisNoOfSections = _8 === void 0 ? constants_1.populationDefaults.xAxisNoOfSections : _8, _9 = props.showXAxisIndices, showXAxisIndices = _9 === void 0 ? constants_1.populationDefaults.showXAxisIndices : _9, _10 = props.xAxisIndicesWidth, xAxisIndicesWidth = _10 === void 0 ? constants_1.populationDefaults.xAxisIndicesWidth : _10, _11 = props.xAxisIndicesHeight, xAxisIndicesHeight = _11 === void 0 ? constants_1.populationDefaults.xAxisIndicesHeight : _11, _12 = props.xAxisIndicesColor, xAxisIndicesColor = _12 === void 0 ? constants_1.populationDefaults.xAxisIndicesColor : _12, _13 = props.xAxisIndicesShiftY, xAxisIndicesShiftY = _13 === void 0 ? 0 : _13, _14 = props.showXAxisLabelTexts, showXAxisLabelTexts = _14 === void 0 ? constants_1.populationDefaults.showXAxisLabelTexts : _14, _15 = props.xAxisLabelFontSize, xAxisLabelFontSize = _15 === void 0 ? constants_1.populationDefaults.defaultFontSize : _15, _16 = props.xAxisLabelFontStyle, xAxisLabelFontStyle = _16 === void 0 ? constants_1.populationDefaults.defaultFontStyle : _16, _17 = props.xAxisLabelFontWeight, xAxisLabelFontWeight = _17 === void 0 ? constants_1.populationDefaults.defaultFontWeight : _17, _18 = props.xAxisLabelFontFamily, xAxisLabelFontFamily = _18 === void 0 ? constants_1.populationDefaults.defaultFontFamily : _18, _19 = props.xAxisLabelColor, xAxisLabelColor = _19 === void 0 ? constants_1.populationDefaults.defaultFontColor : _19, _20 = props.xAxisLabelShiftX, xAxisLabelShiftX = _20 === void 0 ? 0 : _20, _21 = props.xAxisLabelShiftY, xAxisLabelShiftY = _21 === void 0 ? 0 : _21, _22 = props.xAxisLabelPrefix, xAxisLabelPrefix = _22 === void 0 ? constants_1.populationDefaults.prefix : _22, _23 = props.xAxisLabelSuffix, xAxisLabelSuffix = _23 === void 0 ? constants_1.populationDefaults.suffix : _23, formatXAxisLabels = props.formatXAxisLabels, _24 = props.showVerticalLines, showVerticalLines = _24 === void 0 ? constants_1.populationDefaults.showVerticalLines : _24, _25 = props.verticalLinesColor, verticalLinesColor = _25 === void 0 ? constants_1.populationDefaults.verticalLinesColor : _25, _26 = props.verticalLinesThickness, verticalLinesThickness = _26 === void 0 ? constants_1.populationDefaults.verticalLinesThickness : _26, _27 = props.verticalLinesType, verticalLinesType = _27 === void 0 ? constants_1.populationDefaults.verticalLinesType : _27, _28 = props.verticalLinesStrokeDashArray, verticalLinesStrokeDashArray = _28 === void 0 ? constants_1.populationDefaults.verticalLinesStrokeDashArray : _28, _29 = props.showYAxisIndices, showYAxisIndices = _29 === void 0 ? constants_1.AxesAndRulesDefaults.showYAxisIndices : _29, _30 = props.yAxisIndicesWidth, yAxisIndicesWidth = _30 === void 0 ? constants_1.AxesAndRulesDefaults.yAxisIndicesWidth : _30, _31 = props.yAxisIndicesHeight, yAxisIndicesHeight = _31 === void 0 ? constants_1.AxesAndRulesDefaults.yAxisIndicesHeight : _31, _32 = props.yAxisIndicesColor, yAxisIndicesColor = _32 === void 0 ? constants_1.AxesAndRulesDefaults.yAxisIndicesColor : _32, _33 = props.yAxisLabelFontSize, yAxisLabelFontSize = _33 === void 0 ? constants_1.populationDefaults.defaultFontSize : _33, _34 = props.yAxisLabelFontStyle, yAxisLabelFontStyle = _34 === void 0 ? constants_1.populationDefaults.defaultFontStyle : _34, _35 = props.yAxisLabelFontWeight, yAxisLabelFontWeight = _35 === void 0 ? constants_1.populationDefaults.defaultFontWeight : _35, _36 = props.yAxisLabelFontFamily, yAxisLabelFontFamily = _36 === void 0 ? constants_1.populationDefaults.defaultFontFamily : _36, _37 = props.yAxisLabelColor, yAxisLabelColor = _37 === void 0 ? constants_1.populationDefaults.defaultFontColor : _37, _38 = props.yAxisLabelTextMarginRight, yAxisLabelTextMarginRight = _38 === void 0 ? constants_1.populationDefaults.yAxisLabelTextMarginRight : _38, _39 = props.yAxisLabelTexts, yAxisLabelTexts = _39 === void 0 ? [] : _39, _40 = props.showValuesAsBarLabels, showValuesAsBarLabels = _40 === void 0 ? constants_1.populationDefaults.showValuesAsBarLabels : _40, _41 = props.rulesThickness, rulesThickness = _41 === void 0 ? constants_1.AxesAndRulesDefaults.rulesThickness : _41, _42 = props.rulesColor, rulesColor = _42 === void 0 ? constants_1.AxesAndRulesDefaults.rulesColor : _42, _43 = props.rulesType, rulesType = _43 === void 0 ? constants_1.AxesAndRulesDefaults.rulesType : _43, _44 = props.dashWidth, dashWidth = _44 === void 0 ? constants_1.AxesAndRulesDefaults.dashWidth : _44, _45 = props.dashGap, dashGap = _45 === void 0 ? constants_1.AxesAndRulesDefaults.dashGap : _45, _46 = props.leftBarLabelWidth, leftBarLabelWidth = _46 === void 0 ? constants_1.populationDefaults.leftBarLabelWidth : _46, _47 = props.leftBarLabelFontSize, leftBarLabelFontSize = _47 === void 0 ? (_a = props.barLabelFontSize) !== null && _a !== void 0 ? _a : constants_1.populationDefaults.defaultFontSize : _47, _48 = props.leftBarLabelColor, leftBarLabelColor = _48 === void 0 ? (_b = props.barLabelColor) !== null && _b !== void 0 ? _b : constants_1.populationDefaults.defaultFontColor : _48, _49 = props.leftBarLabelFontStyle, leftBarLabelFontStyle = _49 === void 0 ? (_c = props.barLabelFontStyle) !== null && _c !== void 0 ? _c : constants_1.populationDefaults.defaultFontStyle : _49, _50 = props.leftBarLabelFontWeight, leftBarLabelFontWeight = _50 === void 0 ? (_d = props.barLabelFontWeight) !== null && _d !== void 0 ? _d : constants_1.populationDefaults.defaultFontWeight : _50, _51 = props.leftBarLabelFontFamily, leftBarLabelFontFamily = _51 === void 0 ? (_e = props.barLabelFontFamily) !== null && _e !== void 0 ? _e : constants_1.populationDefaults.defaultFontFamily : _51, _52 = props.leftBarLabelPrefix, leftBarLabelPrefix = _52 === void 0 ? constants_1.populationDefaults.prefix : _52, _53 = props.leftBarLabelSuffix, leftBarLabelSuffix = _53 === void 0 ? constants_1.populationDefaults.suffix : _53, _54 = props.rightBarLabelWidth, rightBarLabelWidth = _54 === void 0 ? constants_1.populationDefaults.rightBarLabelWidth : _54, _55 = props.rightBarLabelFontSize, rightBarLabelFontSize = _55 === void 0 ? (_f = props.barLabelFontSize) !== null && _f !== void 0 ? _f : constants_1.populationDefaults.defaultFontSize : _55, _56 = props.rightBarLabelColor, rightBarLabelColor = _56 === void 0 ? (_g = props.barLabelColor) !== null && _g !== void 0 ? _g : constants_1.populationDefaults.defaultFontColor : _56, _57 = props.rightBarLabelFontStyle, rightBarLabelFontStyle = _57 === void 0 ? (_h = props.barLabelFontStyle) !== null && _h !== void 0 ? _h : constants_1.populationDefaults.defaultFontStyle : _57, _58 = props.rightBarLabelFontWeight, rightBarLabelFontWeight = _58 === void 0 ? (_j = props.barLabelFontWeight) !== null && _j !== void 0 ? _j : constants_1.populationDefaults.defaultFontWeight : _58, _59 = props.rightBarLabelFontFamily, rightBarLabelFontFamily = _59 === void 0 ? (_k = props.barLabelFontFamily) !== null && _k !== void 0 ? _k : constants_1.populationDefaults.defaultFontFamily : _59, _60 = props.rightBarLabelPrefix, rightBarLabelPrefix = _60 === void 0 ? constants_1.populationDefaults.prefix : _60, _61 = props.rightBarLabelSuffix, rightBarLabelSuffix = _61 === void 0 ? constants_1.populationDefaults.suffix : _61, formatBarLabels = props.formatBarLabels, _62 = props.showMidAxis, showMidAxis = _62 === void 0 ? constants_1.populationDefaults.showMidAxis : _62, _63 = props.midAxisLabelWidth, midAxisLabelWidth = _63 === void 0 ? constants_1.populationDefaults.midAxisLabelWidth : _63, _64 = props.midAxisLabelFontSize, midAxisLabelFontSize = _64 === void 0 ? constants_1.populationDefaults.defaultFontSize : _64, _65 = props.midAxisLabelColor, midAxisLabelColor = _65 === void 0 ? constants_1.populationDefaults.defaultFontColor : _65, _66 = props.midAxisLabelFontStyle, midAxisLabelFontStyle = _66 === void 0 ? constants_1.populationDefaults.defaultFontStyle : _66, _67 = props.midAxisLabelFontWeight, midAxisLabelFontWeight = _67 === void 0 ? constants_1.populationDefaults.defaultFontWeight : _67, _68 = props.midAxisLabelFontFamily, midAxisLabelFontFamily = _68 === void 0 ? constants_1.populationDefaults.defaultFontFamily : _68, _69 = props.leftBarColor, leftBarColor = _69 === void 0 ? constants_1.populationDefaults.leftBarColor : _69, _70 = props.rightBarColor, rightBarColor = _70 === void 0 ? constants_1.populationDefaults.rightBarColor : _70, _71 = props.leftBarBorderColor, leftBarBorderColor = _71 === void 0 ? constants_1.populationDefaults.leftBarBorderColor : _71, _72 = props.rightBarBorderColor, rightBarBorderColor = _72 === void 0 ? constants_1.populationDefaults.rightBarBorderColor : _72, _73 = props.leftBarBorderWidth, leftBarBorderWidth = _73 === void 0 ? (_l = props.barBorderWidth) !== null && _l !== void 0 ? _l : constants_1.populationDefaults.leftBarBorderWidth : _73, _74 = props.rightBarBorderWidth, rightBarBorderWidth = _74 === void 0 ? (_m = props.barBorderWidth) !== null && _m !== void 0 ? _m : constants_1.populationDefaults.rightBarBorderWidth : _74, _75 = props.leftBarBorderRadius, leftBarBorderRadius = _75 === void 0 ? (_o = props.barBorderRadius) !== null && _o !== void 0 ? _o : constants_1.populationDefaults.leftBarBorderRadius : _75, _76 = props.rightBarBorderRadius, rightBarBorderRadius = _76 === void 0 ? (_p = props.barBorderRadius) !== null && _p !== void 0 ? _p : constants_1.populationDefaults.rightBarBorderRadius : _76, _77 = props.allCornersRounded, allCornersRounded = _77 === void 0 ? constants_1.populationDefaults.allCornersRounded : _77, _78 = props.showSurplus, showSurplus = _78 === void 0 ? constants_1.populationDefaults.showSurplus : _78, _79 = props.showSurplusLeft, showSurplusLeft = _79 === void 0 ? constants_1.populationDefaults.showSurplusLeft : _79, _80 = props.showSurplusRight, showSurplusRight = _80 === void 0 ? constants_1.populationDefaults.showSurplusRight : _80, _81 = props.leftSurplusColor, leftSurplusColor = _81 === void 0 ? constants_1.populationDefaults.leftSurplusColor : _81, _82 = props.leftSurplusBorderColor, leftSurplusBorderColor = _82 === void 0 ? constants_1.populationDefaults.leftSurplusBorderColor : _82, _83 = props.rightSurplusColor, rightSurplusColor = _83 === void 0 ? constants_1.populationDefaults.rightSurplusColor : _83, _84 = props.rightSurplusBorderColor, rightSurplusBorderColor = _84 === void 0 ? constants_1.populationDefaults.rightSurplusBorderColor : _84, _85 = props.leftSurplusBorderWidth, leftSurplusBorderWidth = _85 === void 0 ? constants_1.populationDefaults.leftSurplusBorderWidth : _85, _86 = props.rightSurplusBorderWidth, rightSurplusBorderWidth = _86 === void 0 ? constants_1.populationDefaults.rightSurplusBorderWidth : _86;
15
- var yAxisLabelWidth = hideYAxisText
16
- ? yAxisThickness
17
- : (_q = props.yAxisLabelWidth) !== null && _q !== void 0 ? _q : constants_1.AxesAndRulesDefaults.yAxisLabelWidth;
18
- var noOfSections = (_r = props.noOfSections) !== null && _r !== void 0 ? _r : data.length;
19
- var containerHeight = props.stepHeight
20
- ? props.stepHeight * noOfSections
21
- : height;
22
- var stepHeight = (_s = props.stepHeight) !== null && _s !== void 0 ? _s : containerHeight / noOfSections;
23
- var xAxisLabelsHeight = 80;
24
- var containerHeightWithXaxisLabels = containerHeight + xAxisLabelsHeight;
25
- var mid = (width + yAxisLabelWidth) / 2;
26
- var leftMax = Math.max.apply(Math, data.map(function (item) { return item.left; }));
27
- var rightMax = Math.max.apply(Math, data.map(function (item) { return item.right; }));
28
- var max = Math.max(leftMax, rightMax);
29
- var xAxisRoundToDigits = (_t = props.xAxisRoundToDigits) !== null && _t !== void 0 ? _t : (max < 0.1 ? 3 : max < 1 ? 2 : max < 10 ? 1 : 0);
30
- var midAxisAndLabelWidth = (showMidAxis ? midAxisLabelWidth : 0) / 2 +
31
- Math.max(leftBarLabelWidth, rightBarLabelWidth);
32
- var barWidthFactor = ((width - yAxisLabelWidth) / 2 - midAxisAndLabelWidth) / max;
33
- var leftXAfterMid = mid - (showMidAxis ? midAxisLabelWidth / 2 : 0);
34
- var rightXAfterMid = mid + (showMidAxis ? midAxisLabelWidth / 2 : 0);
35
- var yAxisLineProps = {
36
- x1: yAxisLabelWidth,
37
- y1: 0,
38
- x2: yAxisLabelWidth,
39
- y2: containerHeight,
40
- stroke: yAxisColor,
41
- strokeWidth: yAxisThickness,
42
- };
43
- if (((_u = props.yAxisStrokeDashArray) === null || _u === void 0 ? void 0 : _u.length) === 2) {
44
- yAxisLineProps.strokeDasharray = props.yAxisStrokeDashArray;
45
- }
46
- var midAxisLineCommonProps = {
47
- y1: 0,
48
- y2: containerHeight,
49
- strokeWidth: (_v = props.midAxisThickness) !== null && _v !== void 0 ? _v : yAxisThickness,
50
- };
51
- if (((_w = props.midAxisStrokeDashArray) === null || _w === void 0 ? void 0 : _w.length) === 2) {
52
- midAxisLineCommonProps.strokeDasharray = props.midAxisStrokeDashArray;
53
- }
54
- var xAxisLabelY = containerHeight + xAxisLabelFontSize + 6 + xAxisLabelShiftY;
55
- var xAxisIndicesCommonProps = {
56
- y1: containerHeight - xAxisIndicesHeight / 2 + xAxisIndicesShiftY,
57
- y2: containerHeight + xAxisIndicesHeight / 2 + xAxisIndicesShiftY,
58
- stroke: xAxisIndicesColor,
59
- strokeWidth: xAxisIndicesWidth,
60
- };
61
- var verticalLinesCommonProps = {
62
- y1: 0,
63
- y2: containerHeight,
64
- stroke: verticalLinesColor,
65
- strokeWidth: verticalLinesThickness,
66
- };
67
- if (verticalLinesType !== constants_1.ruleTypes.SOLID) {
68
- verticalLinesCommonProps.strokeDasharray = verticalLinesStrokeDashArray;
69
- }
70
- var xAxisLabelsCommonProps = {
71
- y: xAxisLabelY + xAxisLabelShiftY,
72
- stroke: xAxisLabelColor,
73
- fontSize: xAxisLabelFontSize,
74
- fontStyle: xAxisLabelFontStyle,
75
- fontWeight: xAxisLabelFontWeight,
76
- fontFamily: xAxisLabelFontFamily,
77
- };
78
- var getXLabel = function (index) {
79
- return ((leftXAfterMid * index) / xAxisNoOfSections / barWidthFactor)
80
- .toFixed(xAxisRoundToDigits)
81
- .toString();
82
- };
83
- return {
84
- height: height,
85
- width: width,
86
- verticalMarginBetweenBars: verticalMarginBetweenBars,
87
- barsMapToYAxisSections: barsMapToYAxisSections,
88
- data: data,
89
- hideRules: hideRules,
90
- hideYAxisText: hideYAxisText,
91
- yAxisColor: yAxisColor,
92
- yAxisThickness: yAxisThickness,
93
- xAxisColor: xAxisColor,
94
- xAxisThickness: xAxisThickness,
95
- xAxisType: xAxisType,
96
- xAxisNoOfSections: xAxisNoOfSections,
97
- showXAxisIndices: showXAxisIndices,
98
- xAxisIndicesWidth: xAxisIndicesWidth,
99
- xAxisIndicesHeight: xAxisIndicesHeight,
100
- xAxisIndicesColor: xAxisIndicesColor,
101
- xAxisIndicesShiftY: xAxisIndicesShiftY,
102
- showXAxisLabelTexts: showXAxisLabelTexts,
103
- xAxisLabelFontSize: xAxisLabelFontSize,
104
- xAxisLabelFontStyle: xAxisLabelFontStyle,
105
- xAxisLabelFontWeight: xAxisLabelFontWeight,
106
- xAxisLabelFontFamily: xAxisLabelFontFamily,
107
- xAxisLabelColor: xAxisLabelColor,
108
- xAxisLabelShiftX: xAxisLabelShiftX,
109
- xAxisLabelShiftY: xAxisLabelShiftY,
110
- xAxisLabelPrefix: xAxisLabelPrefix,
111
- xAxisLabelSuffix: xAxisLabelSuffix,
112
- formatXAxisLabels: formatXAxisLabels,
113
- showVerticalLines: showVerticalLines,
114
- verticalLinesColor: verticalLinesColor,
115
- verticalLinesThickness: verticalLinesThickness,
116
- verticalLinesType: verticalLinesType,
117
- verticalLinesStrokeDashArray: verticalLinesStrokeDashArray,
118
- showYAxisIndices: showYAxisIndices,
119
- yAxisIndicesWidth: yAxisIndicesWidth,
120
- yAxisIndicesHeight: yAxisIndicesHeight,
121
- yAxisIndicesColor: yAxisIndicesColor,
122
- yAxisLabelFontSize: yAxisLabelFontSize,
123
- yAxisLabelFontStyle: yAxisLabelFontStyle,
124
- yAxisLabelFontWeight: yAxisLabelFontWeight,
125
- yAxisLabelFontFamily: yAxisLabelFontFamily,
126
- yAxisLabelColor: yAxisLabelColor,
127
- yAxisLabelTextMarginRight: yAxisLabelTextMarginRight,
128
- yAxisLabelTexts: yAxisLabelTexts,
129
- showValuesAsBarLabels: showValuesAsBarLabels,
130
- rulesThickness: rulesThickness,
131
- rulesColor: rulesColor,
132
- rulesType: rulesType,
133
- dashWidth: dashWidth,
134
- dashGap: dashGap,
135
- leftBarLabelWidth: leftBarLabelWidth,
136
- leftBarLabelFontSize: leftBarLabelFontSize,
137
- leftBarLabelColor: leftBarLabelColor,
138
- leftBarLabelFontStyle: leftBarLabelFontStyle,
139
- leftBarLabelFontWeight: leftBarLabelFontWeight,
140
- leftBarLabelFontFamily: leftBarLabelFontFamily,
141
- leftBarLabelPrefix: leftBarLabelPrefix,
142
- leftBarLabelSuffix: leftBarLabelSuffix,
143
- rightBarLabelWidth: rightBarLabelWidth,
144
- rightBarLabelFontSize: rightBarLabelFontSize,
145
- rightBarLabelColor: rightBarLabelColor,
146
- rightBarLabelFontStyle: rightBarLabelFontStyle,
147
- rightBarLabelFontWeight: rightBarLabelFontWeight,
148
- rightBarLabelFontFamily: rightBarLabelFontFamily,
149
- rightBarLabelPrefix: rightBarLabelPrefix,
150
- rightBarLabelSuffix: rightBarLabelSuffix,
151
- formatBarLabels: formatBarLabels,
152
- showMidAxis: showMidAxis,
153
- midAxisLabelWidth: midAxisLabelWidth,
154
- midAxisLabelFontSize: midAxisLabelFontSize,
155
- midAxisLabelColor: midAxisLabelColor,
156
- midAxisLabelFontStyle: midAxisLabelFontStyle,
157
- midAxisLabelFontWeight: midAxisLabelFontWeight,
158
- midAxisLabelFontFamily: midAxisLabelFontFamily,
159
- leftBarColor: leftBarColor,
160
- rightBarColor: rightBarColor,
161
- leftBarBorderColor: leftBarBorderColor,
162
- rightBarBorderColor: rightBarBorderColor,
163
- leftBarBorderWidth: leftBarBorderWidth,
164
- rightBarBorderWidth: rightBarBorderWidth,
165
- leftBarBorderRadius: leftBarBorderRadius,
166
- rightBarBorderRadius: rightBarBorderRadius,
167
- allCornersRounded: allCornersRounded,
168
- showSurplus: showSurplus,
169
- showSurplusLeft: showSurplusLeft,
170
- showSurplusRight: showSurplusRight,
171
- leftSurplusColor: leftSurplusColor,
172
- leftSurplusBorderColor: leftSurplusBorderColor,
173
- rightSurplusColor: rightSurplusColor,
174
- rightSurplusBorderColor: rightSurplusBorderColor,
175
- leftSurplusBorderWidth: leftSurplusBorderWidth,
176
- rightSurplusBorderWidth: rightSurplusBorderWidth,
177
- yAxisLabelWidth: yAxisLabelWidth,
178
- noOfSections: noOfSections,
179
- containerHeight: containerHeight,
180
- stepHeight: stepHeight,
181
- xAxisLabelsHeight: xAxisLabelsHeight,
182
- containerHeightWithXaxisLabels: containerHeightWithXaxisLabels,
183
- mid: mid,
184
- leftMax: leftMax,
185
- rightMax: rightMax,
186
- max: max,
187
- xAxisRoundToDigits: xAxisRoundToDigits,
188
- midAxisAndLabelWidth: midAxisAndLabelWidth,
189
- barWidthFactor: barWidthFactor,
190
- leftXAfterMid: leftXAfterMid,
191
- rightXAfterMid: rightXAfterMid,
192
- yAxisLineProps: yAxisLineProps,
193
- midAxisLineCommonProps: midAxisLineCommonProps,
194
- xAxisLabelY: xAxisLabelY,
195
- xAxisIndicesCommonProps: xAxisIndicesCommonProps,
196
- verticalLinesCommonProps: verticalLinesCommonProps,
197
- xAxisLabelsCommonProps: xAxisLabelsCommonProps,
198
- getXLabel: getXLabel,
199
- };
200
- });
201
- }
202
- };
203
- });
204
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;YAOA,kCAAa,oBAAoB,GAAG,UAAC,KAAiC;;gBAElE,IAAA,KAoHE,KAAK,OApH2B,EAAlC,MAAM,mBAAG,8BAAkB,CAAC,MAAM,KAAA,EAClC,KAmHE,KAAK,MAnHyB,EAAhC,KAAK,mBAAG,8BAAkB,CAAC,KAAK,KAAA,EAChC,KAkHE,KAAK,0BAlHiE,EAAxE,yBAAyB,mBAAG,8BAAkB,CAAC,yBAAyB,KAAA,EACxE,KAiHE,KAAK,uBAjH2D,EAAlE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,mBAAA;oBACjB,qBAAqB,uBAAA;oBACrB,sBAAsB,wBAAA;oBACtB,sBAAsB,wBAAA;oBACtB,YAAY,cAAA;oBACZ,aAAa,eAAA;oBACb,kBAAkB,oBAAA;oBAClB,mBAAmB,qBAAA;oBACnB,kBAAkB,oBAAA;oBAClB,mBAAmB,qBAAA;oBACnB,mBAAmB,qBAAA;oBACnB,oBAAoB,sBAAA;oBACpB,iBAAiB,mBAAA;oBACjB,WAAW,aAAA;oBACX,eAAe,iBAAA;oBACf,gBAAgB,kBAAA;oBAChB,gBAAgB,kBAAA;oBAChB,sBAAsB,wBAAA;oBACtB,iBAAiB,mBAAA;oBACjB,uBAAuB,yBAAA;oBACvB,sBAAsB,wBAAA;oBACtB,uBAAuB,yBAAA;oBACvB,eAAe,iBAAA;oBACf,YAAY,cAAA;oBACZ,eAAe,iBAAA;oBACf,UAAU,YAAA;oBACV,iBAAiB,mBAAA;oBACjB,8BAA8B,gCAAA;oBAC9B,GAAG,KAAA;oBACH,OAAO,SAAA;oBACP,QAAQ,UAAA;oBACR,GAAG,KAAA;oBACH,kBAAkB,oBAAA;oBAClB,oBAAoB,sBAAA;oBACpB,cAAc,gBAAA;oBACd,aAAa,eAAA;oBACb,cAAc,gBAAA;oBACd,cAAc,gBAAA;oBACd,sBAAsB,wBAAA;oBACtB,WAAW,aAAA;oBACX,uBAAuB,yBAAA;oBACvB,wBAAwB,0BAAA;oBACxB,sBAAsB,wBAAA;oBACtB,SAAS,WAAA;iBACV,CAAC;YACJ,CAAC,EAAC;QACF,CAAC"}
@@ -1,10 +0,0 @@
1
- System.register([], function (exports_1, context_1) {
2
- "use strict";
3
- var __moduleName = context_1 && context_1.id;
4
- return {
5
- setters: [],
6
- execute: function () {
7
- }
8
- };
9
- });
10
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":";;;;;;QAuMC,CAAC"}
@@ -1,55 +0,0 @@
1
- System.register(["react", "../../utils/constants", "../../utils"], function (exports_1, context_1) {
2
- "use strict";
3
- var react_1, constants_1, utils_1, useAnimatedThreeDBar;
4
- var __moduleName = context_1 && context_1.id;
5
- return {
6
- setters: [
7
- function (react_1_1) {
8
- react_1 = react_1_1;
9
- },
10
- function (constants_1_1) {
11
- constants_1 = constants_1_1;
12
- },
13
- function (utils_1_1) {
14
- utils_1 = utils_1_1;
15
- }
16
- ],
17
- execute: function () {
18
- exports_1("useAnimatedThreeDBar", useAnimatedThreeDBar = function (props) {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
20
- var focusBarOnPress = props.focusBarOnPress, index = props.index, selectedIndex = props.selectedIndex, focusedBarConfig = props.focusedBarConfig, item = props.item;
21
- var isFocused = focusBarOnPress && index === selectedIndex;
22
- var localFrontColor = props.frontColor || constants_1.BarDefaults.threeDBarFrontColor;
23
- var localGradientColor = props.gradientColor || constants_1.BarDefaults.threeDBarGradientColor;
24
- var localSideColor = props.sideColor || constants_1.BarDefaults.threeDBarSideColor;
25
- var localTopColor = props.topColor || constants_1.BarDefaults.threeDBarTopColor;
26
- var localOpacity = props.opacity || 1;
27
- var isAnimated = props.isAnimated, _o = props.showGradient, showGradient = _o === void 0 ? props.showGradient || false : _o, _p = props.gradientColor, gradientColor = _p === void 0 ? isFocused
28
- ? (_a = focusedBarConfig === null || focusedBarConfig === void 0 ? void 0 : focusedBarConfig.gradientColor) !== null && _a !== void 0 ? _a : localGradientColor
29
- : localGradientColor : _p, _q = props.frontColor, frontColor = _q === void 0 ? isFocused
30
- ? (_b = focusedBarConfig === null || focusedBarConfig === void 0 ? void 0 : focusedBarConfig.color) !== null && _b !== void 0 ? _b : localFrontColor
31
- : localFrontColor : _q, _r = props.sideColor, sideColor = _r === void 0 ? utils_1.getBarSideColor(isFocused, focusedBarConfig, item.sideColor, localSideColor) : _r, _s = props.topColor, topColor = _s === void 0 ? utils_1.getBarTopColor(isFocused, focusBarOnPress, item.topColor, localTopColor) : _s, _t = props.opacity, opacity = _t === void 0 ? isFocused
32
- ? (_c = focusedBarConfig === null || focusedBarConfig === void 0 ? void 0 : focusedBarConfig.opacity) !== null && _c !== void 0 ? _c : localOpacity
33
- : localOpacity : _t;
34
- var _u = react_1.useState(isAnimated), initialRender = _u[0], setInitialRender = _u[1];
35
- return {
36
- showGradient: showGradient,
37
- gradientColor: gradientColor,
38
- frontColor: ((_f = (_e = (_d = frontColor === null || frontColor === void 0 ? void 0 : frontColor.toString()) === null || _d === void 0 ? void 0 : _d.trim) === null || _e === void 0 ? void 0 : _e.call(_d)) === null || _f === void 0 ? void 0 : _f.length)
39
- ? frontColor
40
- : constants_1.BarDefaults.threeDBarFrontColor,
41
- sideColor: ((_j = (_h = (_g = sideColor === null || sideColor === void 0 ? void 0 : sideColor.toString()) === null || _g === void 0 ? void 0 : _g.trim) === null || _h === void 0 ? void 0 : _h.call(_g)) === null || _j === void 0 ? void 0 : _j.length)
42
- ? sideColor
43
- : constants_1.BarDefaults.threeDBarSideColor,
44
- topColor: ((_m = (_l = (_k = topColor === null || topColor === void 0 ? void 0 : topColor.toString()) === null || _k === void 0 ? void 0 : _k.trim) === null || _l === void 0 ? void 0 : _l.call(_k)) === null || _m === void 0 ? void 0 : _m.length)
45
- ? topColor
46
- : constants_1.BarDefaults.threeDBarTopColor,
47
- opacity: opacity,
48
- initialRender: initialRender,
49
- setInitialRender: setInitialRender,
50
- };
51
- });
52
- }
53
- };
54
- });
55
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;YAKA,kCAAa,oBAAoB,GAAG,UAAC,KAA2B;;gBACtD,IAAA,eAAe,GACrB,KAAK,gBADgB,EAAE,KAAK,GAC5B,KAAK,MADuB,EAAE,aAAa,GAC3C,KAAK,cADsC,EAAE,gBAAgB,GAC7D,KAAK,iBADwD,EAAE,IAAI,GACnE,KAAK,KAD8D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MAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,OAAO,mCAAI,YAAY;oBAC3C,CAAC,CAAC,YAAY,KAAA,CACR;gBAEJ,IAAA,KAAoC,gBAAQ,CAAC,UAAU,CAAC,EAAvD,aAAa,QAAA,EAAE,gBAAgB,QAAwB,CAAC;gBAE/D,OAAO;oBACL,YAAY,cAAA;oBACZ,aAAa,eAAA;oBACb,UAAU,EAAE,CAAA,MAAA,MAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,QAAQ,EAAE,0CAAE,IAAI,kDAAI,0CAAE,MAAM;wBAClD,CAAC,CAAC,UAAU;wBACZ,CAAC,CAAC,uBAAW,CAAC,mBAAmB;oBACnC,SAAS,EAAE,CAAA,MAAA,MAAA,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,EAAE,0CAAE,IAAI,kDAAI,0CAAE,MAAM;wBAChD,CAAC,CAAC,SAAS;wBACX,CAAC,CAAC,uBAAW,CAAC,kBAAkB;oBAClC,QAAQ,EAAE,CAAA,MAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,EAAE,0CAAE,IAAI,kDAAI,0CAAE,MAAM;wBAC9C,CAAC,CAAC,QAAQ;wBACV,CAAC,CAAC,uBAAW,CAAC,iBAAiB;oBACjC,OAAO,SAAA;oBACP,aAAa,eAAA;oBACb,gBAAgB,kBAAA;iBACjB,CAAC;YACJ,CAAC,EAAC;QACF,CAAC"}
@@ -1,233 +0,0 @@
1
- System.register(["../../utils/constants", "../../utils"], function (exports_1, context_1) {
2
- "use strict";
3
- var constants_1, utils_1, getHorizSectionVals;
4
- var __moduleName = context_1 && context_1.id;
5
- return {
6
- setters: [
7
- function (constants_1_1) {
8
- constants_1 = constants_1_1;
9
- },
10
- function (utils_1_1) {
11
- utils_1 = utils_1_1;
12
- }
13
- ],
14
- execute: function () {
15
- exports_1("getHorizSectionVals", getHorizSectionVals = function (props) {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19;
17
- var width = props.width, noOfSectionsBelowXAxis = props.noOfSectionsBelowXAxis, totalWidth = props.totalWidth, endSpacing = props.endSpacing, yAxisSide = props.yAxisSide, noOfSections = props.noOfSections, yAxisLabelWidth = props.yAxisLabelWidth, yAxisLabelContainerStyle = props.yAxisLabelContainerStyle, yAxisThickness = props.yAxisThickness, yAxisColor = props.yAxisColor, yAxisExtraHeight = props.yAxisExtraHeight, trimYAxisAtTop = props.trimYAxisAtTop, dashWidth = props.dashWidth, dashGap = props.dashGap, rulesType = props.rulesType, rulesThickness = props.rulesThickness, spacing = props.spacing, showYAxisIndices = props.showYAxisIndices, yAxisIndicesHeight = props.yAxisIndicesHeight, yAxisIndicesWidth = props.yAxisIndicesWidth, yAxisIndicesColor = props.yAxisIndicesColor, hideOrigin = props.hideOrigin, hideYAxisText = props.hideYAxisText, showFractionalValues = props.showFractionalValues, yAxisTextNumberOfLines = props.yAxisTextNumberOfLines, yAxisLabelPrefix = props.yAxisLabelPrefix, yAxisLabelSuffix = props.yAxisLabelSuffix, yAxisTextStyle = props.yAxisTextStyle, containerHeight = props.containerHeight, maxValue = props.maxValue, referenceLinesConfig = props.referenceLinesConfig, yAxisLabelTexts = props.yAxisLabelTexts, stepValue = props.stepValue, roundToDigits = props.roundToDigits, yAxisOffset = props.yAxisOffset, formatYLabel = props.formatYLabel, secondaryData = props.secondaryData, secondaryYAxis = props.secondaryYAxis;
18
- var yAxisExtraHeightAtTop = trimYAxisAtTop ? 0 : yAxisExtraHeight;
19
- /***********************************************************************************************************************************
20
- * *
21
- ***************************** secondary Y Axis related props computations ******************************
22
- * *
23
- ***********************************************************************************************************************************/
24
- var secondaryYAxisConfig = {
25
- noOfSections: (_a = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.noOfSections) !== null && _a !== void 0 ? _a : noOfSections,
26
- maxValue: secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.maxValue,
27
- mostNegativeValue: secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.mostNegativeValue,
28
- stepValue: secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.stepValue,
29
- stepHeight: secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.stepHeight,
30
- showFractionalValues: (_b = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.showFractionalValues) !== null && _b !== void 0 ? _b : showFractionalValues,
31
- roundToDigits: (_c = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.roundToDigits) !== null && _c !== void 0 ? _c : roundToDigits,
32
- noOfSectionsBelowXAxis: (_d = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.noOfSectionsBelowXAxis) !== null && _d !== void 0 ? _d : noOfSectionsBelowXAxis,
33
- showYAxisIndices: (_e = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.showYAxisIndices) !== null && _e !== void 0 ? _e : showYAxisIndices,
34
- yAxisIndicesHeight: (_f = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisIndicesHeight) !== null && _f !== void 0 ? _f : yAxisIndicesHeight,
35
- yAxisIndicesWidth: (_g = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisIndicesWidth) !== null && _g !== void 0 ? _g : yAxisIndicesWidth,
36
- yAxisIndicesColor: (_h = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisIndicesColor) !== null && _h !== void 0 ? _h : yAxisIndicesColor,
37
- yAxisSide: (_j = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisSide) !== null && _j !== void 0 ? _j : yAxisSide,
38
- yAxisOffset: secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisOffset,
39
- yAxisThickness: (_k = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisThickness) !== null && _k !== void 0 ? _k : yAxisThickness,
40
- yAxisColor: (_l = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisColor) !== null && _l !== void 0 ? _l : yAxisColor,
41
- yAxisLabelContainerStyle: (_m = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisLabelContainerStyle) !== null && _m !== void 0 ? _m : yAxisLabelContainerStyle,
42
- yAxisLabelTexts: (_o = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisLabelTexts) !== null && _o !== void 0 ? _o : yAxisLabelTexts,
43
- yAxisTextStyle: (_p = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisTextStyle) !== null && _p !== void 0 ? _p : yAxisTextStyle,
44
- yAxisTextNumberOfLines: (_q = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisTextNumberOfLines) !== null && _q !== void 0 ? _q : yAxisTextNumberOfLines,
45
- yAxisLabelWidth: (_r = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisLabelWidth) !== null && _r !== void 0 ? _r : yAxisLabelWidth,
46
- hideYAxisText: (_s = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.hideYAxisText) !== null && _s !== void 0 ? _s : hideYAxisText,
47
- yAxisLabelPrefix: (_t = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisLabelPrefix) !== null && _t !== void 0 ? _t : yAxisLabelPrefix,
48
- yAxisLabelSuffix: (_u = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.yAxisLabelSuffix) !== null && _u !== void 0 ? _u : yAxisLabelSuffix,
49
- hideOrigin: (_v = secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.hideOrigin) !== null && _v !== void 0 ? _v : hideOrigin,
50
- formatYLabel: secondaryYAxis === null || secondaryYAxis === void 0 ? void 0 : secondaryYAxis.formatYLabel,
51
- };
52
- var _20 = utils_1.computeMaxAndMinItems(secondaryData, secondaryYAxisConfig.roundToDigits, secondaryYAxisConfig.showFractionalValues), maxItem = _20.maxItem, minItem = _20.minItem;
53
- secondaryYAxisConfig.maxValue =
54
- (_w = secondaryYAxisConfig.maxValue) !== null && _w !== void 0 ? _w : (maxItem || maxValue);
55
- secondaryYAxisConfig.mostNegativeValue =
56
- (_x = secondaryYAxisConfig.mostNegativeValue) !== null && _x !== void 0 ? _x : minItem;
57
- secondaryYAxisConfig.stepValue =
58
- (_y = secondaryYAxisConfig.stepValue) !== null && _y !== void 0 ? _y : ((_z = secondaryYAxisConfig.maxValue) !== null && _z !== void 0 ? _z : 0) /
59
- ((_0 = secondaryYAxisConfig.noOfSections) !== null && _0 !== void 0 ? _0 : noOfSections);
60
- secondaryYAxisConfig.stepHeight =
61
- secondaryYAxisConfig.stepHeight ||
62
- containerHeight / ((_1 = secondaryYAxisConfig.noOfSections) !== null && _1 !== void 0 ? _1 : noOfSections);
63
- var horizSections = [];
64
- for (var i = 0; i <= noOfSections; i++) {
65
- var value = maxValue - stepValue * i;
66
- if (showFractionalValues || roundToDigits) {
67
- value = parseFloat(value.toFixed(roundToDigits !== null && roundToDigits !== void 0 ? roundToDigits : constants_1.AxesAndRulesDefaults.roundToDigits));
68
- }
69
- horizSections.push({
70
- value: (yAxisLabelTexts === null || yAxisLabelTexts === void 0 ? void 0 : yAxisLabelTexts.length)
71
- ? (_2 = yAxisLabelTexts[noOfSections + noOfSectionsBelowXAxis - i]) !== null && _2 !== void 0 ? _2 : value.toString()
72
- : value.toString(),
73
- });
74
- }
75
- var horizSectionsBelow = [];
76
- if (noOfSectionsBelowXAxis) {
77
- for (var i = 1; i <= noOfSectionsBelowXAxis; i++) {
78
- var value = stepValue * -i;
79
- if (showFractionalValues || roundToDigits) {
80
- value = parseFloat(value.toFixed(roundToDigits !== null && roundToDigits !== void 0 ? roundToDigits : constants_1.AxesAndRulesDefaults.roundToDigits));
81
- }
82
- horizSectionsBelow.push({
83
- value: props.yAxisLabelTexts
84
- ? (_3 = props.yAxisLabelTexts[noOfSectionsBelowXAxis - i]) !== null && _3 !== void 0 ? _3 : value.toString()
85
- : value.toString(),
86
- });
87
- }
88
- }
89
- var secondaryHorizSections = [];
90
- if (secondaryYAxis) {
91
- for (var i = 0; i <= ((_4 = secondaryYAxisConfig.noOfSections) !== null && _4 !== void 0 ? _4 : noOfSections); i++) {
92
- var value = secondaryYAxisConfig.stepValue * i;
93
- if (secondaryYAxisConfig.showFractionalValues ||
94
- secondaryYAxisConfig.roundToDigits) {
95
- value = parseFloat(value.toFixed((_5 = secondaryYAxisConfig.roundToDigits) !== null && _5 !== void 0 ? _5 : constants_1.AxesAndRulesDefaults.roundToDigits));
96
- }
97
- secondaryHorizSections.push({
98
- value: ((_6 = secondaryYAxisConfig.yAxisLabelTexts) === null || _6 === void 0 ? void 0 : _6.length)
99
- ? (_7 = secondaryYAxisConfig.yAxisLabelTexts[i - noOfSectionsBelowXAxis - 1]) !== null && _7 !== void 0 ? _7 : value.toString()
100
- : value.toString(),
101
- });
102
- }
103
- }
104
- var secondaryHorizSectionsBelow = [];
105
- if (secondaryYAxisConfig.noOfSectionsBelowXAxis) {
106
- for (var i = 1; i <= secondaryYAxisConfig.noOfSectionsBelowXAxis; i++) {
107
- var value = secondaryYAxisConfig.stepValue *
108
- (i - secondaryYAxisConfig.noOfSectionsBelowXAxis - 1);
109
- if (secondaryYAxisConfig.showFractionalValues ||
110
- secondaryYAxisConfig.roundToDigits) {
111
- value = parseFloat(value.toFixed((_8 = secondaryYAxisConfig.roundToDigits) !== null && _8 !== void 0 ? _8 : constants_1.AxesAndRulesDefaults.roundToDigits));
112
- }
113
- secondaryHorizSectionsBelow.push({
114
- value: ((_9 = secondaryYAxisConfig.yAxisLabelTexts) === null || _9 === void 0 ? void 0 : _9.length)
115
- ? (_10 = secondaryYAxisConfig.yAxisLabelTexts[i - 1]) !== null && _10 !== void 0 ? _10 : value.toString()
116
- : value.toString(),
117
- });
118
- }
119
- }
120
- /***********************************************************************************************************************************
121
- ***********************************************************************************************************************************/
122
- var showReferenceLine1 = referenceLinesConfig.showReferenceLine1, referenceLine1Position = referenceLinesConfig.referenceLine1Position, referenceLine1Config = referenceLinesConfig.referenceLine1Config, showReferenceLine2 = referenceLinesConfig.showReferenceLine2, referenceLine2Position = referenceLinesConfig.referenceLine2Position, referenceLine2Config = referenceLinesConfig.referenceLine2Config, showReferenceLine3 = referenceLinesConfig.showReferenceLine3, referenceLine3Position = referenceLinesConfig.referenceLine3Position, referenceLine3Config = referenceLinesConfig.referenceLine3Config;
123
- var defaultReferenceConfig = {
124
- thickness: rulesThickness,
125
- width: (width || totalWidth - spacing) + endSpacing,
126
- color: "black",
127
- type: rulesType,
128
- dashWidth: dashWidth,
129
- dashGap: dashGap,
130
- labelText: "",
131
- labelTextStyle: null,
132
- zIndex: 1,
133
- };
134
- showReferenceLine1 = referenceLinesConfig.showReferenceLine1 || false;
135
- referenceLine1Position =
136
- (_11 = referenceLinesConfig.referenceLine1Position) !== null && _11 !== void 0 ? _11 : (referenceLinesConfig.referenceLine1Position || containerHeight / 2);
137
- referenceLine1Config = referenceLinesConfig.referenceLine1Config
138
- ? {
139
- thickness: referenceLinesConfig.referenceLine1Config.thickness ||
140
- defaultReferenceConfig.thickness,
141
- width: (_12 = referenceLinesConfig.referenceLine1Config.width) !== null && _12 !== void 0 ? _12 : defaultReferenceConfig.width,
142
- color: referenceLinesConfig.referenceLine1Config.color ||
143
- defaultReferenceConfig.color,
144
- type: referenceLinesConfig.referenceLine1Config.type ||
145
- defaultReferenceConfig.type,
146
- dashWidth: referenceLinesConfig.referenceLine1Config.dashWidth ||
147
- defaultReferenceConfig.dashWidth,
148
- dashGap: referenceLinesConfig.referenceLine1Config.dashGap ||
149
- defaultReferenceConfig.dashGap,
150
- labelText: referenceLinesConfig.referenceLine1Config.labelText ||
151
- defaultReferenceConfig.labelText,
152
- labelTextStyle: referenceLinesConfig.referenceLine1Config.labelTextStyle ||
153
- defaultReferenceConfig.labelTextStyle,
154
- zIndex: (_13 = referenceLinesConfig.referenceLine1Config.zIndex) !== null && _13 !== void 0 ? _13 : defaultReferenceConfig.zIndex,
155
- }
156
- : defaultReferenceConfig;
157
- showReferenceLine2 = referenceLinesConfig.showReferenceLine2 || false;
158
- referenceLine2Position =
159
- (_14 = referenceLinesConfig.referenceLine2Position) !== null && _14 !== void 0 ? _14 : (referenceLinesConfig.referenceLine2Position || (3 * containerHeight) / 2);
160
- referenceLine2Config = referenceLinesConfig.referenceLine2Config
161
- ? {
162
- thickness: referenceLinesConfig.referenceLine2Config.thickness ||
163
- defaultReferenceConfig.thickness,
164
- width: (_15 = referenceLinesConfig.referenceLine2Config.width) !== null && _15 !== void 0 ? _15 : defaultReferenceConfig.width,
165
- color: referenceLinesConfig.referenceLine2Config.color ||
166
- defaultReferenceConfig.color,
167
- type: referenceLinesConfig.referenceLine2Config.type ||
168
- defaultReferenceConfig.type,
169
- dashWidth: referenceLinesConfig.referenceLine2Config.dashWidth ||
170
- defaultReferenceConfig.dashWidth,
171
- dashGap: referenceLinesConfig.referenceLine2Config.dashGap ||
172
- defaultReferenceConfig.dashGap,
173
- labelText: referenceLinesConfig.referenceLine2Config.labelText ||
174
- defaultReferenceConfig.labelText,
175
- labelTextStyle: referenceLinesConfig.referenceLine2Config.labelTextStyle ||
176
- defaultReferenceConfig.labelTextStyle,
177
- zIndex: (_16 = referenceLinesConfig.referenceLine2Config.zIndex) !== null && _16 !== void 0 ? _16 : defaultReferenceConfig.zIndex,
178
- }
179
- : defaultReferenceConfig;
180
- showReferenceLine3 = referenceLinesConfig.showReferenceLine3 || false;
181
- referenceLine3Position =
182
- (_17 = referenceLinesConfig.referenceLine3Position) !== null && _17 !== void 0 ? _17 : (referenceLinesConfig.referenceLine3Position || containerHeight / 3);
183
- referenceLine3Config = referenceLinesConfig.referenceLine3Config
184
- ? {
185
- thickness: referenceLinesConfig.referenceLine3Config.thickness ||
186
- defaultReferenceConfig.thickness,
187
- width: (_18 = referenceLinesConfig.referenceLine3Config.width) !== null && _18 !== void 0 ? _18 : defaultReferenceConfig.width,
188
- color: referenceLinesConfig.referenceLine3Config.color ||
189
- defaultReferenceConfig.color,
190
- type: referenceLinesConfig.referenceLine3Config.type ||
191
- defaultReferenceConfig.type,
192
- dashWidth: referenceLinesConfig.referenceLine3Config.dashWidth ||
193
- defaultReferenceConfig.dashWidth,
194
- dashGap: referenceLinesConfig.referenceLine3Config.dashGap ||
195
- defaultReferenceConfig.dashGap,
196
- labelText: referenceLinesConfig.referenceLine3Config.labelText ||
197
- defaultReferenceConfig.labelText,
198
- labelTextStyle: referenceLinesConfig.referenceLine3Config.labelTextStyle ||
199
- defaultReferenceConfig.labelTextStyle,
200
- zIndex: (_19 = referenceLinesConfig.referenceLine3Config.zIndex) !== null && _19 !== void 0 ? _19 : defaultReferenceConfig.zIndex,
201
- }
202
- : defaultReferenceConfig;
203
- var getLabelTexts = function (val, index) {
204
- return utils_1.getLabelTextUtil(val, index, showFractionalValues, yAxisLabelTexts, yAxisOffset, yAxisLabelPrefix, yAxisLabelSuffix, roundToDigits !== null && roundToDigits !== void 0 ? roundToDigits : constants_1.AxesAndRulesDefaults.roundToDigits, formatYLabel);
205
- };
206
- var getLabelTextsForSecondaryYAxis = function (val, index) {
207
- var showFractionalValues = secondaryYAxisConfig.showFractionalValues, yAxisLabelTexts = secondaryYAxisConfig.yAxisLabelTexts, yAxisOffset = secondaryYAxisConfig.yAxisOffset, yAxisLabelPrefix = secondaryYAxisConfig.yAxisLabelPrefix, yAxisLabelSuffix = secondaryYAxisConfig.yAxisLabelSuffix, roundToDigits = secondaryYAxisConfig.roundToDigits, formatYLabel = secondaryYAxisConfig.formatYLabel;
208
- return utils_1.getLabelTextUtil(val, index, showFractionalValues, yAxisLabelTexts, yAxisOffset, yAxisLabelPrefix, yAxisLabelSuffix, roundToDigits !== null && roundToDigits !== void 0 ? roundToDigits : constants_1.AxesAndRulesDefaults.roundToDigits, formatYLabel);
209
- };
210
- return {
211
- secondaryYAxisConfig: secondaryYAxisConfig,
212
- horizSections: horizSections,
213
- yAxisExtraHeightAtTop: yAxisExtraHeightAtTop,
214
- secondaryHorizSections: secondaryHorizSections,
215
- showReferenceLine1: showReferenceLine1,
216
- referenceLine1Config: referenceLine1Config,
217
- referenceLine1Position: referenceLine1Position,
218
- showReferenceLine2: showReferenceLine2,
219
- referenceLine2Config: referenceLine2Config,
220
- referenceLine2Position: referenceLine2Position,
221
- showReferenceLine3: showReferenceLine3,
222
- referenceLine3Config: referenceLine3Config,
223
- referenceLine3Position: referenceLine3Position,
224
- horizSectionsBelow: horizSectionsBelow,
225
- secondaryHorizSectionsBelow: secondaryHorizSectionsBelow,
226
- getLabelTexts: getLabelTexts,
227
- getLabelTextsForSecondaryYAxis: getLabelTextsForSecondaryYAxis,
228
- };
229
- });
230
- }
231
- };
232
- });
233
- //# sourceMappingURL=getHorizSectionsVals.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getHorizSectionsVals.js","sourceRoot":"","sources":["getHorizSectionsVals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;YAIA,iCAAa,mBAAmB,GAAG,UAAC,KAAK;;gBAErC,IAAA,KAAK,GA4CH,KAAK,MA5CF,EACL,sBAAsB,GA2CpB,KAAK,uBA3Ce,EACtB,UAAU,GA0CR,KAAK,WA1CG,EACV,UAAU,GAyCR,KAAK,WAzCG,EACV,SAAS,GAwCP,KAAK,UAxCE,EACT,YAAY,GAuCV,KAAK,aAvCK,EACZ,eAAe,GAsCb,KAAK,gBAtCQ,EACf,wBAAwB,GAqCtB,KAAK,yBArCiB,EACxB,cAAc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