@semcore/d3-chart 2.13.3 → 2.13.5

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 (152) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/lib/cjs/Area.js +59 -97
  3. package/lib/cjs/Area.js.map +1 -1
  4. package/lib/cjs/Axis.js +76 -143
  5. package/lib/cjs/Axis.js.map +1 -1
  6. package/lib/cjs/Bar.js +49 -96
  7. package/lib/cjs/Bar.js.map +1 -1
  8. package/lib/cjs/Bubble.js +39 -81
  9. package/lib/cjs/Bubble.js.map +1 -1
  10. package/lib/cjs/ClipPath.js +9 -35
  11. package/lib/cjs/ClipPath.js.map +1 -1
  12. package/lib/cjs/Donut.js +77 -152
  13. package/lib/cjs/Donut.js.map +1 -1
  14. package/lib/cjs/Dots.js +29 -57
  15. package/lib/cjs/Dots.js.map +1 -1
  16. package/lib/cjs/GroupBar.js +5 -26
  17. package/lib/cjs/GroupBar.js.map +1 -1
  18. package/lib/cjs/HorizontalBar.js +43 -84
  19. package/lib/cjs/HorizontalBar.js.map +1 -1
  20. package/lib/cjs/Hover.js +33 -88
  21. package/lib/cjs/Hover.js.map +1 -1
  22. package/lib/cjs/Line.js +42 -78
  23. package/lib/cjs/Line.js.map +1 -1
  24. package/lib/cjs/Plot.js +27 -73
  25. package/lib/cjs/Plot.js.map +1 -1
  26. package/lib/cjs/Radar.js +152 -277
  27. package/lib/cjs/Radar.js.map +1 -1
  28. package/lib/cjs/RadialTree.js +105 -211
  29. package/lib/cjs/RadialTree.js.map +1 -1
  30. package/lib/cjs/ReferenceLine.js +45 -87
  31. package/lib/cjs/ReferenceLine.js.map +1 -1
  32. package/lib/cjs/ResponsiveContainer.js +9 -38
  33. package/lib/cjs/ResponsiveContainer.js.map +1 -1
  34. package/lib/cjs/ScatterPlot.js +34 -74
  35. package/lib/cjs/ScatterPlot.js.map +1 -1
  36. package/lib/cjs/StackBar.js +9 -38
  37. package/lib/cjs/StackBar.js.map +1 -1
  38. package/lib/cjs/StackedArea.js +5 -29
  39. package/lib/cjs/StackedArea.js.map +1 -1
  40. package/lib/cjs/Tooltip.js +27 -76
  41. package/lib/cjs/Tooltip.js.map +1 -1
  42. package/lib/cjs/Venn.js +32 -75
  43. package/lib/cjs/Venn.js.map +1 -1
  44. package/lib/cjs/a11y/PlotA11yModule.js +18 -71
  45. package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
  46. package/lib/cjs/a11y/PlotA11yView.js +19 -83
  47. package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
  48. package/lib/cjs/a11y/bezier.js +0 -7
  49. package/lib/cjs/a11y/bezier.js.map +1 -1
  50. package/lib/cjs/a11y/focus.js +2 -11
  51. package/lib/cjs/a11y/focus.js.map +1 -1
  52. package/lib/cjs/a11y/hints.js +0 -13
  53. package/lib/cjs/a11y/hints.js.map +1 -1
  54. package/lib/cjs/a11y/insights.js +21 -132
  55. package/lib/cjs/a11y/insights.js.map +1 -1
  56. package/lib/cjs/a11y/intl.js +0 -6
  57. package/lib/cjs/a11y/intl.js.map +1 -1
  58. package/lib/cjs/a11y/locale.js +4 -22
  59. package/lib/cjs/a11y/locale.js.map +1 -1
  60. package/lib/cjs/a11y/serialize.js +23 -83
  61. package/lib/cjs/a11y/serialize.js.map +1 -1
  62. package/lib/cjs/a11y/summarize.js +0 -4
  63. package/lib/cjs/a11y/summarize.js.map +1 -1
  64. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +0 -13
  65. package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  66. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +0 -13
  67. package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  68. package/lib/cjs/color.js +0 -3
  69. package/lib/cjs/color.js.map +1 -1
  70. package/lib/cjs/createElement.js +18 -47
  71. package/lib/cjs/createElement.js.map +1 -1
  72. package/lib/cjs/index.js +0 -23
  73. package/lib/cjs/index.js.map +1 -1
  74. package/lib/cjs/types/Plot.d.js.map +1 -1
  75. package/lib/cjs/types/index.d.js +0 -39
  76. package/lib/cjs/types/index.d.js.map +1 -1
  77. package/lib/cjs/utils.js +7 -59
  78. package/lib/cjs/utils.js.map +1 -1
  79. package/lib/es6/Area.js +59 -86
  80. package/lib/es6/Area.js.map +1 -1
  81. package/lib/es6/Axis.js +76 -135
  82. package/lib/es6/Axis.js.map +1 -1
  83. package/lib/es6/Bar.js +49 -86
  84. package/lib/es6/Bar.js.map +1 -1
  85. package/lib/es6/Bubble.js +39 -70
  86. package/lib/es6/Bubble.js.map +1 -1
  87. package/lib/es6/ClipPath.js +9 -23
  88. package/lib/es6/ClipPath.js.map +1 -1
  89. package/lib/es6/Donut.js +77 -141
  90. package/lib/es6/Donut.js.map +1 -1
  91. package/lib/es6/Dots.js +29 -46
  92. package/lib/es6/Dots.js.map +1 -1
  93. package/lib/es6/GroupBar.js +5 -15
  94. package/lib/es6/GroupBar.js.map +1 -1
  95. package/lib/es6/HorizontalBar.js +43 -75
  96. package/lib/es6/HorizontalBar.js.map +1 -1
  97. package/lib/es6/Hover.js +33 -85
  98. package/lib/es6/Hover.js.map +1 -1
  99. package/lib/es6/Line.js +42 -67
  100. package/lib/es6/Line.js.map +1 -1
  101. package/lib/es6/Plot.js +27 -66
  102. package/lib/es6/Plot.js.map +1 -1
  103. package/lib/es6/Radar.js +152 -281
  104. package/lib/es6/Radar.js.map +1 -1
  105. package/lib/es6/RadialTree.js +105 -203
  106. package/lib/es6/RadialTree.js.map +1 -1
  107. package/lib/es6/ReferenceLine.js +45 -79
  108. package/lib/es6/ReferenceLine.js.map +1 -1
  109. package/lib/es6/ResponsiveContainer.js +9 -28
  110. package/lib/es6/ResponsiveContainer.js.map +1 -1
  111. package/lib/es6/ScatterPlot.js +34 -65
  112. package/lib/es6/ScatterPlot.js.map +1 -1
  113. package/lib/es6/StackBar.js +9 -26
  114. package/lib/es6/StackBar.js.map +1 -1
  115. package/lib/es6/StackedArea.js +5 -18
  116. package/lib/es6/StackedArea.js.map +1 -1
  117. package/lib/es6/Tooltip.js +27 -63
  118. package/lib/es6/Tooltip.js.map +1 -1
  119. package/lib/es6/Venn.js +32 -64
  120. package/lib/es6/Venn.js.map +1 -1
  121. package/lib/es6/a11y/PlotA11yModule.js +18 -52
  122. package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
  123. package/lib/es6/a11y/PlotA11yView.js +19 -53
  124. package/lib/es6/a11y/PlotA11yView.js.map +1 -1
  125. package/lib/es6/a11y/bezier.js +0 -5
  126. package/lib/es6/a11y/bezier.js.map +1 -1
  127. package/lib/es6/a11y/focus.js +2 -9
  128. package/lib/es6/a11y/focus.js.map +1 -1
  129. package/lib/es6/a11y/hints.js +0 -3
  130. package/lib/es6/a11y/hints.js.map +1 -1
  131. package/lib/es6/a11y/insights.js +21 -133
  132. package/lib/es6/a11y/insights.js.map +1 -1
  133. package/lib/es6/a11y/intl.js +0 -1
  134. package/lib/es6/a11y/intl.js.map +1 -1
  135. package/lib/es6/a11y/locale.js +4 -18
  136. package/lib/es6/a11y/locale.js.map +1 -1
  137. package/lib/es6/a11y/serialize.js +23 -74
  138. package/lib/es6/a11y/serialize.js.map +1 -1
  139. package/lib/es6/a11y/summarize.js.map +1 -1
  140. package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
  141. package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
  142. package/lib/es6/color.js +0 -1
  143. package/lib/es6/color.js.map +1 -1
  144. package/lib/es6/createElement.js +18 -34
  145. package/lib/es6/createElement.js.map +1 -1
  146. package/lib/es6/index.js.map +1 -1
  147. package/lib/es6/types/Plot.d.js.map +1 -1
  148. package/lib/es6/types/index.d.js +5 -3
  149. package/lib/es6/types/index.d.js.map +1 -1
  150. package/lib/es6/utils.js +7 -28
  151. package/lib/es6/utils.js.map +1 -1
  152. package/package.json +1 -1
@@ -1,60 +1,45 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
8
  exports["default"] = void 0;
11
-
12
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
-
14
10
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
15
-
16
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
17
-
18
12
  var _react = _interopRequireWildcard(require("react"));
19
-
20
13
  var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics"));
21
-
22
14
  var _core = _interopRequireWildcard(require("@semcore/core"));
23
-
24
15
  var _assignProps = _interopRequireDefault(require("@semcore/utils/lib/assignProps"));
25
-
26
16
  var _ref3 = require("@semcore/utils/lib/ref");
27
-
28
17
  var _propsForElement = _interopRequireDefault(require("@semcore/utils/lib/propsForElement"));
29
-
30
18
  var _getOriginChildren = _interopRequireDefault(require("@semcore/utils/lib/getOriginChildren"));
31
-
32
19
  var _Plot = _interopRequireDefault(require("./Plot"));
33
-
34
20
  var _excluded = ["render", "childrenPosition", "x", "y"],
35
- _excluded2 = ["forwardRef", "children", "Children", "x", "y"],
36
- _excluded3 = ["$rootProps"];
21
+ _excluded2 = ["forwardRef", "children", "Children", "x", "y"],
22
+ _excluded3 = ["$rootProps"];
37
23
  var EXCLUDE_PROPS = ['data', 'scale'];
38
-
39
24
  function createElementRender() {
40
25
  var Element = /*#__PURE__*/_react["default"].forwardRef(function ( // eslint-disable-next-line @typescript-eslint/no-unused-vars
41
26
  _ref, ref) {
42
27
  var render = _ref.render,
43
- _ref$childrenPosition = _ref.childrenPosition,
44
- childrenPosition = _ref$childrenPosition === void 0 ? 'below' : _ref$childrenPosition,
45
- xS = _ref.x,
46
- yS = _ref.y,
47
- source = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
28
+ _ref$childrenPosition = _ref.childrenPosition,
29
+ childrenPosition = _ref$childrenPosition === void 0 ? 'below' : _ref$childrenPosition,
30
+ xS = _ref.x,
31
+ yS = _ref.y,
32
+ source = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
48
33
  var _Element$props = Element.props,
49
- _Element$props$forwar = _Element$props.forwardRef,
50
- forwardRef = _Element$props$forwar === void 0 ? null : _Element$props$forwar,
51
- _children = _Element$props.children,
52
- Children = _Element$props.Children,
53
- _Element$props$x = _Element$props.x,
54
- x = _Element$props$x === void 0 ? xS : _Element$props$x,
55
- _Element$props$y = _Element$props.y,
56
- y = _Element$props$y === void 0 ? yS : _Element$props$y,
57
- props = (0, _objectWithoutProperties2["default"])(_Element$props, _excluded2);
34
+ _Element$props$forwar = _Element$props.forwardRef,
35
+ forwardRef = _Element$props$forwar === void 0 ? null : _Element$props$forwar,
36
+ _children = _Element$props.children,
37
+ Children = _Element$props.Children,
38
+ _Element$props$x = _Element$props.x,
39
+ x = _Element$props$x === void 0 ? xS : _Element$props$x,
40
+ _Element$props$y = _Element$props.y,
41
+ y = _Element$props$y === void 0 ? yS : _Element$props$y,
42
+ props = (0, _objectWithoutProperties2["default"])(_Element$props, _excluded2);
58
43
  var children = (0, _getOriginChildren["default"])(Children);
59
44
  var mergedProps = (0, _assignProps["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])({
60
45
  x: xS,
@@ -65,24 +50,19 @@ function createElementRender() {
65
50
  x: x,
66
51
  y: y
67
52
  }, source));
68
-
69
53
  if (typeof children === 'function') {
70
54
  var _child = mergedProps.children;
71
55
  mergedProps = (0, _assignProps["default"])(children(mergedProps), mergedProps);
72
56
  children = mergedProps.children;
73
57
  mergedProps.children = _child;
74
58
  }
75
-
76
59
  var Tag = typeof render === 'string' ? mergedProps.tag || render : render;
77
-
78
60
  if (childrenPosition === 'inside') {
79
61
  mergedProps.children = children === undefined ? mergedProps.children : children;
80
62
  }
81
-
82
63
  if (!Tag) {
83
64
  throw new Error('Element expected render prop to be passed');
84
65
  }
85
-
86
66
  return [/*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
87
67
  key: "child-above"
88
68
  }, childrenPosition === 'above' ? children : null), /*#__PURE__*/_react["default"].createElement(Tag, (0, _extends2["default"])({
@@ -95,11 +75,9 @@ function createElementRender() {
95
75
  key: "child-below"
96
76
  }, childrenPosition === 'below' ? children : null)];
97
77
  });
98
-
99
78
  Element.props = {};
100
79
  return Element;
101
80
  }
102
-
103
81
  function elementEnhancement() {
104
82
  return {
105
83
  init: function init() {
@@ -107,14 +85,12 @@ function elementEnhancement() {
107
85
  },
108
86
  asProps: function asProps(_ref2, WrapperComponent, isFunction) {
109
87
  var $rootProps = _ref2.$rootProps,
110
- props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded3);
111
-
88
+ props = (0, _objectWithoutProperties2["default"])(_ref2, _excluded3);
112
89
  if (isFunction) {
113
90
  return (0, _objectSpread2["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, $rootProps), props), {}, {
114
91
  Element: this.Element
115
92
  });
116
93
  }
117
-
118
94
  return (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, $rootProps), props);
119
95
  },
120
96
  render: function render(_render, props) {
@@ -123,24 +99,20 @@ function elementEnhancement() {
123
99
  }
124
100
  };
125
101
  }
126
-
127
102
  function WrapComponent(Element) {
128
103
  function ElementWithContext(props, ref) {
129
104
  var _useContext = (0, _react.useContext)(_Plot["default"][_core.CONTEXT_COMPONENT]),
130
- $rootProps = _useContext.$rootProps;
131
-
105
+ $rootProps = _useContext.$rootProps;
132
106
  return /*#__PURE__*/_react["default"].createElement(Element, (0, _extends2["default"])({
133
107
  ref: ref,
134
108
  $rootProps: $rootProps
135
109
  }, props));
136
110
  }
137
-
138
111
  ElementWithContext.displayName = Element.displayName;
139
112
  var WrapperComponent = (0, _core.createBaseComponent)(ElementWithContext);
140
113
  WrapperComponent.displayName = Element.displayName;
141
114
  return (0, _hoistNonReactStatics["default"])(WrapperComponent, Element);
142
115
  }
143
-
144
116
  function createElement(ElementRoot) {
145
117
  var child = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
146
118
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -152,7 +124,6 @@ function createElement(ElementRoot) {
152
124
  });
153
125
  return WrapComponent(Element);
154
126
  }
155
-
156
127
  var _default = createElement;
157
128
  exports["default"] = _default;
158
129
  //# sourceMappingURL=createElement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createElement.js","names":["EXCLUDE_PROPS","createElementRender","Element","React","forwardRef","ref","render","childrenPosition","xS","x","yS","y","source","props","_children","children","Children","getOriginChildren","mergedProps","assignProps","useForkRef","_child","Tag","tag","undefined","Error","propsForElement","__excludeProps","elementEnhancement","init","asProps","WrapperComponent","isFunction","$rootProps","WrapComponent","ElementWithContext","useContext","Plot","CONTEXT_COMPONENT","displayName","createBaseComponent","hoistNonReactStatics","createElement","ElementRoot","child","options","createComponent","enhancements","Object","keys","forEach","n"],"sources":["../../src/createElement.jsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport createComponent, { createBaseComponent, CONTEXT_COMPONENT } from '@semcore/core';\nimport assignProps from '@semcore/utils/lib/assignProps';\nimport { useForkRef } from '@semcore/utils/lib/ref';\nimport propsForElement from '@semcore/utils/lib/propsForElement';\nimport getOriginChildren from '@semcore/utils/lib/getOriginChildren';\nimport Plot from './Plot';\n\nconst EXCLUDE_PROPS = ['data', 'scale'];\n\nfunction createElementRender() {\n const Element = React.forwardRef(function (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n { render, childrenPosition = 'below', x: xS, y: yS, ...source },\n ref,\n ) {\n const {\n forwardRef = null,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n children: _children,\n Children,\n x = xS,\n y = yS,\n ...props\n } = Element.props;\n let children = getOriginChildren(Children);\n\n let mergedProps = assignProps(\n {\n x: xS,\n y: yS,\n ...props,\n ref: useForkRef(forwardRef, ref),\n },\n {\n x,\n y,\n ...source,\n },\n );\n\n if (typeof children === 'function') {\n const _child = mergedProps.children;\n mergedProps = assignProps(children(mergedProps), mergedProps);\n children = mergedProps.children;\n mergedProps.children = _child;\n }\n\n const Tag = typeof render === 'string' ? mergedProps.tag || render : render;\n\n if (childrenPosition === 'inside') {\n mergedProps.children = children === undefined ? mergedProps.children : children;\n }\n\n if (!Tag) {\n throw new Error('Element expected render prop to be passed');\n }\n return [\n <React.Fragment key=\"child-above\">\n {childrenPosition === 'above' ? children : null}\n </React.Fragment>,\n <Tag\n aria-hidden\n {...propsForElement(\n {\n __excludeProps: EXCLUDE_PROPS,\n ...mergedProps,\n },\n Tag,\n )}\n key=\"element\"\n />,\n <React.Fragment key=\"child-below\">\n {childrenPosition === 'below' ? children : null}\n </React.Fragment>,\n ];\n });\n\n Element.props = {};\n return Element;\n}\n\nfunction elementEnhancement() {\n return {\n init: function () {\n this.Element = createElementRender();\n },\n asProps: function ({ $rootProps, ...props }, WrapperComponent, isFunction) {\n if (isFunction) {\n return {\n ...$rootProps,\n ...props,\n Element: this.Element,\n };\n }\n return {\n ...$rootProps,\n ...props,\n };\n },\n render: function (render, props) {\n this.Element.props = props;\n return render;\n },\n };\n}\n\nfunction WrapComponent(Element) {\n function ElementWithContext(props, ref) {\n const { $rootProps } = useContext(Plot[CONTEXT_COMPONENT]);\n return <Element ref={ref} $rootProps={$rootProps} {...props} />;\n }\n\n ElementWithContext.displayName = Element.displayName;\n\n const WrapperComponent = createBaseComponent(ElementWithContext);\n WrapperComponent.displayName = Element.displayName;\n\n return hoistNonReactStatics(WrapperComponent, Element);\n}\n\nfunction createElement(ElementRoot, child = {}, options = {}) {\n const Element = createComponent(ElementRoot, child, {\n ...options,\n enhancements: [elementEnhancement],\n });\n\n Object.keys(child).forEach((n) => {\n Element[n] = WrapComponent(Element[n]);\n });\n\n return WrapComponent(Element);\n}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ACD;;eAEcwC,a"}
1
+ {"version":3,"file":"createElement.js","names":["_react","_interopRequireWildcard","require","_hoistNonReactStatics","_interopRequireDefault","_core","_assignProps","_ref3","_propsForElement","_getOriginChildren","_Plot","_excluded","_excluded2","_excluded3","EXCLUDE_PROPS","createElementRender","Element","React","forwardRef","_ref","ref","render","_ref$childrenPosition","childrenPosition","xS","x","yS","y","source","_objectWithoutProperties2","_Element$props","props","_Element$props$forwar","_children","children","Children","_Element$props$x","_Element$props$y","getOriginChildren","mergedProps","assignProps","_objectSpread2","useForkRef","_child","Tag","tag","undefined","Error","createElement","Fragment","key","_extends2","propsForElement","__excludeProps","elementEnhancement","init","asProps","_ref2","WrapperComponent","isFunction","$rootProps","WrapComponent","ElementWithContext","_useContext","useContext","Plot","CONTEXT_COMPONENT","displayName","createBaseComponent","hoistNonReactStatics","ElementRoot","child","arguments","length","options","createComponent","enhancements","Object","keys","forEach","n","_default","exports"],"sources":["../../src/createElement.jsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport createComponent, { createBaseComponent, CONTEXT_COMPONENT } from '@semcore/core';\nimport assignProps from '@semcore/utils/lib/assignProps';\nimport { useForkRef } from '@semcore/utils/lib/ref';\nimport propsForElement from '@semcore/utils/lib/propsForElement';\nimport getOriginChildren from '@semcore/utils/lib/getOriginChildren';\nimport Plot from './Plot';\n\nconst EXCLUDE_PROPS = ['data', 'scale'];\n\nfunction createElementRender() {\n const Element = React.forwardRef(function (\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n { render, childrenPosition = 'below', x: xS, y: yS, ...source },\n ref,\n ) {\n const {\n forwardRef = null,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n children: _children,\n Children,\n x = xS,\n y = yS,\n ...props\n } = Element.props;\n let children = getOriginChildren(Children);\n\n let mergedProps = assignProps(\n {\n x: xS,\n y: yS,\n ...props,\n ref: useForkRef(forwardRef, ref),\n },\n {\n x,\n y,\n ...source,\n },\n );\n\n if (typeof children === 'function') {\n const _child = mergedProps.children;\n mergedProps = assignProps(children(mergedProps), mergedProps);\n children = mergedProps.children;\n mergedProps.children = _child;\n }\n\n const Tag = typeof render === 'string' ? mergedProps.tag || render : render;\n\n if (childrenPosition === 'inside') {\n mergedProps.children = children === undefined ? mergedProps.children : children;\n }\n\n if (!Tag) {\n throw new Error('Element expected render prop to be passed');\n }\n return [\n <React.Fragment key=\"child-above\">\n {childrenPosition === 'above' ? children : null}\n </React.Fragment>,\n <Tag\n aria-hidden\n {...propsForElement(\n {\n __excludeProps: EXCLUDE_PROPS,\n ...mergedProps,\n },\n Tag,\n )}\n key=\"element\"\n />,\n <React.Fragment key=\"child-below\">\n {childrenPosition === 'below' ? children : null}\n </React.Fragment>,\n ];\n });\n\n Element.props = {};\n return Element;\n}\n\nfunction elementEnhancement() {\n return {\n init: function () {\n this.Element = createElementRender();\n },\n asProps: function ({ $rootProps, ...props }, WrapperComponent, isFunction) {\n if (isFunction) {\n return {\n ...$rootProps,\n ...props,\n Element: this.Element,\n };\n }\n return {\n ...$rootProps,\n ...props,\n };\n },\n render: function (render, props) {\n this.Element.props = props;\n return render;\n },\n };\n}\n\nfunction WrapComponent(Element) {\n function ElementWithContext(props, ref) {\n const { $rootProps } = useContext(Plot[CONTEXT_COMPONENT]);\n return <Element ref={ref} $rootProps={$rootProps} {...props} />;\n }\n\n ElementWithContext.displayName = Element.displayName;\n\n const WrapperComponent = createBaseComponent(ElementWithContext);\n WrapperComponent.displayName = Element.displayName;\n\n return hoistNonReactStatics(WrapperComponent, Element);\n}\n\nfunction createElement(ElementRoot, child = {}, options = {}) {\n const Element = createComponent(ElementRoot, child, {\n ...options,\n enhancements: [elementEnhancement],\n });\n\n Object.keys(child).forEach((n) => {\n Element[n] = WrapComponent(Element[n]);\n });\n\n return WrapComponent(Element);\n}\n\nexport default createElement;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAA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/interopRequireWildcard");
4
-
5
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
6
-
7
5
  Object.defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
@@ -151,46 +149,25 @@ Object.defineProperty(exports, "minMax", {
151
149
  return _utils.minMax;
152
150
  }
153
151
  });
154
-
155
152
  var _Plot = _interopRequireDefault(require("./Plot"));
156
-
157
153
  var _Axis = require("./Axis");
158
-
159
154
  var _Line = _interopRequireDefault(require("./Line"));
160
-
161
155
  var _Bar = _interopRequireDefault(require("./Bar"));
162
-
163
156
  var _HorizontalBar = _interopRequireDefault(require("./HorizontalBar"));
164
-
165
157
  var _GroupBar = _interopRequireDefault(require("./GroupBar"));
166
-
167
158
  var _StackBar = _interopRequireDefault(require("./StackBar"));
168
-
169
159
  var _Area = _interopRequireDefault(require("./Area"));
170
-
171
160
  var _StackedArea = _interopRequireDefault(require("./StackedArea"));
172
-
173
161
  var _ScatterPlot = _interopRequireDefault(require("./ScatterPlot"));
174
-
175
162
  var _Bubble = _interopRequireDefault(require("./Bubble"));
176
-
177
163
  var _RadialTree = _interopRequireDefault(require("./RadialTree"));
178
-
179
164
  var _Donut = _interopRequireDefault(require("./Donut"));
180
-
181
165
  var _Venn = _interopRequireDefault(require("./Venn"));
182
-
183
166
  var _Radar = _interopRequireWildcard(require("./Radar"));
184
-
185
167
  var _Tooltip = _interopRequireDefault(require("./Tooltip"));
186
-
187
168
  var _ResponsiveContainer = _interopRequireDefault(require("./ResponsiveContainer"));
188
-
189
169
  var _ReferenceLine = _interopRequireDefault(require("./ReferenceLine"));
190
-
191
170
  var _Hover = require("./Hover");
192
-
193
171
  var _utils = require("./utils");
194
-
195
172
  var _color = require("./color");
196
173
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/index.js"],"sourcesContent":["export { default as Plot } from './Plot';\n\nexport { XAxis, YAxis } from './Axis';\n\nexport { default as Line } from './Line';\n\nexport { default as Bar } from './Bar';\nexport { default as HorizontalBar } from './HorizontalBar';\nexport { default as GroupBar } from './GroupBar';\nexport { default as StackBar } from './StackBar';\nexport { default as Area } from './Area';\nexport { default as StackedArea } from './StackedArea';\nexport { default as ScatterPlot } from './ScatterPlot';\nexport { default as Bubble } from './Bubble';\nexport { default as RadialTree } from './RadialTree';\nexport { default as Donut } from './Donut';\nexport { default as Venn } from './Venn';\nexport { default as Radar, getLabelOffsetPosition } from './Radar';\n\nexport { default as Tooltip } from './Tooltip';\n\nexport { default as ResponsiveContainer } from './ResponsiveContainer';\nexport { default as ReferenceLine } from './ReferenceLine';\n\nexport { HoverLine, HoverRect } from './Hover';\n\nexport { minMax } from './utils';\nexport { colors } from './color';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;AAEA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AAEA;;AAEA;;AACA"}
1
+ {"version":3,"file":"index.js","names":["_Plot","_interopRequireDefault","require","_Axis","_Line","_Bar","_HorizontalBar","_GroupBar","_StackBar","_Area","_StackedArea","_ScatterPlot","_Bubble","_RadialTree","_Donut","_Venn","_Radar","_interopRequireWildcard","_Tooltip","_ResponsiveContainer","_ReferenceLine","_Hover","_utils","_color"],"sources":["../../src/index.js"],"sourcesContent":["export { default as Plot } from './Plot';\n\nexport { XAxis, YAxis } from './Axis';\n\nexport { default as Line } from './Line';\n\nexport { default as Bar } from './Bar';\nexport { default as HorizontalBar } from './HorizontalBar';\nexport { default as GroupBar } from './GroupBar';\nexport { default as StackBar } from './StackBar';\nexport { default as Area } from './Area';\nexport { default as StackedArea } from './StackedArea';\nexport { default as ScatterPlot } from './ScatterPlot';\nexport { default as Bubble } from './Bubble';\nexport { default as RadialTree } from './RadialTree';\nexport { default as Donut } from './Donut';\nexport { default as Venn } from './Venn';\nexport { default as Radar, getLabelOffsetPosition } from './Radar';\n\nexport { default as Tooltip } from './Tooltip';\n\nexport { default as ResponsiveContainer } from './ResponsiveContainer';\nexport { default as ReferenceLine } from './ReferenceLine';\n\nexport { HoverLine, HoverRect } from './Hover';\n\nexport { minMax } from './utils';\nexport { colors } from './color';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,IAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,cAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,SAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,SAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,KAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,YAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,YAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,OAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,WAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,MAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,KAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,MAAA,GAAAC,uBAAA,CAAAf,OAAA;AAEA,IAAAgB,QAAA,GAAAjB,sBAAA,CAAAC,OAAA;AAEA,IAAAiB,oBAAA,GAAAlB,sBAAA,CAAAC,OAAA;AACA,IAAAkB,cAAA,GAAAnB,sBAAA,CAAAC,OAAA;AAEA,IAAAmB,MAAA,GAAAnB,OAAA;AAEA,IAAAoB,MAAA,GAAApB,OAAA;AACA,IAAAqB,MAAA,GAAArB,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Plot.d.js","names":[],"sources":["../../../src/types/Plot.d.ts"],"sourcesContent":["import { IBoxProps } from '@semcore/flex-box';\nimport { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IPlotProps extends IContext, IBoxProps {\n /** Width of the svg element\n * @default 0*/\n width?: number;\n /** Height of the svg element\n * @default 0*/\n height?: number;\n /** Human readable chart name (e.g \"Last market trends\") */\n label?: string;\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /** Optional prop to tune up alt text generating for charts */\n a11yAltTextConfig?: PlotSummarizerConfig;\n}\n\nexport type PlotSummarizerConfig = {\n /** Totally disable automatic data summarization */\n disable?: boolean;\n /** Disable automatic data summarization and use provided text */\n override?: string;\n /** Tuning up time series trends analyzing. Represents angle tangens of time series change of different strength */\n trendTangens?: {\n /** Angle tangens of time series that have meaningful trending change\n * @default 1/15\n */\n static?: number;\n /** Angle tangens of time series that have weak trending change\n * @default 1/10\n */\n weak?: number;\n /** Angle tangens of time series that have medium trending change\n * @default 1/5\n */\n medium?: number;\n /** Angle tangens of time series that have strong trending change\n * @default Infinity\n */\n strong?: number;\n };\n /** Tuning up time series local trends detection based on moving averages */\n movingAverage?: {\n /** Frame size of long moving average\n * @default Math.sqrt(data.length)\n */\n longSize?: number;\n /** Frame size of short moving average\n * @default Math.sqrt(data.length)/2\n */\n shortSize?: number;\n /** Absolute difference between values on moving averages crossing to\n * be handled as local trend change.\n * @default StandardDeviation/10\n */\n notableDiff?: number;\n };\n /** The way data to be interpreted as. By default is based on used used Plot elements and data structure.\n */\n dataType?: 'time-series' | 'points-cloud' | 'values-set';\n /** Grid size to split data of point clouds into clusters.\n */\n clustersGridSize?: number;\n /** Limits some output lists in chart alt text\n * @default 100\n * **/\n maxListSymbols?: number;\n /** Always add time to dates in chart alt text **/\n datesWithTime?: boolean;\n /** Described clusters count before text \"and X more\"\n * @default false\n * **/\n clustersLimit?: number;\n /** Described values count before text \"and X more\"\n * @default false\n * **/\n valuesLimit?: number;\n /** Described grouped value groups count before text \"and X more\"\n * @default false\n * **/\n groupsLimit?: number;\n /** Additional field for extra text description to the data\n * **/\n additionalFields?: string[];\n};\n\nexport type MapProps<Props, Ctx = {}, UCProps = {}> = Props & {\n children?:\n | ((props: Props & Ctx, handlers: UCProps) => Props | React.PropsWithChildren)\n | React.ReactNode;\n};\n\ndeclare const Plot: <T>(props: MapProps<IPlotProps & T>) => ReturnEl;\n\nexport default Plot;\n"],"mappings":";;AAEA"}
1
+ {"version":3,"file":"Plot.d.js","names":["_Plot","require"],"sources":["../../../src/types/Plot.d.ts"],"sourcesContent":["import { IBoxProps } from '@semcore/flex-box';\nimport { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\nimport IContext from './context';\n\nexport interface IPlotProps extends IContext, IBoxProps {\n /** Width of the svg element\n * @default 0*/\n width?: number;\n /** Height of the svg element\n * @default 0*/\n height?: number;\n /** Human readable chart name (e.g \"Last market trends\") */\n label?: string;\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /** Optional prop to tune up alt text generating for charts */\n a11yAltTextConfig?: PlotSummarizerConfig;\n}\n\nexport type PlotSummarizerConfig = {\n /** Totally disable automatic data summarization */\n disable?: boolean;\n /** Disable automatic data summarization and use provided text */\n override?: string;\n /** Tuning up time series trends analyzing. Represents angle tangens of time series change of different strength */\n trendTangens?: {\n /** Angle tangens of time series that have meaningful trending change\n * @default 1/15\n */\n static?: number;\n /** Angle tangens of time series that have weak trending change\n * @default 1/10\n */\n weak?: number;\n /** Angle tangens of time series that have medium trending change\n * @default 1/5\n */\n medium?: number;\n /** Angle tangens of time series that have strong trending change\n * @default Infinity\n */\n strong?: number;\n };\n /** Tuning up time series local trends detection based on moving averages */\n movingAverage?: {\n /** Frame size of long moving average\n * @default Math.sqrt(data.length)\n */\n longSize?: number;\n /** Frame size of short moving average\n * @default Math.sqrt(data.length)/2\n */\n shortSize?: number;\n /** Absolute difference between values on moving averages crossing to\n * be handled as local trend change.\n * @default StandardDeviation/10\n */\n notableDiff?: number;\n };\n /** The way data to be interpreted as. By default is based on used used Plot elements and data structure.\n */\n dataType?: 'time-series' | 'points-cloud' | 'values-set';\n /** Grid size to split data of point clouds into clusters.\n */\n clustersGridSize?: number;\n /** Limits some output lists in chart alt text\n * @default 100\n * **/\n maxListSymbols?: number;\n /** Always add time to dates in chart alt text **/\n datesWithTime?: boolean;\n /** Described clusters count before text \"and X more\"\n * @default false\n * **/\n clustersLimit?: number;\n /** Described values count before text \"and X more\"\n * @default false\n * **/\n valuesLimit?: number;\n /** Described grouped value groups count before text \"and X more\"\n * @default false\n * **/\n groupsLimit?: number;\n /** Additional field for extra text description to the data\n * **/\n additionalFields?: string[];\n};\n\nexport type MapProps<Props, Ctx = {}, UCProps = {}> = Props & {\n children?:\n | ((props: Props & Ctx, handlers: UCProps) => Props | React.PropsWithChildren)\n | React.ReactNode;\n};\n\ndeclare const Plot: <T>(props: MapProps<IPlotProps & T>) => ReturnEl;\n\nexport default Plot;\n"],"mappings":";;AAEA,IAAAA,KAAA,GAAAC,OAAA"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -126,9 +125,7 @@ Object.defineProperty(exports, "Venn", {
126
125
  return _Venn["default"];
127
126
  }
128
127
  });
129
-
130
128
  var _Plot = _interopRequireWildcard(require("./Plot"));
131
-
132
129
  Object.keys(_Plot).forEach(function (key) {
133
130
  if (key === "default" || key === "__esModule") return;
134
131
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -140,9 +137,7 @@ Object.keys(_Plot).forEach(function (key) {
140
137
  }
141
138
  });
142
139
  });
143
-
144
140
  var _Axis = require("./Axis");
145
-
146
141
  Object.keys(_Axis).forEach(function (key) {
147
142
  if (key === "default" || key === "__esModule") return;
148
143
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -154,9 +149,7 @@ Object.keys(_Axis).forEach(function (key) {
154
149
  }
155
150
  });
156
151
  });
157
-
158
152
  var _Hover = require("./Hover");
159
-
160
153
  Object.keys(_Hover).forEach(function (key) {
161
154
  if (key === "default" || key === "__esModule") return;
162
155
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -168,9 +161,7 @@ Object.keys(_Hover).forEach(function (key) {
168
161
  }
169
162
  });
170
163
  });
171
-
172
164
  var _ResponsiveContainer = _interopRequireWildcard(require("./ResponsiveContainer"));
173
-
174
165
  Object.keys(_ResponsiveContainer).forEach(function (key) {
175
166
  if (key === "default" || key === "__esModule") return;
176
167
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -182,9 +173,7 @@ Object.keys(_ResponsiveContainer).forEach(function (key) {
182
173
  }
183
174
  });
184
175
  });
185
-
186
176
  var _Line = _interopRequireWildcard(require("./Line"));
187
-
188
177
  Object.keys(_Line).forEach(function (key) {
189
178
  if (key === "default" || key === "__esModule") return;
190
179
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -196,9 +185,7 @@ Object.keys(_Line).forEach(function (key) {
196
185
  }
197
186
  });
198
187
  });
199
-
200
188
  var _Bar = _interopRequireWildcard(require("./Bar"));
201
-
202
189
  Object.keys(_Bar).forEach(function (key) {
203
190
  if (key === "default" || key === "__esModule") return;
204
191
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -210,9 +197,7 @@ Object.keys(_Bar).forEach(function (key) {
210
197
  }
211
198
  });
212
199
  });
213
-
214
200
  var _HorizontalBar = _interopRequireWildcard(require("./HorizontalBar"));
215
-
216
201
  Object.keys(_HorizontalBar).forEach(function (key) {
217
202
  if (key === "default" || key === "__esModule") return;
218
203
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -224,9 +209,7 @@ Object.keys(_HorizontalBar).forEach(function (key) {
224
209
  }
225
210
  });
226
211
  });
227
-
228
212
  var _GroupBar = _interopRequireWildcard(require("./GroupBar"));
229
-
230
213
  Object.keys(_GroupBar).forEach(function (key) {
231
214
  if (key === "default" || key === "__esModule") return;
232
215
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -238,9 +221,7 @@ Object.keys(_GroupBar).forEach(function (key) {
238
221
  }
239
222
  });
240
223
  });
241
-
242
224
  var _StackBar = _interopRequireWildcard(require("./StackBar"));
243
-
244
225
  Object.keys(_StackBar).forEach(function (key) {
245
226
  if (key === "default" || key === "__esModule") return;
246
227
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -252,9 +233,7 @@ Object.keys(_StackBar).forEach(function (key) {
252
233
  }
253
234
  });
254
235
  });
255
-
256
236
  var _Area = _interopRequireWildcard(require("./Area"));
257
-
258
237
  Object.keys(_Area).forEach(function (key) {
259
238
  if (key === "default" || key === "__esModule") return;
260
239
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -266,9 +245,7 @@ Object.keys(_Area).forEach(function (key) {
266
245
  }
267
246
  });
268
247
  });
269
-
270
248
  var _StackedArea = _interopRequireWildcard(require("./StackedArea"));
271
-
272
249
  Object.keys(_StackedArea).forEach(function (key) {
273
250
  if (key === "default" || key === "__esModule") return;
274
251
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -280,9 +257,7 @@ Object.keys(_StackedArea).forEach(function (key) {
280
257
  }
281
258
  });
282
259
  });
283
-
284
260
  var _RadialTree = _interopRequireWildcard(require("./RadialTree"));
285
-
286
261
  Object.keys(_RadialTree).forEach(function (key) {
287
262
  if (key === "default" || key === "__esModule") return;
288
263
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -294,9 +269,7 @@ Object.keys(_RadialTree).forEach(function (key) {
294
269
  }
295
270
  });
296
271
  });
297
-
298
272
  var _Radar = _interopRequireWildcard(require("./Radar"));
299
-
300
273
  Object.keys(_Radar).forEach(function (key) {
301
274
  if (key === "default" || key === "__esModule") return;
302
275
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -308,9 +281,7 @@ Object.keys(_Radar).forEach(function (key) {
308
281
  }
309
282
  });
310
283
  });
311
-
312
284
  var _Donut = _interopRequireWildcard(require("./Donut"));
313
-
314
285
  Object.keys(_Donut).forEach(function (key) {
315
286
  if (key === "default" || key === "__esModule") return;
316
287
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -322,9 +293,7 @@ Object.keys(_Donut).forEach(function (key) {
322
293
  }
323
294
  });
324
295
  });
325
-
326
296
  var _Tooltip = _interopRequireWildcard(require("./Tooltip"));
327
-
328
297
  Object.keys(_Tooltip).forEach(function (key) {
329
298
  if (key === "default" || key === "__esModule") return;
330
299
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -336,9 +305,7 @@ Object.keys(_Tooltip).forEach(function (key) {
336
305
  }
337
306
  });
338
307
  });
339
-
340
308
  var _ScatterPlot = _interopRequireWildcard(require("./ScatterPlot"));
341
-
342
309
  Object.keys(_ScatterPlot).forEach(function (key) {
343
310
  if (key === "default" || key === "__esModule") return;
344
311
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -350,9 +317,7 @@ Object.keys(_ScatterPlot).forEach(function (key) {
350
317
  }
351
318
  });
352
319
  });
353
-
354
320
  var _Bubble = _interopRequireWildcard(require("./Bubble"));
355
-
356
321
  Object.keys(_Bubble).forEach(function (key) {
357
322
  if (key === "default" || key === "__esModule") return;
358
323
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -364,9 +329,7 @@ Object.keys(_Bubble).forEach(function (key) {
364
329
  }
365
330
  });
366
331
  });
367
-
368
332
  var _ReferenceLine = _interopRequireWildcard(require("./ReferenceLine"));
369
-
370
333
  Object.keys(_ReferenceLine).forEach(function (key) {
371
334
  if (key === "default" || key === "__esModule") return;
372
335
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -378,9 +341,7 @@ Object.keys(_ReferenceLine).forEach(function (key) {
378
341
  }
379
342
  });
380
343
  });
381
-
382
344
  var _Venn = _interopRequireWildcard(require("./Venn"));
383
-
384
345
  Object.keys(_Venn).forEach(function (key) {
385
346
  if (key === "default" || key === "__esModule") return;
386
347
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../../src/types/index.d.ts"],"sourcesContent":["// Utils\nexport declare function minMax(data: any, key: string | number): any;\n\n// Color\nexport declare const colors: { [key: string]: string };\n\nexport { default as Plot } from './Plot';\nexport * from './Plot';\n\nexport * from './Axis';\nexport * from './Hover';\n\nexport { default as ResponsiveContainer } from './ResponsiveContainer';\nexport * from './ResponsiveContainer';\n\nexport { default as Line } from './Line';\nexport * from './Line';\n\nexport { default as Bar } from './Bar';\nexport * from './Bar';\n\nexport { default as HorizontalBar } from './HorizontalBar';\nexport * from './HorizontalBar';\n\nexport { default as GroupBar } from './GroupBar';\nexport * from './GroupBar';\n\nexport { default as StackBar } from './StackBar';\nexport * from './StackBar';\n\nexport { default as Area } from './Area';\nexport * from './Area';\n\nexport { default as StackedArea } from './StackedArea';\nexport * from './StackedArea';\n\n/** It becomes resolvable after building and moving file to lib dir */\n// eslint-disable-next-line import/no-unresolved\nexport { default as RadialTree } from './RadialTree';\n// eslint-disable-next-line import/no-unresolved\nexport * from './RadialTree';\n\nexport { default as Radar } from './Radar';\nexport * from './Radar';\n\nexport { default as Donut } from './Donut';\nexport * from './Donut';\n\nexport { default as Tooltip } from './Tooltip';\nexport * from './Tooltip';\n\nexport { default as ScatterPlot } from './ScatterPlot';\nexport * from './ScatterPlot';\n\nexport { default as Bubble } from './Bubble';\nexport * from './Bubble';\n\nexport { default as ReferenceLine } from './ReferenceLine';\nexport * from './ReferenceLine';\n\nexport { default as Venn } from './Venn';\nexport * from './Venn';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAIA;;AAEA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AAEA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.d.js","names":["_Plot","_interopRequireWildcard","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_Axis","_Hover","_ResponsiveContainer","_Line","_Bar","_HorizontalBar","_GroupBar","_StackBar","_Area","_StackedArea","_RadialTree","_Radar","_Donut","_Tooltip","_ScatterPlot","_Bubble","_ReferenceLine","_Venn"],"sources":["../../../src/types/index.d.ts"],"sourcesContent":["// Utils\nexport declare function minMax(data: any, key: string | number): any;\n\n// Color\nexport declare const colors: { [key: string]: string };\n\nexport { default as Plot } from './Plot';\nexport * from './Plot';\n\nexport * from './Axis';\nexport * from './Hover';\n\nexport { default as ResponsiveContainer } from './ResponsiveContainer';\nexport * from './ResponsiveContainer';\n\nexport { default as Line } from './Line';\nexport * from './Line';\n\nexport { default as Bar } from './Bar';\nexport * from './Bar';\n\nexport { default as HorizontalBar } from './HorizontalBar';\nexport * from './HorizontalBar';\n\nexport { default as GroupBar } from './GroupBar';\nexport * from './GroupBar';\n\nexport { default as StackBar } from './StackBar';\nexport * from './StackBar';\n\nexport { default as Area } from './Area';\nexport * from './Area';\n\nexport { default as StackedArea } from './StackedArea';\nexport * from './StackedArea';\n\n/** It becomes resolvable after building and moving file to lib dir */\n// eslint-disable-next-line import/no-unresolved\nexport { default as RadialTree } from './RadialTree';\n// eslint-disable-next-line import/no-unresolved\nexport * from './RadialTree';\n\nexport { default as Radar } from './Radar';\nexport * from './Radar';\n\nexport { default as Donut } from './Donut';\nexport * from './Donut';\n\nexport { default as Tooltip } from './Tooltip';\nexport * from './Tooltip';\n\nexport { default as ScatterPlot } from './ScatterPlot';\nexport * from './ScatterPlot';\n\nexport { default as Bubble } from './Bubble';\nexport * from './Bubble';\n\nexport { default as ReferenceLine } from './ReferenceLine';\nexport * from './ReferenceLine';\n\nexport { default as Venn } from './Venn';\nexport * from './Venn';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACAC,MAAA,CAAAC,IAAA,CAAAJ,KAAA,EAAAK,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAN,KAAA,CAAAM,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAd,KAAA,CAAAM,GAAA;IAAA;EAAA;AAAA;AAEA,IAAAS,KAAA,GAAAb,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAW,KAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GA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