@pie-lib/charting 5.36.2-next.0 → 5.38.0-mui-update.0

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 (77) hide show
  1. package/CHANGELOG.md +26 -15
  2. package/lib/actions-button.js +60 -90
  3. package/lib/actions-button.js.map +1 -1
  4. package/lib/axes.js +154 -234
  5. package/lib/axes.js.map +1 -1
  6. package/lib/bars/bar.js +13 -41
  7. package/lib/bars/bar.js.map +1 -1
  8. package/lib/bars/common/bars.js +55 -126
  9. package/lib/bars/common/bars.js.map +1 -1
  10. package/lib/bars/common/correct-check-icon.js +1 -6
  11. package/lib/bars/common/correct-check-icon.js.map +1 -1
  12. package/lib/bars/histogram.js +13 -41
  13. package/lib/bars/histogram.js.map +1 -1
  14. package/lib/chart-setup.js +110 -184
  15. package/lib/chart-setup.js.map +1 -1
  16. package/lib/chart-type.js +38 -43
  17. package/lib/chart-type.js.map +1 -1
  18. package/lib/chart-types.js +1 -10
  19. package/lib/chart-types.js.map +1 -1
  20. package/lib/chart.js +74 -146
  21. package/lib/chart.js.map +1 -1
  22. package/lib/common/correctness-indicators.js +74 -52
  23. package/lib/common/correctness-indicators.js.map +1 -1
  24. package/lib/common/drag-handle.js +67 -105
  25. package/lib/common/drag-handle.js.map +1 -1
  26. package/lib/common/drag-icon.js +6 -12
  27. package/lib/common/drag-icon.js.map +1 -1
  28. package/lib/common/styles.js +6 -24
  29. package/lib/common/styles.js.map +1 -1
  30. package/lib/grid.js +44 -81
  31. package/lib/grid.js.map +1 -1
  32. package/lib/index.js +0 -6
  33. package/lib/index.js.map +1 -1
  34. package/lib/key-legend.js +63 -87
  35. package/lib/key-legend.js.map +1 -1
  36. package/lib/line/common/drag-handle.js +69 -100
  37. package/lib/line/common/drag-handle.js.map +1 -1
  38. package/lib/line/common/line.js +43 -92
  39. package/lib/line/common/line.js.map +1 -1
  40. package/lib/line/line-cross.js +77 -87
  41. package/lib/line/line-cross.js.map +1 -1
  42. package/lib/line/line-dot.js +66 -78
  43. package/lib/line/line-dot.js.map +1 -1
  44. package/lib/mark-label.js +75 -117
  45. package/lib/mark-label.js.map +1 -1
  46. package/lib/plot/common/plot.js +76 -144
  47. package/lib/plot/common/plot.js.map +1 -1
  48. package/lib/plot/dot.js +31 -57
  49. package/lib/plot/dot.js.map +1 -1
  50. package/lib/plot/line.js +37 -62
  51. package/lib/plot/line.js.map +1 -1
  52. package/lib/tool-menu.js +48 -80
  53. package/lib/tool-menu.js.map +1 -1
  54. package/lib/utils.js +20 -77
  55. package/lib/utils.js.map +1 -1
  56. package/package.json +12 -9
  57. package/src/actions-button.jsx +44 -39
  58. package/src/axes.jsx +61 -75
  59. package/src/bars/common/bars.jsx +8 -23
  60. package/src/chart-setup.jsx +68 -78
  61. package/src/chart-type.js +29 -22
  62. package/src/chart.jsx +8 -20
  63. package/src/common/correctness-indicators.jsx +51 -13
  64. package/src/common/drag-handle.jsx +44 -59
  65. package/src/common/drag-icon.jsx +2 -2
  66. package/src/common/styles.js +1 -1
  67. package/src/grid.jsx +9 -13
  68. package/src/key-legend.jsx +62 -60
  69. package/src/line/common/drag-handle.jsx +57 -55
  70. package/src/line/common/line.jsx +16 -9
  71. package/src/line/line-cross.js +37 -12
  72. package/src/line/line-dot.js +30 -11
  73. package/src/mark-label.jsx +43 -44
  74. package/src/plot/common/plot.jsx +17 -22
  75. package/src/plot/dot.js +10 -3
  76. package/src/plot/line.js +14 -6
  77. package/src/tool-menu.jsx +20 -23
@@ -1,135 +1,99 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  var _typeof = require("@babel/runtime/helpers/typeof");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
8
  exports["default"] = exports.RawBar = exports.Bars = void 0;
11
-
12
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
-
14
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
-
16
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
17
-
18
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
19
-
20
11
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
21
-
22
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
23
-
13
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
24
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
25
-
26
15
  var _react = _interopRequireDefault(require("react"));
27
-
28
16
  var _propTypes = _interopRequireDefault(require("prop-types"));
29
-
30
17
  var _group = require("@vx/group");
31
-
32
18
  var _shape = require("@vx/shape");
33
-
34
- var _index = require("@material-ui/core/styles/index");
35
-
19
+ var _styles = require("@mui/material/styles");
36
20
  var _debug = _interopRequireDefault(require("debug"));
37
-
38
21
  var _renderUi = require("@pie-lib/render-ui");
39
-
40
22
  var _plot = require("@pie-lib/plot");
41
-
42
23
  var _utils = require("../../utils");
43
-
44
24
  var _dragHandle = _interopRequireWildcard(require("../../common/drag-handle"));
45
-
46
25
  var _correctCheckIcon = require("./correct-check-icon");
47
-
48
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
49
-
50
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
51
-
52
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
53
-
54
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
55
-
26
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
27
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
28
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
56
29
  var log = (0, _debug["default"])('pie-lib:chart:bars');
57
30
  var histogramColors = ['#006699', '#F59B00', '#08916D', '#529EE0', '#52B7D8', '#D9A6C2', '#FFB03B', '#54A77B', '#E16032', '#4FD2D2', '#F0E442', '#E287B2'];
58
31
  var hoverHistogramColors = ['#003754', '#975616', '#00503B', '#225982', '#1F687D', '#825E6F', '#996428', '#255E44', '#8A331F', '#167A7A', '#91862D', '#894A65'];
59
-
60
32
  var calculateFillColor = function calculateFillColor(isHovered, barColor, index, hoverHistogramColors, allowRolloverEvent) {
61
33
  if (isHovered && barColor && allowRolloverEvent) {
62
34
  return hoverHistogramColors[index % hoverHistogramColors.length];
63
35
  }
64
-
65
36
  if (isHovered && allowRolloverEvent) {
66
37
  return _renderUi.color.visualElementsColors.ROLLOVER_FILL_BAR_COLOR;
67
38
  }
68
-
69
39
  return barColor || null;
70
40
  };
71
-
72
- var RawBar = /*#__PURE__*/function (_React$Component) {
73
- (0, _inherits2["default"])(RawBar, _React$Component);
74
-
75
- var _super = _createSuper(RawBar);
76
-
41
+ var StyledVxBar = (0, _styles.styled)(_shape.Bar)(function () {
42
+ return {
43
+ fill: _renderUi.color.defaults.TERTIARY
44
+ };
45
+ });
46
+ var RawBar = exports.RawBar = /*#__PURE__*/function (_React$Component) {
77
47
  function RawBar(props) {
78
48
  var _this;
79
-
80
49
  (0, _classCallCheck2["default"])(this, RawBar);
81
- _this = _super.call(this, props);
82
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleMouseMove", function (e) {
50
+ _this = _callSuper(this, RawBar, [props]);
51
+ (0, _defineProperty2["default"])(_this, "handleMouseMove", function (e) {
83
52
  // Update mouse position
84
53
  _this.mouseX = e.clientX;
85
- _this.mouseY = e.clientY; // Check if the mouse is inside the <g> element
86
-
54
+ _this.mouseY = e.clientY;
55
+ // Check if the mouse is inside the <g> element
87
56
  var isMouseInside = _this.isMouseInsideSvgElement();
88
-
89
57
  _this.setState({
90
58
  isHovered: isMouseInside
91
59
  });
92
60
  });
93
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "isMouseInsideSvgElement", function () {
94
- var gBoundingBox = _this.gRef.getBoundingClientRect(); // Check if the mouse position is within the bounding box
95
-
96
-
61
+ (0, _defineProperty2["default"])(_this, "isMouseInsideSvgElement", function () {
62
+ var gBoundingBox = _this.gRef.getBoundingClientRect();
63
+ // Check if the mouse position is within the bounding box
97
64
  return _this.mouseX >= gBoundingBox.left && _this.mouseX <= gBoundingBox.right && _this.mouseY >= gBoundingBox.top && _this.mouseY <= gBoundingBox.bottom;
98
65
  });
99
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleMouseEnter", function () {
66
+ (0, _defineProperty2["default"])(_this, "handleMouseEnter", function () {
100
67
  _this.setState({
101
68
  isHovered: true
102
69
  });
103
70
  });
104
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleMouseLeave", function () {
71
+ (0, _defineProperty2["default"])(_this, "handleMouseLeave", function () {
105
72
  _this.setState({
106
73
  isHovered: false
107
74
  });
108
75
  });
109
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "setDragValue", function (dragValue) {
76
+ (0, _defineProperty2["default"])(_this, "setDragValue", function (dragValue) {
110
77
  return _this.setState({
111
78
  dragValue: dragValue
112
79
  });
113
80
  });
114
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "dragStop", function () {
81
+ (0, _defineProperty2["default"])(_this, "dragStop", function () {
115
82
  var _this$props = _this.props,
116
- label = _this$props.label,
117
- onChangeCategory = _this$props.onChangeCategory;
83
+ label = _this$props.label,
84
+ onChangeCategory = _this$props.onChangeCategory;
118
85
  var dragValue = _this.state.dragValue;
119
86
  log('[dragStop]', dragValue);
120
-
121
87
  if (dragValue !== undefined) {
122
88
  onChangeCategory({
123
89
  label: label,
124
90
  value: dragValue
125
91
  });
126
92
  }
127
-
128
93
  _this.setDragValue(undefined);
129
94
  });
130
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "dragValue", function (existing, next) {
95
+ (0, _defineProperty2["default"])(_this, "dragValue", function (existing, next) {
131
96
  log('[dragValue] next:', next);
132
-
133
97
  _this.setDragValue(next);
134
98
  });
135
99
  _this.state = {
@@ -140,8 +104,8 @@ var RawBar = /*#__PURE__*/function (_React$Component) {
140
104
  _this.mouseY = 0;
141
105
  return _this;
142
106
  }
143
-
144
- (0, _createClass2["default"])(RawBar, [{
107
+ (0, _inherits2["default"])(RawBar, _React$Component);
108
+ return (0, _createClass2["default"])(RawBar, [{
145
109
  key: "componentDidMount",
146
110
  value: function componentDidMount() {
147
111
  window.addEventListener('mousemove', this.handleMouseMove);
@@ -155,24 +119,22 @@ var RawBar = /*#__PURE__*/function (_React$Component) {
155
119
  key: "render",
156
120
  value: function render() {
157
121
  var _this2 = this;
158
-
159
122
  var _this$props2 = this.props,
160
- graphProps = _this$props2.graphProps,
161
- value = _this$props2.value,
162
- label = _this$props2.label,
163
- classes = _this$props2.classes,
164
- xBand = _this$props2.xBand,
165
- index = _this$props2.index,
166
- interactive = _this$props2.interactive,
167
- correctness = _this$props2.correctness,
168
- barColor = _this$props2.barColor,
169
- defineChart = _this$props2.defineChart,
170
- correctData = _this$props2.correctData;
123
+ graphProps = _this$props2.graphProps,
124
+ value = _this$props2.value,
125
+ label = _this$props2.label,
126
+ xBand = _this$props2.xBand,
127
+ index = _this$props2.index,
128
+ interactive = _this$props2.interactive,
129
+ correctness = _this$props2.correctness,
130
+ barColor = _this$props2.barColor,
131
+ defineChart = _this$props2.defineChart,
132
+ correctData = _this$props2.correctData;
171
133
  var scale = graphProps.scale,
172
- range = graphProps.range;
134
+ range = graphProps.range;
173
135
  var _this$state = this.state,
174
- dragValue = _this$state.dragValue,
175
- isHovered = _this$state.isHovered;
136
+ dragValue = _this$state.dragValue,
137
+ isHovered = _this$state.isHovered;
176
138
  var allowRolloverEvent = interactive && !correctness;
177
139
  var fillColor = calculateFillColor(isHovered, barColor, index, hoverHistogramColors, allowRolloverEvent);
178
140
  var v = Number.isFinite(dragValue) ? dragValue : value;
@@ -197,12 +159,11 @@ var RawBar = /*#__PURE__*/function (_React$Component) {
197
159
  onMouseLeave: this.handleMouseLeave,
198
160
  onTouchStart: this.handleMouseEnter,
199
161
  onTouchEnd: this.handleMouseLeave
200
- }, /*#__PURE__*/_react["default"].createElement(_shape.Bar, {
162
+ }, /*#__PURE__*/_react["default"].createElement(StyledVxBar, {
201
163
  x: barX,
202
164
  y: scale.y(yy),
203
165
  width: barWidth,
204
166
  height: barHeight,
205
- className: classes.bar,
206
167
  style: {
207
168
  fill: fillColor
208
169
  }
@@ -215,14 +176,13 @@ var RawBar = /*#__PURE__*/function (_React$Component) {
215
176
  var yDiff = scale.y(correctVal);
216
177
  var indicatorBarColor = correctPxHeight > actualPxHeight ? _renderUi.color.borderGray() : _renderUi.color.defaults.WHITE;
217
178
  var yToRender = correctPxHeight > actualPxHeight ? yDiff : yDiff - diffPx;
218
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_shape.Bar, {
179
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(StyledVxBar, {
219
180
  x: barX + 2 // add 2px for the stroke (the dashed border)
220
181
  ,
221
182
  y: yToRender,
222
183
  width: barWidth - 4 // substract 4px for the total stroke
223
184
  ,
224
185
  height: diffPx,
225
- className: classes.bar,
226
186
  style: {
227
187
  stroke: indicatorBarColor,
228
188
  strokeWidth: 2,
@@ -254,15 +214,11 @@ var RawBar = /*#__PURE__*/function (_React$Component) {
254
214
  }));
255
215
  }
256
216
  }]);
257
- return RawBar;
258
217
  }(_react["default"].Component);
259
-
260
- exports.RawBar = RawBar;
261
218
  (0, _defineProperty2["default"])(RawBar, "propTypes", {
262
219
  barColor: _propTypes["default"].string,
263
220
  onChangeCategory: _propTypes["default"].func,
264
221
  value: _propTypes["default"].number,
265
- classes: _propTypes["default"].object,
266
222
  label: _propTypes["default"].string,
267
223
  xBand: _propTypes["default"].func,
268
224
  index: _propTypes["default"].number.isRequired,
@@ -274,47 +230,24 @@ exports.RawBar = RawBar;
274
230
  }),
275
231
  correctData: _propTypes["default"].array
276
232
  });
277
- var Bar = (0, _index.withStyles)(function (theme) {
278
- return {
279
- bar: {
280
- fill: _renderUi.color.defaults.TERTIARY
281
- },
282
- correctIcon: {
283
- backgroundColor: _renderUi.color.correct(),
284
- borderRadius: theme.spacing.unit * 2,
285
- color: _renderUi.color.defaults.WHITE,
286
- fontSize: '10px',
287
- width: '10px',
288
- height: '10px',
289
- padding: '2px',
290
- border: "1px solid ".concat(_renderUi.color.defaults.WHITE),
291
- boxSizing: 'unset' // to override the default border-box in IBX
292
-
293
- }
294
- };
295
- })(RawBar);
296
-
297
- var Bars = /*#__PURE__*/function (_React$Component2) {
298
- (0, _inherits2["default"])(Bars, _React$Component2);
299
-
300
- var _super2 = _createSuper(Bars);
301
-
233
+ var Bar = RawBar;
234
+ var Bars = exports.Bars = /*#__PURE__*/function (_React$Component2) {
302
235
  function Bars() {
303
236
  (0, _classCallCheck2["default"])(this, Bars);
304
- return _super2.apply(this, arguments);
237
+ return _callSuper(this, Bars, arguments);
305
238
  }
306
-
307
- (0, _createClass2["default"])(Bars, [{
239
+ (0, _inherits2["default"])(Bars, _React$Component2);
240
+ return (0, _createClass2["default"])(Bars, [{
308
241
  key: "render",
309
242
  value: function render() {
310
243
  var _this$props3 = this.props,
311
- data = _this$props3.data,
312
- graphProps = _this$props3.graphProps,
313
- xBand = _this$props3.xBand,
314
- _onChangeCategory = _this$props3.onChangeCategory,
315
- defineChart = _this$props3.defineChart,
316
- histogram = _this$props3.histogram,
317
- correctData = _this$props3.correctData;
244
+ data = _this$props3.data,
245
+ graphProps = _this$props3.graphProps,
246
+ xBand = _this$props3.xBand,
247
+ _onChangeCategory = _this$props3.onChangeCategory,
248
+ defineChart = _this$props3.defineChart,
249
+ histogram = _this$props3.histogram,
250
+ correctData = _this$props3.correctData;
318
251
  return /*#__PURE__*/_react["default"].createElement(_group.Group, null, (data || []).map(function (d, index) {
319
252
  return /*#__PURE__*/_react["default"].createElement(Bar, {
320
253
  value: d.value,
@@ -335,10 +268,7 @@ var Bars = /*#__PURE__*/function (_React$Component2) {
335
268
  }));
336
269
  }
337
270
  }]);
338
- return Bars;
339
271
  }(_react["default"].Component);
340
-
341
- exports.Bars = Bars;
342
272
  (0, _defineProperty2["default"])(Bars, "propTypes", {
343
273
  data: _propTypes["default"].array,
344
274
  correctData: _propTypes["default"].array,
@@ -348,6 +278,5 @@ exports.Bars = Bars;
348
278
  graphProps: _plot.types.GraphPropsType.isRequired,
349
279
  histogram: _propTypes["default"].bool
350
280
  });
351
- var _default = Bars;
352
- exports["default"] = _default;
281
+ var _default = exports["default"] = Bars;
353
282
  //# sourceMappingURL=bars.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/bars/common/bars.jsx"],"names":["log","histogramColors","hoverHistogramColors","calculateFillColor","isHovered","barColor","index","allowRolloverEvent","length","color","visualElementsColors","ROLLOVER_FILL_BAR_COLOR","RawBar","props","e","mouseX","clientX","mouseY","clientY","isMouseInside","isMouseInsideSvgElement","setState","gBoundingBox","gRef","getBoundingClientRect","left","right","top","bottom","dragValue","label","onChangeCategory","state","undefined","value","setDragValue","existing","next","window","addEventListener","handleMouseMove","removeEventListener","graphProps","classes","xBand","interactive","correctness","defineChart","correctData","scale","range","fillColor","v","Number","isFinite","barWidth","bandwidth","barHeight","y","max","barX","rawY","yy","correctValue","find","d","Component","DraggableHandle","DragHandle","isHistogram","ref","handleMouseEnter","handleMouseLeave","bar","fill","correctVal","parseFloat","isNaN","correctPxHeight","actualPxHeight","diffPx","Math","abs","yDiff","indicatorBarColor","borderGray","defaults","WHITE","yToRender","stroke","strokeWidth","strokeDasharray","dragStop","React","PropTypes","string","func","number","object","isRequired","types","GraphPropsType","bool","shape","array","Bar","theme","TERTIARY","correctIcon","backgroundColor","correct","borderRadius","spacing","unit","fontSize","width","height","padding","border","boxSizing","Bars","data","histogram","map","category"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,oBAAN,CAAZ;AACA,IAAMC,eAAe,GAAG,CACtB,SADsB,EAEtB,SAFsB,EAGtB,SAHsB,EAItB,SAJsB,EAKtB,SALsB,EAMtB,SANsB,EAOtB,SAPsB,EAQtB,SARsB,EAStB,SATsB,EAUtB,SAVsB,EAWtB,SAXsB,EAYtB,SAZsB,CAAxB;AAcA,IAAMC,oBAAoB,GAAG,CAC3B,SAD2B,EAE3B,SAF2B,EAG3B,SAH2B,EAI3B,SAJ2B,EAK3B,SAL2B,EAM3B,SAN2B,EAO3B,SAP2B,EAQ3B,SAR2B,EAS3B,SAT2B,EAU3B,SAV2B,EAW3B,SAX2B,EAY3B,SAZ2B,CAA7B;;AAeA,IAAMC,kBAAkB,GAAG,SAArBA,kBAAqB,CAACC,SAAD,EAAYC,QAAZ,EAAsBC,KAAtB,EAA6BJ,oBAA7B,EAAmDK,kBAAnD,EAA0E;AACnG,MAAIH,SAAS,IAAIC,QAAb,IAAyBE,kBAA7B,EAAiD;AAC/C,WAAOL,oBAAoB,CAACI,KAAK,GAAGJ,oBAAoB,CAACM,MAA9B,CAA3B;AACD;;AACD,MAAIJ,SAAS,IAAIG,kBAAjB,EAAqC;AACnC,WAAOE,gBAAMC,oBAAN,CAA2BC,uBAAlC;AACD;;AACD,SAAON,QAAQ,IAAI,IAAnB;AACD,CARD;;IAUaO,M;;;;;AAkBX,kBAAYC,KAAZ,EAAmB;AAAA;;AAAA;AACjB,8BAAMA,KAAN;AADiB,wGAkBD,UAACC,CAAD,EAAO;AACvB;AACA,YAAKC,MAAL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X;AAIjBjD,EAAAA,WAAW,EAAE+C,sBAAUQ,IAJN;AAKjB1D,EAAAA,KAAK,EAAEkD,sBAAUE,IALA;AAMjBtD,EAAAA,UAAU,EAAE0D,YAAMC,cAAN,CAAqBF,UANhB;AAOjBuB,EAAAA,SAAS,EAAE5B,sBAAUQ;AAPJ,C;eAuCNkB,I","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Group } from '@vx/group';\nimport { Bar as VxBar } from '@vx/shape';\nimport { withStyles } from '@material-ui/core/styles/index';\nimport debug from 'debug';\n\nimport { color } from '@pie-lib/render-ui';\nimport { types } from '@pie-lib/plot';\nimport { bandKey } from '../../utils';\nimport DraggableHandle, { DragHandle } from '../../common/drag-handle';\nimport { CorrectCheckIcon } from './correct-check-icon';\n\nconst log = debug('pie-lib:chart:bars');\nconst histogramColors = [\n '#006699',\n '#F59B00',\n '#08916D',\n '#529EE0',\n '#52B7D8',\n '#D9A6C2',\n '#FFB03B',\n '#54A77B',\n '#E16032',\n '#4FD2D2',\n '#F0E442',\n '#E287B2',\n];\nconst hoverHistogramColors = [\n '#003754',\n '#975616',\n '#00503B',\n '#225982',\n '#1F687D',\n '#825E6F',\n '#996428',\n '#255E44',\n '#8A331F',\n '#167A7A',\n '#91862D',\n '#894A65',\n];\n\nconst calculateFillColor = (isHovered, barColor, index, hoverHistogramColors, allowRolloverEvent) => {\n if (isHovered && barColor && allowRolloverEvent) {\n return hoverHistogramColors[index % hoverHistogramColors.length];\n }\n if (isHovered && allowRolloverEvent) {\n return color.visualElementsColors.ROLLOVER_FILL_BAR_COLOR;\n }\n return barColor || null;\n};\n\nexport class RawBar extends React.Component {\n static propTypes = {\n barColor: PropTypes.string,\n onChangeCategory: PropTypes.func,\n value: PropTypes.number,\n classes: PropTypes.object,\n label: PropTypes.string,\n xBand: PropTypes.func,\n index: PropTypes.number.isRequired,\n graphProps: types.GraphPropsType.isRequired,\n interactive: PropTypes.bool,\n correctness: PropTypes.shape({\n value: PropTypes.string,\n label: PropTypes.string,\n }),\n correctData: PropTypes.array,\n };\n\n constructor(props) {\n super(props);\n this.state = {\n dragValue: undefined,\n isHovered: false,\n };\n this.mouseX = 0;\n this.mouseY = 0;\n }\n\n componentDidMount() {\n window.addEventListener('mousemove', this.handleMouseMove);\n }\n\n componentWillUnmount() {\n window.removeEventListener('mousemove', this.handleMouseMove);\n }\n\n handleMouseMove = (e) => {\n // Update mouse position\n this.mouseX = e.clientX;\n this.mouseY = e.clientY;\n // Check if the mouse is inside the <g> element\n const isMouseInside = this.isMouseInsideSvgElement();\n this.setState({ isHovered: isMouseInside });\n };\n\n isMouseInsideSvgElement = () => {\n const gBoundingBox = this.gRef.getBoundingClientRect();\n // Check if the mouse position is within the bounding box\n return (\n this.mouseX >= gBoundingBox.left &&\n this.mouseX <= gBoundingBox.right &&\n this.mouseY >= gBoundingBox.top &&\n this.mouseY <= gBoundingBox.bottom\n );\n };\n\n handleMouseEnter = () => {\n this.setState({ isHovered: true });\n };\n\n handleMouseLeave = () => {\n this.setState({ isHovered: false });\n };\n\n setDragValue = (dragValue) => this.setState({ dragValue });\n\n dragStop = () => {\n const { label, onChangeCategory } = this.props;\n const { dragValue } = this.state;\n log('[dragStop]', dragValue);\n\n if (dragValue !== undefined) {\n onChangeCategory({ label, value: dragValue });\n }\n\n this.setDragValue(undefined);\n };\n\n dragValue = (existing, next) => {\n log('[dragValue] next:', next);\n\n this.setDragValue(next);\n };\n\n render() {\n const {\n graphProps,\n value,\n label,\n classes,\n xBand,\n index,\n interactive,\n correctness,\n barColor,\n defineChart,\n correctData,\n } = this.props;\n const { scale, range } = graphProps;\n const { dragValue, isHovered } = this.state;\n\n const allowRolloverEvent = interactive && !correctness;\n const fillColor = calculateFillColor(isHovered, barColor, index, hoverHistogramColors, allowRolloverEvent);\n const v = Number.isFinite(dragValue) ? dragValue : value;\n const barWidth = xBand.bandwidth();\n const barHeight = scale.y(range.max - v);\n const barX = xBand(bandKey({ label }, index));\n const rawY = range.max - v;\n const yy = range.max - rawY;\n const correctValue = correctData ? correctData.find((d) => d.label === label) : null;\n log('label:', label, 'barX:', barX, 'v: ', v, 'barHeight:', barHeight, 'barWidth: ', barWidth);\n\n const Component = interactive ? DraggableHandle : DragHandle;\n const isHistogram = !!barColor;\n\n return (\n <g\n ref={(ref) => (this.gRef = ref)}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n onTouchStart={this.handleMouseEnter}\n onTouchEnd={this.handleMouseLeave}\n >\n <VxBar\n x={barX}\n y={scale.y(yy)}\n width={barWidth}\n height={barHeight}\n className={classes.bar}\n style={{ fill: fillColor }}\n />\n {correctness &&\n correctness.value === 'incorrect' &&\n (() => {\n const correctVal = parseFloat(correctValue && correctValue.value);\n if (isNaN(correctVal)) return null;\n const correctPxHeight = scale.y(range.max - correctVal);\n const actualPxHeight = barHeight;\n const diffPx = Math.abs(correctPxHeight - actualPxHeight);\n const yDiff = scale.y(correctVal);\n const indicatorBarColor = correctPxHeight > actualPxHeight ? color.borderGray() : color.defaults.WHITE;\n const yToRender = correctPxHeight > actualPxHeight ? yDiff : yDiff - diffPx;\n\n return (\n <>\n <VxBar\n x={barX + 2} // add 2px for the stroke (the dashed border)\n y={yToRender}\n width={barWidth - 4} // substract 4px for the total stroke\n height={diffPx}\n className={classes.bar}\n style={{\n stroke: indicatorBarColor,\n strokeWidth: 2,\n strokeDasharray: '5,2',\n fill: 'none',\n }}\n />\n {/* adjust the position based on whether it's a histogram or not, because the histogram does not have space for the icon on the side */}\n <foreignObject x={barX + barWidth - (isHistogram ? 24 : 14)} y={yDiff - 12} width={24} height={24}>\n <CorrectCheckIcon dashColor={indicatorBarColor} />\n </foreignObject>\n </>\n );\n })()}\n <Component\n x={barX}\n y={v}\n defineChart={defineChart}\n interactive={interactive}\n width={barWidth}\n onDrag={(v) => this.dragValue(value, v)}\n onDragStop={this.dragStop}\n graphProps={graphProps}\n correctness={correctness}\n isHovered={isHovered}\n color={fillColor}\n />\n </g>\n );\n }\n}\n\nconst Bar = withStyles((theme) => ({\n bar: {\n fill: color.defaults.TERTIARY,\n },\n correctIcon: {\n backgroundColor: color.correct(),\n borderRadius: theme.spacing.unit * 2,\n color: color.defaults.WHITE,\n fontSize: '10px',\n width: '10px',\n height: '10px',\n padding: '2px',\n border: `1px solid ${color.defaults.WHITE}`,\n boxSizing: 'unset', // to override the default border-box in IBX\n },\n}))(RawBar);\n\nexport class Bars extends React.Component {\n static propTypes = {\n data: PropTypes.array,\n correctData: PropTypes.array,\n onChangeCategory: PropTypes.func,\n defineChart: PropTypes.bool,\n xBand: PropTypes.func,\n graphProps: types.GraphPropsType.isRequired,\n histogram: PropTypes.bool,\n };\n\n render() {\n const { data, graphProps, xBand, onChangeCategory, defineChart, histogram, correctData } = this.props;\n\n return (\n <Group>\n {(data || []).map((d, index) => (\n <Bar\n value={d.value}\n interactive={defineChart || d.interactive}\n defineChart={defineChart}\n label={d.label}\n xBand={xBand}\n index={index}\n key={`bar-${d.label}-${d.value}-${index}`}\n onChangeCategory={(category) => onChangeCategory(index, category)}\n graphProps={graphProps}\n correctness={d.correctness}\n correctData={correctData}\n barColor={\n histogram &&\n (histogramColors[index] ? histogramColors[index] : histogramColors[index % histogramColors.length])\n }\n />\n ))}\n </Group>\n );\n }\n}\n\nexport default Bars;\n"],"file":"bars.js"}
1
+ {"version":3,"file":"bars.js","names":["_react","_interopRequireDefault","require","_propTypes","_group","_shape","_styles","_debug","_renderUi","_plot","_utils","_dragHandle","_interopRequireWildcard","_correctCheckIcon","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_callSuper","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","log","debug","histogramColors","hoverHistogramColors","calculateFillColor","isHovered","barColor","index","allowRolloverEvent","length","color","visualElementsColors","ROLLOVER_FILL_BAR_COLOR","StyledVxBar","styled","VxBar","fill","defaults","TERTIARY","RawBar","exports","_React$Component","props","_this","_classCallCheck2","_defineProperty2","mouseX","clientX","mouseY","clientY","isMouseInside","isMouseInsideSvgElement","setState","gBoundingBox","gRef","getBoundingClientRect","left","right","top","bottom","dragValue","_this$props","label","onChangeCategory","state","undefined","value","setDragValue","existing","next","_inherits2","_createClass2","key","componentDidMount","window","addEventListener","handleMouseMove","componentWillUnmount","removeEventListener","render","_this2","_this$props2","graphProps","xBand","interactive","correctness","defineChart","correctData","scale","range","_this$state","fillColor","v","Number","isFinite","barWidth","bandwidth","barHeight","y","max","barX","bandKey","rawY","yy","correctValue","find","d","Component","DraggableHandle","DragHandle","isHistogram","createElement","ref","onMouseEnter","handleMouseEnter","onMouseLeave","handleMouseLeave","onTouchStart","onTouchEnd","x","width","height","style","correctVal","parseFloat","isNaN","correctPxHeight","actualPxHeight","diffPx","Math","abs","yDiff","indicatorBarColor","borderGray","WHITE","yToRender","Fragment","stroke","strokeWidth","strokeDasharray","CorrectCheckIcon","dashColor","onDrag","onDragStop","dragStop","React","PropTypes","string","func","number","isRequired","types","GraphPropsType","bool","shape","array","Bar","Bars","_React$Component2","arguments","_this$props3","data","histogram","Group","map","concat","category","_default"],"sources":["../../../src/bars/common/bars.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Group } from '@vx/group';\nimport { Bar as VxBar } from '@vx/shape';\nimport { styled } from '@mui/material/styles';\nimport debug from 'debug';\n\nimport { color } from '@pie-lib/render-ui';\nimport { types } from '@pie-lib/plot';\nimport { bandKey } from '../../utils';\nimport DraggableHandle, { DragHandle } from '../../common/drag-handle';\nimport { CorrectCheckIcon } from './correct-check-icon';\n\nconst log = debug('pie-lib:chart:bars');\nconst histogramColors = [\n '#006699',\n '#F59B00',\n '#08916D',\n '#529EE0',\n '#52B7D8',\n '#D9A6C2',\n '#FFB03B',\n '#54A77B',\n '#E16032',\n '#4FD2D2',\n '#F0E442',\n '#E287B2',\n];\nconst hoverHistogramColors = [\n '#003754',\n '#975616',\n '#00503B',\n '#225982',\n '#1F687D',\n '#825E6F',\n '#996428',\n '#255E44',\n '#8A331F',\n '#167A7A',\n '#91862D',\n '#894A65',\n];\n\nconst calculateFillColor = (isHovered, barColor, index, hoverHistogramColors, allowRolloverEvent) => {\n if (isHovered && barColor && allowRolloverEvent) {\n return hoverHistogramColors[index % hoverHistogramColors.length];\n }\n if (isHovered && allowRolloverEvent) {\n return color.visualElementsColors.ROLLOVER_FILL_BAR_COLOR;\n }\n return barColor || null;\n};\n\nconst StyledVxBar = styled(VxBar)(() => ({\n fill: color.defaults.TERTIARY,\n}));\n\nexport class RawBar extends React.Component {\n static propTypes = {\n barColor: PropTypes.string,\n onChangeCategory: PropTypes.func,\n value: PropTypes.number,\n label: PropTypes.string,\n xBand: PropTypes.func,\n index: PropTypes.number.isRequired,\n graphProps: types.GraphPropsType.isRequired,\n interactive: PropTypes.bool,\n correctness: PropTypes.shape({\n value: PropTypes.string,\n label: PropTypes.string,\n }),\n correctData: PropTypes.array,\n };\n\n constructor(props) {\n super(props);\n this.state = {\n dragValue: undefined,\n isHovered: false,\n };\n this.mouseX = 0;\n this.mouseY = 0;\n }\n\n componentDidMount() {\n window.addEventListener('mousemove', this.handleMouseMove);\n }\n\n componentWillUnmount() {\n window.removeEventListener('mousemove', this.handleMouseMove);\n }\n\n handleMouseMove = (e) => {\n // Update mouse position\n this.mouseX = e.clientX;\n this.mouseY = e.clientY;\n // Check if the mouse is inside the <g> element\n const isMouseInside = this.isMouseInsideSvgElement();\n this.setState({ isHovered: isMouseInside });\n };\n\n isMouseInsideSvgElement = () => {\n const gBoundingBox = this.gRef.getBoundingClientRect();\n // Check if the mouse position is within the bounding box\n return (\n this.mouseX >= gBoundingBox.left &&\n this.mouseX <= gBoundingBox.right &&\n this.mouseY >= gBoundingBox.top &&\n this.mouseY <= gBoundingBox.bottom\n );\n };\n\n handleMouseEnter = () => {\n this.setState({ isHovered: true });\n };\n\n handleMouseLeave = () => {\n this.setState({ isHovered: false });\n };\n\n setDragValue = (dragValue) => this.setState({ dragValue });\n\n dragStop = () => {\n const { label, onChangeCategory } = this.props;\n const { dragValue } = this.state;\n log('[dragStop]', dragValue);\n\n if (dragValue !== undefined) {\n onChangeCategory({ label, value: dragValue });\n }\n\n this.setDragValue(undefined);\n };\n\n dragValue = (existing, next) => {\n log('[dragValue] next:', next);\n\n this.setDragValue(next);\n };\n\n render() {\n const {\n graphProps,\n value,\n label,\n xBand,\n index,\n interactive,\n correctness,\n barColor,\n defineChart,\n correctData,\n } = this.props;\n const { scale, range } = graphProps;\n const { dragValue, isHovered } = this.state;\n\n const allowRolloverEvent = interactive && !correctness;\n const fillColor = calculateFillColor(isHovered, barColor, index, hoverHistogramColors, allowRolloverEvent);\n const v = Number.isFinite(dragValue) ? dragValue : value;\n const barWidth = xBand.bandwidth();\n const barHeight = scale.y(range.max - v);\n const barX = xBand(bandKey({ label }, index));\n const rawY = range.max - v;\n const yy = range.max - rawY;\n const correctValue = correctData ? correctData.find((d) => d.label === label) : null;\n log('label:', label, 'barX:', barX, 'v: ', v, 'barHeight:', barHeight, 'barWidth: ', barWidth);\n\n const Component = interactive ? DraggableHandle : DragHandle;\n const isHistogram = !!barColor;\n\n return (\n <g\n ref={(ref) => (this.gRef = ref)}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n onTouchStart={this.handleMouseEnter}\n onTouchEnd={this.handleMouseLeave}\n >\n <StyledVxBar\n x={barX}\n y={scale.y(yy)}\n width={barWidth}\n height={barHeight}\n style={{ fill: fillColor }}\n />\n {correctness &&\n correctness.value === 'incorrect' &&\n (() => {\n const correctVal = parseFloat(correctValue && correctValue.value);\n if (isNaN(correctVal)) return null;\n const correctPxHeight = scale.y(range.max - correctVal);\n const actualPxHeight = barHeight;\n const diffPx = Math.abs(correctPxHeight - actualPxHeight);\n const yDiff = scale.y(correctVal);\n const indicatorBarColor = correctPxHeight > actualPxHeight ? color.borderGray() : color.defaults.WHITE;\n const yToRender = correctPxHeight > actualPxHeight ? yDiff : yDiff - diffPx;\n\n return (\n <>\n <StyledVxBar\n x={barX + 2} // add 2px for the stroke (the dashed border)\n y={yToRender}\n width={barWidth - 4} // substract 4px for the total stroke\n height={diffPx}\n style={{\n stroke: indicatorBarColor,\n strokeWidth: 2,\n strokeDasharray: '5,2',\n fill: 'none',\n }}\n />\n {/* adjust the position based on whether it's a histogram or not, because the histogram does not have space for the icon on the side */}\n <foreignObject x={barX + barWidth - (isHistogram ? 24 : 14)} y={yDiff - 12} width={24} height={24}>\n <CorrectCheckIcon dashColor={indicatorBarColor} />\n </foreignObject>\n </>\n );\n })()}\n <Component\n x={barX}\n y={v}\n defineChart={defineChart}\n interactive={interactive}\n width={barWidth}\n onDrag={(v) => this.dragValue(value, v)}\n onDragStop={this.dragStop}\n graphProps={graphProps}\n correctness={correctness}\n isHovered={isHovered}\n color={fillColor}\n />\n </g>\n );\n }\n}\n\nconst Bar = RawBar;\n\nexport class Bars extends React.Component {\n static propTypes = {\n data: PropTypes.array,\n correctData: PropTypes.array,\n onChangeCategory: PropTypes.func,\n defineChart: PropTypes.bool,\n xBand: PropTypes.func,\n graphProps: types.GraphPropsType.isRequired,\n histogram: PropTypes.bool,\n };\n\n render() {\n const { data, graphProps, xBand, onChangeCategory, defineChart, histogram, correctData } = this.props;\n\n return (\n <Group>\n {(data || []).map((d, index) => (\n <Bar\n value={d.value}\n interactive={defineChart || d.interactive}\n defineChart={defineChart}\n label={d.label}\n xBand={xBand}\n index={index}\n key={`bar-${d.label}-${d.value}-${index}`}\n onChangeCategory={(category) => onChangeCategory(index, category)}\n graphProps={graphProps}\n correctness={d.correctness}\n correctData={correctData}\n barColor={\n histogram &&\n (histogramColors[index] ? histogramColors[index] : histogramColors[index % histogramColors.length])\n }\n />\n ))}\n </Group>\n );\n }\n}\n\nexport default Bars;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,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_interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.CorrectCheckIcon = void 0;
9
-
10
8
  var _react = _interopRequireDefault(require("react"));
11
-
12
- var CorrectCheckIcon = function CorrectCheckIcon(_ref) {
9
+ var CorrectCheckIcon = exports.CorrectCheckIcon = function CorrectCheckIcon(_ref) {
13
10
  var dashColor = _ref.dashColor;
14
11
  return /*#__PURE__*/_react["default"].createElement("svg", {
15
12
  width: "24",
@@ -50,6 +47,4 @@ var CorrectCheckIcon = function CorrectCheckIcon(_ref) {
50
47
  mask: "url(#path-2-outside-1_3089_3799)"
51
48
  }));
52
49
  };
53
-
54
- exports.CorrectCheckIcon = CorrectCheckIcon;
55
50
  //# sourceMappingURL=correct-check-icon.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/bars/common/correct-check-icon.jsx"],"names":["CorrectCheckIcon","dashColor"],"mappings":";;;;;;;;;AAAA;;AAEO,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB;AAAA,MAAGC,SAAH,QAAGA,SAAH;AAAA,sBAC9B;AAAK,IAAA,KAAK,EAAC,IAAX;AAAgB,IAAA,MAAM,EAAC,IAAvB;AAA4B,IAAA,OAAO,EAAC,WAApC;AAAgD,IAAA,IAAI,EAAC,MAArD;AAA4D,IAAA,KAAK,EAAC;AAAlE,kBACE;AAAQ,IAAA,EAAE,EAAC,IAAX;AAAgB,IAAA,EAAE,EAAC,IAAnB;AAAwB,IAAA,CAAC,EAAC,IAA1B;AAA+B,IAAA,IAAI,EAAC,OAApC;AAA4C,IAAA,MAAM,EAAEA,SAAS,IAAI,SAAjE;AAA4E,IAAA,WAAW,EAAC,GAAxF;AAA4F,IAAA,eAAe,EAAC;AAA5G,IADF,eAEE;AAAM,IAAA,EAAE,EAAC,4BAAT;AAAsC,IAAA,SAAS,EAAC,gBAAhD;AAAiE,IAAA,CAAC,EAAC,GAAnE;AAAuE,IAAA,CAAC,EAAC,GAAzE;AAA6E,IAAA,KAAK,EAAC,IAAnF;AAAwF,IAAA,MAAM,EAAC,IAA/F;AAAoG,IAAA,IAAI,EAAC;AAAzG,kBACE;AAAM,IAAA,IAAI,EAAC,OAAX;AAAmB,IAAA,CAAC,EAAC,GAArB;AAAyB,IAAA,CAAC,EAAC,GAA3B;AAA+B,IAAA,KAAK,EAAC,IAArC;AAA0C,IAAA,MAAM,EAAC;AAAjD,IADF,eAEE;AAAM,IAAA,CAAC,EAAC;AAAR,IAFF,CAFF,eAME;AACE,IAAA,CAAC,EAAC,qfADJ;AAEE,IAAA,IAAI,EAAC;AAFP,IANF,eAUE;AACE,IAAA,CAAC,EAAC,2+FADJ;AAEE,IAAA,IAAI,EAAC,OAFP;AAGE,IAAA,IAAI,EAAC;AAHP,IAVF,CAD8B;AAAA,CAAzB","sourcesContent":["import React from 'react';\n\nexport const CorrectCheckIcon = ({ dashColor }) => (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"12\" cy=\"12\" r=\"11\" fill=\"white\" stroke={dashColor || '#7E8494'} strokeWidth=\"2\" strokeDasharray=\"5 5\" />\n <mask id=\"path-2-outside-1_3089_3799\" maskUnits=\"userSpaceOnUse\" x=\"2\" y=\"3\" width=\"19\" height=\"18\" fill=\"black\">\n <rect fill=\"white\" x=\"2\" y=\"3\" width=\"19\" height=\"18\" />\n <path d=\"M12 20C9.125 20 6.5 18.5 5.0625 16C3.625 13.5312 3.625 10.5 5.0625 8C6.5 5.53125 9.125 4 12 4C14.8438 4 17.4688 5.53125 18.9062 8C20.3438 10.5 20.3438 13.5312 18.9062 16C17.4688 18.5 14.8438 20 12 20ZM15.5312 10.5312H15.5C15.8125 10.25 15.8125 9.78125 15.5 9.46875C15.2188 9.1875 14.75 9.1875 14.4688 9.46875L11 12.9688L9.53125 11.5C9.21875 11.1875 8.75 11.1875 8.46875 11.5C8.15625 11.7812 8.15625 12.25 8.46875 12.5312L10.4688 14.5312C10.75 14.8438 11.2188 14.8438 11.5312 14.5312L15.5312 10.5312Z\" />\n </mask>\n <path\n d=\"M12 20C9.125 20 6.5 18.5 5.0625 16C3.625 13.5312 3.625 10.5 5.0625 8C6.5 5.53125 9.125 4 12 4C14.8438 4 17.4688 5.53125 18.9062 8C20.3438 10.5 20.3438 13.5312 18.9062 16C17.4688 18.5 14.8438 20 12 20ZM15.5312 10.5312H15.5C15.8125 10.25 15.8125 9.78125 15.5 9.46875C15.2188 9.1875 14.75 9.1875 14.4688 9.46875L11 12.9688L9.53125 11.5C9.21875 11.1875 8.75 11.1875 8.46875 11.5C8.15625 11.7812 8.15625 12.25 8.46875 12.5312L10.4688 14.5312C10.75 14.8438 11.2188 14.8438 11.5312 14.5312L15.5312 10.5312Z\"\n fill=\"#0EA449\"\n />\n <path\n d=\"M5.0625 16L5.92942 15.5015L5.92668 15.4968L5.0625 16ZM5.0625 8L4.19831 7.4968L4.19559 7.50153L5.0625 8ZM18.9062 8L19.7732 7.50152L19.7704 7.49681L18.9062 8ZM18.9062 16L18.0421 15.4968L18.0393 15.5015L18.9062 16ZM15.5312 10.5312L16.2384 11.2384L17.9455 9.53125H15.5312V10.5312ZM15.5 10.5312L14.831 9.78796L12.894 11.5312H15.5V10.5312ZM14.4688 9.46875L13.7616 8.76164L13.7585 8.76482L14.4688 9.46875ZM11 12.9688L10.2929 13.6759L11.0032 14.3861L11.7103 13.6727L11 12.9688ZM8.46875 11.5L9.13771 12.2433L9.17684 12.2081L9.21204 12.169L8.46875 11.5ZM8.46875 12.5312L9.17586 11.8241L9.15726 11.8055L9.13771 11.788L8.46875 12.5312ZM10.4688 14.5312L11.212 13.8623L11.1945 13.8427L11.1759 13.8241L10.4688 14.5312ZM12 20V19C9.479 19 7.18657 17.6879 5.92941 15.5015L5.0625 16L4.19559 16.4985C5.81343 19.3121 8.771 21 12 21V20ZM5.0625 16L5.92668 15.4968C4.6714 13.341 4.66824 10.6918 5.92941 8.49847L5.0625 8L4.19559 7.50153C2.58176 10.3082 2.5786 13.7215 4.19832 16.5032L5.0625 16ZM5.0625 8L5.92668 8.50319C7.18712 6.33851 9.48502 5 12 5V4V3C8.76498 3 5.81288 4.72399 4.19832 7.49681L5.0625 8ZM12 4V5C14.4816 5 16.7805 6.33661 18.0421 8.50319L18.9062 8L19.7704 7.49681C18.157 4.72589 15.2059 3 12 3V4ZM18.9062 8L18.0393 8.49847C19.3005 10.6918 19.2973 13.341 18.0421 15.4968L18.9062 16L19.7704 16.5032C21.3902 13.7215 21.387 10.3082 19.7732 7.50153L18.9062 8ZM18.9062 16L18.0393 15.5015C16.7811 17.6898 14.4876 19 12 19V20V21C15.1999 21 18.1564 19.3102 19.7732 16.4985L18.9062 16ZM15.5312 10.5312V9.53125H15.5V10.5312V11.5312H15.5312V10.5312ZM15.5 10.5312L16.169 11.2745C16.9447 10.5764 16.8883 9.44281 16.2071 8.76164L15.5 9.46875L14.7929 10.1759C14.7696 10.1525 14.7344 10.0966 14.7344 10.0117C14.7344 9.92377 14.7735 9.83972 14.831 9.78796L15.5 10.5312ZM15.5 9.46875L16.2071 8.76164C15.5353 8.08987 14.4334 8.08987 13.7616 8.76164L14.4688 9.46875L15.1759 10.1759C15.1167 10.235 15.0442 10.2578 14.9844 10.2578C14.9245 10.2578 14.8521 10.235 14.7929 10.1759L15.5 9.46875ZM14.4688 9.46875L13.7585 8.76482L10.2897 12.2648L11 12.9688L11.7103 13.6727L15.179 10.1727L14.4688 9.46875ZM11 12.9688L11.7071 12.2616L10.2384 10.7929L9.53125 11.5L8.82414 12.2071L10.2929 13.6759L11 12.9688ZM9.53125 11.5L10.2384 10.7929C9.55719 10.1117 8.42362 10.0553 7.72546 10.831L8.46875 11.5L9.21204 12.169C9.16028 12.2265 9.07623 12.2656 8.98828 12.2656C8.90344 12.2656 8.84748 12.2304 8.82414 12.2071L9.53125 11.5ZM8.46875 11.5L7.79979 10.7567C7.04591 11.4352 7.04591 12.5961 7.79979 13.2745L8.46875 12.5312L9.13771 11.788C9.19301 11.8377 9.23438 11.9208 9.23438 12.0156C9.23438 12.1105 9.19301 12.1935 9.13771 12.2433L8.46875 11.5ZM8.46875 12.5312L7.76164 13.2384L9.76164 15.2384L10.4688 14.5312L11.1759 13.8241L9.17586 11.8241L8.46875 12.5312ZM10.4688 14.5312L9.72546 15.2002C10.4236 15.976 11.5572 15.9195 12.2384 15.2384L11.5312 14.5312L10.8241 13.8241C10.8475 13.8008 10.9034 13.7656 10.9883 13.7656C11.0762 13.7656 11.1603 13.8048 11.212 13.8623L10.4688 14.5312ZM11.5312 14.5312L12.2384 15.2384L16.2384 11.2384L15.5312 10.5312L14.8241 9.82414L10.8241 13.8241L11.5312 14.5312Z\"\n fill=\"white\"\n mask=\"url(#path-2-outside-1_3089_3799)\"\n />\n </svg>\n);\n"],"file":"correct-check-icon.js"}
1
+ {"version":3,"file":"correct-check-icon.js","names":["_react","_interopRequireDefault","require","CorrectCheckIcon","exports","_ref","dashColor","createElement","width","height","viewBox","fill","xmlns","cx","cy","r","stroke","strokeWidth","strokeDasharray","id","maskUnits","x","y","d","mask"],"sources":["../../../src/bars/common/correct-check-icon.jsx"],"sourcesContent":["import React from 'react';\n\nexport const CorrectCheckIcon = ({ dashColor }) => (\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle cx=\"12\" cy=\"12\" r=\"11\" fill=\"white\" stroke={dashColor || '#7E8494'} strokeWidth=\"2\" strokeDasharray=\"5 5\" />\n <mask id=\"path-2-outside-1_3089_3799\" maskUnits=\"userSpaceOnUse\" x=\"2\" y=\"3\" width=\"19\" height=\"18\" fill=\"black\">\n <rect fill=\"white\" x=\"2\" y=\"3\" width=\"19\" height=\"18\" />\n <path d=\"M12 20C9.125 20 6.5 18.5 5.0625 16C3.625 13.5312 3.625 10.5 5.0625 8C6.5 5.53125 9.125 4 12 4C14.8438 4 17.4688 5.53125 18.9062 8C20.3438 10.5 20.3438 13.5312 18.9062 16C17.4688 18.5 14.8438 20 12 20ZM15.5312 10.5312H15.5C15.8125 10.25 15.8125 9.78125 15.5 9.46875C15.2188 9.1875 14.75 9.1875 14.4688 9.46875L11 12.9688L9.53125 11.5C9.21875 11.1875 8.75 11.1875 8.46875 11.5C8.15625 11.7812 8.15625 12.25 8.46875 12.5312L10.4688 14.5312C10.75 14.8438 11.2188 14.8438 11.5312 14.5312L15.5312 10.5312Z\" />\n </mask>\n <path\n d=\"M12 20C9.125 20 6.5 18.5 5.0625 16C3.625 13.5312 3.625 10.5 5.0625 8C6.5 5.53125 9.125 4 12 4C14.8438 4 17.4688 5.53125 18.9062 8C20.3438 10.5 20.3438 13.5312 18.9062 16C17.4688 18.5 14.8438 20 12 20ZM15.5312 10.5312H15.5C15.8125 10.25 15.8125 9.78125 15.5 9.46875C15.2188 9.1875 14.75 9.1875 14.4688 9.46875L11 12.9688L9.53125 11.5C9.21875 11.1875 8.75 11.1875 8.46875 11.5C8.15625 11.7812 8.15625 12.25 8.46875 12.5312L10.4688 14.5312C10.75 14.8438 11.2188 14.8438 11.5312 14.5312L15.5312 10.5312Z\"\n fill=\"#0EA449\"\n />\n <path\n d=\"M5.0625 16L5.92942 15.5015L5.92668 15.4968L5.0625 16ZM5.0625 8L4.19831 7.4968L4.19559 7.50153L5.0625 8ZM18.9062 8L19.7732 7.50152L19.7704 7.49681L18.9062 8ZM18.9062 16L18.0421 15.4968L18.0393 15.5015L18.9062 16ZM15.5312 10.5312L16.2384 11.2384L17.9455 9.53125H15.5312V10.5312ZM15.5 10.5312L14.831 9.78796L12.894 11.5312H15.5V10.5312ZM14.4688 9.46875L13.7616 8.76164L13.7585 8.76482L14.4688 9.46875ZM11 12.9688L10.2929 13.6759L11.0032 14.3861L11.7103 13.6727L11 12.9688ZM8.46875 11.5L9.13771 12.2433L9.17684 12.2081L9.21204 12.169L8.46875 11.5ZM8.46875 12.5312L9.17586 11.8241L9.15726 11.8055L9.13771 11.788L8.46875 12.5312ZM10.4688 14.5312L11.212 13.8623L11.1945 13.8427L11.1759 13.8241L10.4688 14.5312ZM12 20V19C9.479 19 7.18657 17.6879 5.92941 15.5015L5.0625 16L4.19559 16.4985C5.81343 19.3121 8.771 21 12 21V20ZM5.0625 16L5.92668 15.4968C4.6714 13.341 4.66824 10.6918 5.92941 8.49847L5.0625 8L4.19559 7.50153C2.58176 10.3082 2.5786 13.7215 4.19832 16.5032L5.0625 16ZM5.0625 8L5.92668 8.50319C7.18712 6.33851 9.48502 5 12 5V4V3C8.76498 3 5.81288 4.72399 4.19832 7.49681L5.0625 8ZM12 4V5C14.4816 5 16.7805 6.33661 18.0421 8.50319L18.9062 8L19.7704 7.49681C18.157 4.72589 15.2059 3 12 3V4ZM18.9062 8L18.0393 8.49847C19.3005 10.6918 19.2973 13.341 18.0421 15.4968L18.9062 16L19.7704 16.5032C21.3902 13.7215 21.387 10.3082 19.7732 7.50153L18.9062 8ZM18.9062 16L18.0393 15.5015C16.7811 17.6898 14.4876 19 12 19V20V21C15.1999 21 18.1564 19.3102 19.7732 16.4985L18.9062 16ZM15.5312 10.5312V9.53125H15.5V10.5312V11.5312H15.5312V10.5312ZM15.5 10.5312L16.169 11.2745C16.9447 10.5764 16.8883 9.44281 16.2071 8.76164L15.5 9.46875L14.7929 10.1759C14.7696 10.1525 14.7344 10.0966 14.7344 10.0117C14.7344 9.92377 14.7735 9.83972 14.831 9.78796L15.5 10.5312ZM15.5 9.46875L16.2071 8.76164C15.5353 8.08987 14.4334 8.08987 13.7616 8.76164L14.4688 9.46875L15.1759 10.1759C15.1167 10.235 15.0442 10.2578 14.9844 10.2578C14.9245 10.2578 14.8521 10.235 14.7929 10.1759L15.5 9.46875ZM14.4688 9.46875L13.7585 8.76482L10.2897 12.2648L11 12.9688L11.7103 13.6727L15.179 10.1727L14.4688 9.46875ZM11 12.9688L11.7071 12.2616L10.2384 10.7929L9.53125 11.5L8.82414 12.2071L10.2929 13.6759L11 12.9688ZM9.53125 11.5L10.2384 10.7929C9.55719 10.1117 8.42362 10.0553 7.72546 10.831L8.46875 11.5L9.21204 12.169C9.16028 12.2265 9.07623 12.2656 8.98828 12.2656C8.90344 12.2656 8.84748 12.2304 8.82414 12.2071L9.53125 11.5ZM8.46875 11.5L7.79979 10.7567C7.04591 11.4352 7.04591 12.5961 7.79979 13.2745L8.46875 12.5312L9.13771 11.788C9.19301 11.8377 9.23438 11.9208 9.23438 12.0156C9.23438 12.1105 9.19301 12.1935 9.13771 12.2433L8.46875 11.5ZM8.46875 12.5312L7.76164 13.2384L9.76164 15.2384L10.4688 14.5312L11.1759 13.8241L9.17586 11.8241L8.46875 12.5312ZM10.4688 14.5312L9.72546 15.2002C10.4236 15.976 11.5572 15.9195 12.2384 15.2384L11.5312 14.5312L10.8241 13.8241C10.8475 13.8008 10.9034 13.7656 10.9883 13.7656C11.0762 13.7656 11.1603 13.8048 11.212 13.8623L10.4688 14.5312ZM11.5312 14.5312L12.2384 15.2384L16.2384 11.2384L15.5312 10.5312L14.8241 9.82414L10.8241 13.8241L11.5312 14.5312Z\"\n fill=\"white\"\n mask=\"url(#path-2-outside-1_3089_3799)\"\n />\n </svg>\n);\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEO,IAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,SAAnBA,gBAAgBA,CAAAE,IAAA;EAAA,IAAMC,SAAS,GAAAD,IAAA,CAATC,SAAS;EAAA,oBAC1CN,MAAA,YAAAO,aAAA;IAAKC,KAAK,EAAC,IAAI;IAACC,MAAM,EAAC,IAAI;IAACC,OAAO,EAAC,WAAW;IAACC,IAAI,EAAC,MAAM;IAACC,KAAK,EAAC;EAA4B,gBAC5FZ,MAAA,YAAAO,aAAA;IAAQM,EAAE,EAAC,IAAI;IAACC,EAAE,EAAC,IAAI;IAACC,CAAC,EAAC,IAAI;IAACJ,IAAI,EAAC,OAAO;IAACK,MAAM,EAAEV,SAAS,IAAI,SAAU;IAACW,WAAW,EAAC,GAAG;IAACC,eAAe,EAAC;EAAK,CAAE,CAAC,eACpHlB,MAAA,YAAAO,aAAA;IAAMY,EAAE,EAAC,4BAA4B;IAACC,SAAS,EAAC,gBAAgB;IAACC,CAAC,EAAC,GAAG;IAACC,CAAC,EAAC,GAAG;IAACd,KAAK,EAAC,IAAI;IAACC,MAAM,EAAC,IAAI;IAACE,IAAI,EAAC;EAAO,gBAC9GX,MAAA,YAAAO,aAAA;IAAMI,IAAI,EAAC,OAAO;IAACU,CAAC,EAAC,GAAG;IAACC,CAAC,EAAC,GAAG;IAACd,KAAK,EAAC,IAAI;IAACC,MAAM,EAAC;EAAI,CAAE,CAAC,eACxDT,MAAA,YAAAO,aAAA;IAAMgB,CAAC,EAAC;EAAqf,CAAE,CAC3f,CAAC,eACPvB,MAAA,YAAAO,aAAA;IACEgB,CAAC,EAAC,qfAAqf;IACvfZ,IAAI,EAAC;EAAS,CACf,CAAC,eACFX,MAAA,YAAAO,aAAA;IACEgB,CAAC,EAAC,2+FAA2+F;IAC7+FZ,IAAI,EAAC,OAAO;IACZa,IAAI,EAAC;EAAkC,CACxC,CACE,CAAC;AAAA,CACP","ignoreList":[]}
@@ -1,63 +1,41 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = exports.Histogram = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
-
14
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
-
16
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
-
18
11
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
19
-
20
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
-
13
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
22
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
-
24
15
  var _react = _interopRequireDefault(require("react"));
25
-
26
16
  var _propTypes = _interopRequireDefault(require("prop-types"));
27
-
28
17
  var _plot = require("@pie-lib/plot");
29
-
30
18
  var _utils = require("../utils");
31
-
32
19
  var _bars = _interopRequireDefault(require("./common/bars"));
33
-
34
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
35
-
36
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37
-
38
- var Histogram = /*#__PURE__*/function (_React$Component) {
39
- (0, _inherits2["default"])(Histogram, _React$Component);
40
-
41
- var _super = _createSuper(Histogram);
42
-
20
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
21
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
+ var Histogram = exports.Histogram = /*#__PURE__*/function (_React$Component) {
43
23
  function Histogram() {
44
24
  (0, _classCallCheck2["default"])(this, Histogram);
45
- return _super.apply(this, arguments);
25
+ return _callSuper(this, Histogram, arguments);
46
26
  }
47
-
48
- (0, _createClass2["default"])(Histogram, [{
27
+ (0, _inherits2["default"])(Histogram, _React$Component);
28
+ return (0, _createClass2["default"])(Histogram, [{
49
29
  key: "render",
50
30
  value: function render() {
51
31
  var props = this.props;
52
32
  var data = props.data,
53
- graphProps = props.graphProps;
54
-
33
+ graphProps = props.graphProps;
55
34
  var _ref = graphProps || {},
56
- _ref$scale = _ref.scale,
57
- scale = _ref$scale === void 0 ? {} : _ref$scale,
58
- _ref$size = _ref.size,
59
- size = _ref$size === void 0 ? {} : _ref$size;
60
-
35
+ _ref$scale = _ref.scale,
36
+ scale = _ref$scale === void 0 ? {} : _ref$scale,
37
+ _ref$size = _ref.size,
38
+ size = _ref$size === void 0 ? {} : _ref$size;
61
39
  var xBand = (0, _utils.dataToXBand)(scale.x, data, size.width, 'histogram');
62
40
  return /*#__PURE__*/_react["default"].createElement(_bars["default"], (0, _extends2["default"])({}, props, {
63
41
  xBand: xBand,
@@ -65,23 +43,17 @@ var Histogram = /*#__PURE__*/function (_React$Component) {
65
43
  }));
66
44
  }
67
45
  }]);
68
- return Histogram;
69
46
  }(_react["default"].Component);
70
-
71
- exports.Histogram = Histogram;
72
47
  (0, _defineProperty2["default"])(Histogram, "propTypes", {
73
48
  data: _propTypes["default"].array,
74
49
  onChange: _propTypes["default"].func,
75
50
  graphProps: _plot.types.GraphPropsType.isRequired
76
51
  });
77
-
78
- var _default = function _default() {
52
+ var _default = exports["default"] = function _default() {
79
53
  return {
80
54
  type: 'histogram',
81
55
  Component: Histogram,
82
56
  name: 'Histogram'
83
57
  };
84
58
  };
85
-
86
- exports["default"] = _default;
87
59
  //# sourceMappingURL=histogram.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/bars/histogram.js"],"names":["Histogram","props","data","graphProps","scale","size","xBand","x","width","React","Component","PropTypes","array","onChange","func","types","GraphPropsType","isRequired","type","name"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;IAEaA,S;;;;;;;;;;;;WAOX,kBAAS;AACP,UAAMC,KAAK,GAAG,KAAKA,KAAnB;AACA,UAAQC,IAAR,GAA6BD,KAA7B,CAAQC,IAAR;AAAA,UAAcC,UAAd,GAA6BF,KAA7B,CAAcE,UAAd;;AACA,iBAAkCA,UAAU,IAAI,EAAhD;AAAA,4BAAQC,KAAR;AAAA,UAAQA,KAAR,2BAAgB,EAAhB;AAAA,2BAAoBC,IAApB;AAAA,UAAoBA,IAApB,0BAA2B,EAA3B;;AACA,UAAMC,KAAK,GAAG,wBAAYF,KAAK,CAACG,CAAlB,EAAqBL,IAArB,EAA2BG,IAAI,CAACG,KAAhC,EAAuC,WAAvC,CAAd;AAEA,0BAAO,gCAAC,gBAAD,gCAAUP,KAAV;AAAiB,QAAA,KAAK,EAAEK,KAAxB;AAA+B,QAAA,SAAS,EAAE;AAA1C,SAAP;AACD;;;EAd4BG,kBAAMC,S;;;iCAAxBV,S,eACQ;AACjBE,EAAAA,IAAI,EAAES,sBAAUC,KADC;AAEjBC,EAAAA,QAAQ,EAAEF,sBAAUG,IAFH;AAGjBX,EAAAA,UAAU,EAAEY,YAAMC,cAAN,CAAqBC;AAHhB,C;;eAgBN;AAAA,SAAO;AACpBC,IAAAA,IAAI,EAAE,WADc;AAEpBR,IAAAA,SAAS,EAAEV,SAFS;AAGpBmB,IAAAA,IAAI,EAAE;AAHc,GAAP;AAAA,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { types } from '@pie-lib/plot';\nimport { dataToXBand } from '../utils';\nimport Bars from './common/bars';\n\nexport class Histogram extends React.Component {\n static propTypes = {\n data: PropTypes.array,\n onChange: PropTypes.func,\n graphProps: types.GraphPropsType.isRequired,\n };\n\n render() {\n const props = this.props;\n const { data, graphProps } = props;\n const { scale = {}, size = {} } = graphProps || {};\n const xBand = dataToXBand(scale.x, data, size.width, 'histogram');\n\n return <Bars {...props} xBand={xBand} histogram={true} />;\n }\n}\n\nexport default () => ({\n type: 'histogram',\n Component: Histogram,\n name: 'Histogram',\n});\n"],"file":"histogram.js"}
1
+ {"version":3,"file":"histogram.js","names":["_react","_interopRequireDefault","require","_propTypes","_plot","_utils","_bars","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","Histogram","exports","_React$Component","_classCallCheck2","arguments","_inherits2","_createClass2","key","value","render","props","data","graphProps","_ref","_ref$scale","scale","_ref$size","size","xBand","dataToXBand","x","width","createElement","_extends2","histogram","React","Component","_defineProperty2","PropTypes","array","onChange","func","types","GraphPropsType","isRequired","_default","type","name"],"sources":["../../src/bars/histogram.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { types } from '@pie-lib/plot';\nimport { dataToXBand } from '../utils';\nimport Bars from './common/bars';\n\nexport class Histogram extends React.Component {\n static propTypes = {\n data: PropTypes.array,\n onChange: PropTypes.func,\n graphProps: types.GraphPropsType.isRequired,\n };\n\n render() {\n const props = this.props;\n const { data, graphProps } = props;\n const { scale = {}, size = {} } = graphProps || {};\n const xBand = dataToXBand(scale.x, data, size.width, 'histogram');\n\n return <Bars {...props} xBand={xBand} histogram={true} />;\n }\n}\n\nexport default () => ({\n type: 'histogram',\n Component: Histogram,\n name: 'Histogram',\n});\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAL,sBAAA,CAAAC,OAAA;AAAiC,SAAAK,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAA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