@semcore/d3-chart 3.45.2 → 3.46.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 (68) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/lib/cjs/Area.js +11 -11
  3. package/lib/cjs/Axis.js +14 -14
  4. package/lib/cjs/Bar.js +10 -10
  5. package/lib/cjs/Bubble.js +12 -12
  6. package/lib/cjs/Donut.js +9 -9
  7. package/lib/cjs/Dots.js +8 -8
  8. package/lib/cjs/HorizontalBar.js +10 -10
  9. package/lib/cjs/Hover.js +3 -3
  10. package/lib/cjs/Line.js +9 -9
  11. package/lib/cjs/Plot.js +3 -3
  12. package/lib/cjs/Radar.js +19 -19
  13. package/lib/cjs/RadialTree.js +11 -11
  14. package/lib/cjs/{ReferenceLine.js → Reference.js} +91 -48
  15. package/lib/cjs/Reference.js.map +1 -0
  16. package/lib/cjs/ScatterPlot.js +9 -9
  17. package/lib/cjs/Tooltip.js +9 -9
  18. package/lib/cjs/Venn.js +9 -9
  19. package/lib/cjs/a11y/PlotA11yModule.js +2 -2
  20. package/lib/cjs/a11y/PlotA11yView.js +2 -2
  21. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  22. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  23. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  24. package/lib/cjs/index.js +14 -2
  25. package/lib/cjs/index.js.map +1 -1
  26. package/lib/{es6/style/reference-line.shadow.css → cjs/style/reference.shadow.css} +8 -0
  27. package/lib/cjs/types/Reference.d.js +2 -0
  28. package/lib/cjs/types/Reference.d.js.map +1 -0
  29. package/lib/cjs/types/index.d.js +4 -11
  30. package/lib/cjs/types/index.d.js.map +1 -1
  31. package/lib/es6/Area.js +11 -11
  32. package/lib/es6/Axis.js +14 -14
  33. package/lib/es6/Bar.js +10 -10
  34. package/lib/es6/Bubble.js +12 -12
  35. package/lib/es6/Donut.js +9 -9
  36. package/lib/es6/Dots.js +8 -8
  37. package/lib/es6/HorizontalBar.js +10 -10
  38. package/lib/es6/Hover.js +3 -3
  39. package/lib/es6/Line.js +9 -9
  40. package/lib/es6/Plot.js +3 -3
  41. package/lib/es6/Radar.js +19 -19
  42. package/lib/es6/RadialTree.js +11 -11
  43. package/lib/es6/{ReferenceLine.js → Reference.js} +88 -47
  44. package/lib/es6/Reference.js.map +1 -0
  45. package/lib/es6/ScatterPlot.js +9 -9
  46. package/lib/es6/Tooltip.js +9 -9
  47. package/lib/es6/Venn.js +9 -9
  48. package/lib/es6/a11y/PlotA11yModule.js +2 -2
  49. package/lib/es6/a11y/PlotA11yView.js +2 -2
  50. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  51. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  52. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  53. package/lib/es6/index.js +1 -1
  54. package/lib/es6/index.js.map +1 -1
  55. package/lib/{cjs/style/reference-line.shadow.css → es6/style/reference.shadow.css} +8 -0
  56. package/lib/es6/types/Reference.d.js +2 -0
  57. package/lib/es6/types/Reference.d.js.map +1 -0
  58. package/lib/es6/types/index.d.js +1 -2
  59. package/lib/es6/types/index.d.js.map +1 -1
  60. package/lib/types/{ReferenceLine.d.ts → Reference.d.ts} +31 -5
  61. package/lib/types/index.d.ts +1 -2
  62. package/package.json +2 -2
  63. package/lib/cjs/ReferenceLine.js.map +0 -1
  64. package/lib/cjs/types/ReferenceLine.d.js +0 -2
  65. package/lib/cjs/types/ReferenceLine.d.js.map +0 -1
  66. package/lib/es6/ReferenceLine.js.map +0 -1
  67. package/lib/es6/types/ReferenceLine.d.js +0 -2
  68. package/lib/es6/types/ReferenceLine.d.js.map +0 -1
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports["default"] = void 0;
7
+ exports.ReferenceStripes = exports.ReferenceLine = exports.ReferenceBackground = void 0;
8
8
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
@@ -15,18 +15,22 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
15
15
  var _index = require("@semcore/utils/lib/core/index");
16
16
  var _react = _interopRequireDefault(require("react"));
17
17
  var _core = require("@semcore/core");
18
+ var _uniqueID = _interopRequireDefault(require("@semcore/utils/lib/uniqueID"));
18
19
  var _createElement = _interopRequireDefault(require("./createElement"));
19
20
  var _utils = require("./utils");
20
- /*__reshadow-styles__:"./style/reference-line.shadow.css"*/
21
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_1ksee_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___STitle_1ksee_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_1ksee)}.___STitle_1ksee_gg_._position_top_1ksee_gg_{text-anchor:middle}.___STitle_1ksee_gg_._position_bottom_1ksee_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1ksee_gg_._position_left_1ksee_gg_,.___STitle_1ksee_gg_._position_right_1ksee_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_1ksee_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}" /*__inner_css_end__*/, "1ksee_gg_") /*__reshadow_css_end__*/, {
22
- "__SReferenceLine": "___SReferenceLine_1ksee_gg_",
23
- "__STitle": "___STitle_1ksee_gg_",
24
- "--transform-origin": "--transform-origin_1ksee",
25
- "_position_top": "_position_top_1ksee_gg_",
26
- "_position_bottom": "_position_bottom_1ksee_gg_",
27
- "_position_right": "_position_right_1ksee_gg_",
28
- "_position_left": "_position_left_1ksee_gg_",
29
- "__SBackground": "___SBackground_1ksee_gg_"
21
+ /*__reshadow-styles__:"./style/reference.shadow.css"*/
22
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_1u4cb_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___STitle_1u4cb_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_1u4cb)}.___STitle_1u4cb_gg_._position_top_1u4cb_gg_{text-anchor:middle}.___STitle_1u4cb_gg_._position_bottom_1u4cb_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1u4cb_gg_._position_left_1u4cb_gg_,.___STitle_1u4cb_gg_._position_right_1u4cb_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_1u4cb_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}.___SStripes_1u4cb_gg_{fill:var(--fill_1u4cb)}.___SStripesPatternPath_1u4cb_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));stroke-width:1px}" /*__inner_css_end__*/, "1u4cb_gg_") /*__reshadow_css_end__*/, {
23
+ "__SReferenceLine": "___SReferenceLine_1u4cb_gg_",
24
+ "__STitle": "___STitle_1u4cb_gg_",
25
+ "--transform-origin": "--transform-origin_1u4cb",
26
+ "_position_top": "_position_top_1u4cb_gg_",
27
+ "_position_bottom": "_position_bottom_1u4cb_gg_",
28
+ "_position_right": "_position_right_1u4cb_gg_",
29
+ "_position_left": "_position_left_1u4cb_gg_",
30
+ "__SBackground": "___SBackground_1u4cb_gg_",
31
+ "__SStripes": "___SStripes_1u4cb_gg_",
32
+ "--fill": "--fill_1u4cb",
33
+ "__SStripesPatternPath": "___SStripesPatternPath_1u4cb_gg_"
30
34
  });
31
35
  var side2direction = {
32
36
  left: 'vertical',
@@ -35,10 +39,10 @@ var side2direction = {
35
39
  bottom: 'horizontal'
36
40
  };
37
41
  var lineDirection2props = {
38
- vertical: function vertical(_ref4, value) {
39
- var _ref5 = (0, _slicedToArray2["default"])(_ref4, 2),
40
- xScale = _ref5[0],
41
- yScale = _ref5[1];
42
+ vertical: function vertical(_ref5, value) {
43
+ var _ref6 = (0, _slicedToArray2["default"])(_ref5, 2),
44
+ xScale = _ref6[0],
45
+ yScale = _ref6[1];
42
46
  var yRange = yScale.range();
43
47
  var x = (0, _utils.scaleOfBandwidth)(xScale, value);
44
48
  return {
@@ -48,10 +52,10 @@ var lineDirection2props = {
48
52
  y2: yRange[1]
49
53
  };
50
54
  },
51
- horizontal: function horizontal(_ref6, value) {
52
- var _ref7 = (0, _slicedToArray2["default"])(_ref6, 2),
53
- xScale = _ref7[0],
54
- yScale = _ref7[1];
55
+ horizontal: function horizontal(_ref7, value) {
56
+ var _ref8 = (0, _slicedToArray2["default"])(_ref7, 2),
57
+ xScale = _ref8[0],
58
+ yScale = _ref8[1];
55
59
  var xRange = xScale.range();
56
60
  var y = (0, _utils.scaleOfBandwidth)(yScale, value);
57
61
  return {
@@ -63,10 +67,10 @@ var lineDirection2props = {
63
67
  }
64
68
  };
65
69
  var rectDirection2props = {
66
- vertical: function vertical(_ref8, value, endValue) {
67
- var _ref9 = (0, _slicedToArray2["default"])(_ref8, 2),
68
- xScale = _ref9[0],
69
- yScale = _ref9[1];
70
+ vertical: function vertical(_ref9, value, endValue) {
71
+ var _ref10 = (0, _slicedToArray2["default"])(_ref9, 2),
72
+ xScale = _ref10[0],
73
+ yScale = _ref10[1];
70
74
  var yRange = yScale.range();
71
75
  var x = (0, _utils.scaleOfBandwidth)(xScale, value);
72
76
  var width = endValue !== undefined ? (0, _utils.scaleOfBandwidth)(xScale, endValue) - x : 100;
@@ -77,10 +81,10 @@ var rectDirection2props = {
77
81
  height: yRange[0] - yRange[1]
78
82
  };
79
83
  },
80
- horizontal: function horizontal(_ref10, value, endValue) {
81
- var _ref11 = (0, _slicedToArray2["default"])(_ref10, 2),
82
- xScale = _ref11[0],
83
- yScale = _ref11[1];
84
+ horizontal: function horizontal(_ref11, value, endValue) {
85
+ var _ref12 = (0, _slicedToArray2["default"])(_ref11, 2),
86
+ xScale = _ref12[0],
87
+ yScale = _ref12[1];
84
88
  var xRange = xScale.range();
85
89
  var y = (0, _utils.scaleOfBandwidth)(yScale, value);
86
90
  var height = endValue !== undefined ? (0, _utils.scaleOfBandwidth)(yScale, endValue) - y : 100;
@@ -94,10 +98,10 @@ var rectDirection2props = {
94
98
  };
95
99
  var titleOffset = 10;
96
100
  var titleSideToProps = {
97
- left: function left(_ref12, value) {
98
- var _ref13 = (0, _slicedToArray2["default"])(_ref12, 2),
99
- xScale = _ref13[0],
100
- yScale = _ref13[1];
101
+ left: function left(_ref13, value) {
102
+ var _ref14 = (0, _slicedToArray2["default"])(_ref13, 2),
103
+ xScale = _ref14[0],
104
+ yScale = _ref14[1];
101
105
  var yRange = yScale.range();
102
106
  var x = (0, _utils.scaleOfBandwidth)(xScale, value);
103
107
  return {
@@ -105,10 +109,10 @@ var titleSideToProps = {
105
109
  y: (yRange[0] + yRange[1]) / 2
106
110
  };
107
111
  },
108
- right: function right(_ref14, value) {
109
- var _ref15 = (0, _slicedToArray2["default"])(_ref14, 2),
110
- xScale = _ref15[0],
111
- yScale = _ref15[1];
112
+ right: function right(_ref15, value) {
113
+ var _ref16 = (0, _slicedToArray2["default"])(_ref15, 2),
114
+ xScale = _ref16[0],
115
+ yScale = _ref16[1];
112
116
  var yRange = yScale.range();
113
117
  var x = (0, _utils.scaleOfBandwidth)(xScale, value);
114
118
  return {
@@ -116,10 +120,10 @@ var titleSideToProps = {
116
120
  y: (yRange[0] + yRange[1]) / 2
117
121
  };
118
122
  },
119
- top: function top(_ref16, value) {
120
- var _ref17 = (0, _slicedToArray2["default"])(_ref16, 2),
121
- xScale = _ref17[0],
122
- yScale = _ref17[1];
123
+ top: function top(_ref17, value) {
124
+ var _ref18 = (0, _slicedToArray2["default"])(_ref17, 2),
125
+ xScale = _ref18[0],
126
+ yScale = _ref18[1];
123
127
  var xRange = xScale.range();
124
128
  var y = (0, _utils.scaleOfBandwidth)(yScale, value);
125
129
  return {
@@ -127,10 +131,10 @@ var titleSideToProps = {
127
131
  y: y - titleOffset
128
132
  };
129
133
  },
130
- bottom: function bottom(_ref18, value) {
131
- var _ref19 = (0, _slicedToArray2["default"])(_ref18, 2),
132
- xScale = _ref19[0],
133
- yScale = _ref19[1];
134
+ bottom: function bottom(_ref19, value) {
135
+ var _ref20 = (0, _slicedToArray2["default"])(_ref19, 2),
136
+ xScale = _ref20[0],
137
+ yScale = _ref20[1];
134
138
  var xRange = xScale.range();
135
139
  var y = (0, _utils.scaleOfBandwidth)(yScale, value);
136
140
  return {
@@ -225,7 +229,8 @@ function Background(props) {
225
229
  var SBackground = props.Element,
226
230
  styles = props.styles,
227
231
  scale = props.scale,
228
- position = props.position,
232
+ _props$position = props.position,
233
+ position = _props$position === void 0 ? 'left' : _props$position,
229
234
  value = props.value,
230
235
  endValue = props.endValue;
231
236
  var positionProps = rectDirection2props[side2direction[position]];
@@ -234,10 +239,48 @@ function Background(props) {
234
239
  "childrenPosition": 'inside'
235
240
  }, positionProps(scale, value, endValue))));
236
241
  }
242
+ Background.style = style;
243
+ var diagonalGap = 8;
244
+ var gap = Math.sqrt(Math.pow(diagonalGap, 2) + Math.pow(diagonalGap, 2));
245
+ var gap12 = gap * (1 / 2);
246
+ var gap32 = gap * (3 / 2);
247
+ var path = "M-".concat(gap, ",-").concat(gap12, " L").concat(gap, ",").concat(gap32, " M-").concat(gap12, ",-").concat(gap, " L").concat(gap32, ",").concat(gap);
248
+ function Stripes(props) {
249
+ var _ref4;
250
+ var SStripes = props.Element,
251
+ styles = props.styles,
252
+ scale = props.scale,
253
+ _props$position2 = props.position,
254
+ position = _props$position2 === void 0 ? 'left' : _props$position2,
255
+ value = props.value,
256
+ endValue = props.endValue,
257
+ uid = props.uid;
258
+ var SStripesPatternPath = 'path';
259
+ var positionProps = rectDirection2props[side2direction[position]];
260
+ var patternId = "".concat(uid, "-pattern");
261
+ return _ref4 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement("g", _ref4.cn("g", {}), /*#__PURE__*/_react["default"].createElement(SStripes, _ref4.cn("SStripes", (0, _objectSpread2["default"])({
262
+ "render": 'rect',
263
+ "childrenPosition": 'inside',
264
+ "fill": "url(#".concat(patternId, ")")
265
+ }, positionProps(scale, value, endValue)))), /*#__PURE__*/_react["default"].createElement("pattern", _ref4.cn("pattern", {
266
+ "id": patternId,
267
+ "patternUnits": 'userSpaceOnUse',
268
+ "width": gap,
269
+ "height": gap
270
+ }), /*#__PURE__*/_react["default"].createElement(SStripesPatternPath, _ref4.cn("SStripesPatternPath", {
271
+ "d": path
272
+ }))));
273
+ }
274
+ Stripes.style = style;
275
+ Stripes.enhance = [(0, _uniqueID["default"])()];
237
276
  var ReferenceLine = (0, _createElement["default"])(ReferenceLineRoot, {
238
277
  Title: Title,
239
- Background: Background
278
+ Background: Background,
279
+ Stripes: Stripes
240
280
  });
241
- var _default = ReferenceLine;
242
- exports["default"] = _default;
243
- //# sourceMappingURL=ReferenceLine.js.map
281
+ exports.ReferenceLine = ReferenceLine;
282
+ var ReferenceBackground = (0, _createElement["default"])(Background);
283
+ exports.ReferenceBackground = ReferenceBackground;
284
+ var ReferenceStripes = (0, _createElement["default"])(Stripes);
285
+ exports.ReferenceStripes = ReferenceStripes;
286
+ //# sourceMappingURL=Reference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reference.js","names":["_react","_interopRequireDefault","require","_core","_uniqueID","_createElement","_utils","style","_index","sstyled","insert","side2direction","left","right","top","bottom","lineDirection2props","vertical","_ref5","value","_ref6","_slicedToArray2","xScale","yScale","yRange","range","x","scaleOfBandwidth","x1","x2","y1","y2","horizontal","_ref7","_ref8","xRange","y","rectDirection2props","_ref9","endValue","_ref10","width","undefined","height","_ref11","_ref12","titleOffset","titleSideToProps","_ref13","_ref14","_ref15","_ref16","_ref17","_ref18","_ref19","_ref20","ReferenceLineRoot","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","getTitleProps","_this$asProps","asProps","position","getBackgroundProps","_this$asProps2","render","_ref","SReferenceLine","Element","_this$asProps3","title","scale","color","resolveColor","styles","positionProps","createElement","Fragment","cn","_objectSpread2","ReferenceLine","Title","Component","_defineProperty2","props","_ref2","STitle","_titleSideToProps$pos","sstyles","sTitleStyles","concat","toFixed","className","Background","_ref3","SBackground","_props$position","diagonalGap","gap","Math","sqrt","pow","gap12","gap32","path","Stripes","_ref4","SStripes","_props$position2","uid","SStripesPatternPath","patternId","enhance","uniqueIDEnhancement","exports","ReferenceBackground","ReferenceStripes"],"sources":["../../src/Reference.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference.shadow.css';\n\nconst side2direction = {\n left: 'vertical',\n right: 'vertical',\n top: 'horizontal',\n bottom: 'horizontal',\n};\n\nconst lineDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x1: x,\n x2: x,\n y1: yRange[0],\n y2: yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x1: xRange[0],\n x2: xRange[1],\n y1: y,\n y2: y,\n };\n },\n};\n\nconst rectDirection2props = {\n vertical: ([xScale, yScale], value, endValue) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n const width = endValue !== undefined ? scaleOfBandwidth(xScale, endValue) - x : 100;\n return {\n x: x,\n y: yRange[1],\n width,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value, endValue) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n const height = endValue !== undefined ? scaleOfBandwidth(yScale, endValue) - y : 100;\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height,\n };\n },\n};\n\nconst titleOffset = 10;\nconst titleSideToProps = {\n left: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x - titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n right: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x + titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n top: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y - titleOffset,\n };\n },\n bottom: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y + titleOffset,\n };\n },\n};\n\nclass ReferenceLineRoot extends Component {\n static displayName = 'ReferenceLine';\n static style = style;\n static defaultProps = {\n position: 'left',\n };\n\n getTitleProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n getBackgroundProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n render() {\n const SReferenceLine = this.Element;\n const { title, scale, position, value, color, resolveColor, styles } = this.asProps;\n const positionProps = lineDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <>\n <SReferenceLine\n render='line'\n __excludeProps={['data', 'scale', 'format', 'value', 'color']}\n stroke={resolveColor(color)}\n {...positionProps(scale, value)}\n />\n {title && <ReferenceLine.Title>{title}</ReferenceLine.Title>}\n </>,\n );\n }\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, value } = props;\n const { x, y } = titleSideToProps[position](scale, value);\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n render='text'\n childrenPosition='inside'\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n position={position}\n x={x}\n y={y}\n />,\n );\n}\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position = 'left', value, endValue } = props;\n const positionProps = rectDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <SBackground\n render='rect'\n childrenPosition='inside'\n {...positionProps(scale, value, endValue)}\n />,\n );\n}\nBackground.style = style;\n\nconst diagonalGap = 8;\nconst gap = Math.sqrt(diagonalGap ** 2 + diagonalGap ** 2);\nconst gap12 = gap * (1 / 2);\nconst gap32 = gap * (3 / 2);\nconst path = `M-${gap},-${gap12} L${gap},${gap32} M-${gap12},-${gap} L${gap32},${gap}`;\nfunction Stripes(props) {\n const { Element: SStripes, styles, scale, position = 'left', value, endValue, uid } = props;\n const SStripesPatternPath = 'path';\n const positionProps = rectDirection2props[side2direction[position]];\n const patternId = `${uid}-pattern`;\n\n return sstyled(styles)(\n <g>\n <SStripes\n render='rect'\n childrenPosition='inside'\n fill={`url(#${patternId})`}\n {...positionProps(scale, value, endValue)}\n />\n <pattern id={patternId} patternUnits='userSpaceOnUse' width={gap} height={gap}>\n <SStripesPatternPath d={path} />\n </pattern>\n </g>,\n );\n}\nStripes.style = style;\nStripes.enhance = [uniqueIDEnhancement()];\n\nexport const ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n Stripes,\n});\n\nexport const ReferenceBackground = createElement(Background);\nexport const ReferenceStripes = createElement(Stripes);\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,cAAA,GAAAJ,sBAAA,CAAAC,OAAA;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AA,MAAaiC,SAAS;IAAA,gBAAe,gBAAgB;IAAA,SAAQb,GAAG;IAAA,UAAUA;EAAG,iBAC3EzG,MAAA,YAAAmF,aAAA,CAACkC,mBAAmB,EAAAJ,KAAA,CAAA5B,EAAA;IAAA,KAAI0B;EAAI,GAAI,CACxB,CACR;AAER;AACAC,OAAO,CAACzG,KAAK,GAAGA,KAAK;AACrByG,OAAO,CAACO,OAAO,GAAG,CAAC,IAAAC,oBAAmB,GAAE,CAAC;AAElC,IAAMjC,aAAa,GAAG,IAAAJ,yBAAa,EAAC3B,iBAAiB,EAAE;EAC5DgC,KAAK,EAALA,KAAK;EACLY,UAAU,EAAVA,UAAU;EACVY,OAAO,EAAPA;AACF,CAAC,CAAC;AAACS,OAAA,CAAAlC,aAAA,GAAAA,aAAA;AAEI,IAAMmC,mBAAmB,GAAG,IAAAvC,yBAAa,EAACiB,UAAU,CAAC;AAACqB,OAAA,CAAAC,mBAAA,GAAAA,mBAAA;AACtD,IAAMC,gBAAgB,GAAG,IAAAxC,yBAAa,EAAC6B,OAAO,CAAC;AAACS,OAAA,CAAAE,gBAAA,GAAAA,gBAAA"}
@@ -24,15 +24,15 @@ var _utils = require("./utils");
24
24
  var _Tooltip = _interopRequireDefault(require("./Tooltip"));
25
25
  var _Pattern = require("./Pattern");
26
26
  /*__reshadow-styles__:"./style/scatterplot.shadow.css"*/
27
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_1e2mv_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_1e2mv);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_1e2mv_gg_:hover{opacity:.8}}.___SScatterPlot_1e2mv_gg_.__color_1e2mv_gg_{fill:var(--color_1e2mv)}.___SScatterPlot_1e2mv_gg_.__pattern_1e2mv_gg_.__color_1e2mv_gg_{fill:var(--pattern_1e2mv);stroke:var(--color_1e2mv);stroke-width:1px}.___SScatterPlot_1e2mv_gg_.__transparent_1e2mv_gg_{opacity:.3}.___SValue_1e2mv_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_1e2mv_gg_.__color_1e2mv_gg_{stroke:var(--color_1e2mv)}.___SValue_1e2mv_gg_.__transparent_1e2mv_gg_{opacity:.3}" /*__inner_css_end__*/, "1e2mv_gg_") /*__reshadow_css_end__*/, {
28
- "__SScatterPlot": "___SScatterPlot_1e2mv_gg_",
29
- "_color": "__color_1e2mv_gg_",
30
- "--color": "--color_1e2mv",
31
- "_pattern": "__pattern_1e2mv_gg_",
32
- "--pattern": "--pattern_1e2mv",
33
- "_transparent": "__transparent_1e2mv_gg_",
34
- "__SValue": "___SValue_1e2mv_gg_",
35
- "--duration": "--duration_1e2mv"
27
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_t40s5_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_t40s5);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_t40s5_gg_:hover{opacity:.8}}.___SScatterPlot_t40s5_gg_.__color_t40s5_gg_{fill:var(--color_t40s5)}.___SScatterPlot_t40s5_gg_.__pattern_t40s5_gg_.__color_t40s5_gg_{fill:var(--pattern_t40s5);stroke:var(--color_t40s5);stroke-width:1px}.___SScatterPlot_t40s5_gg_.__transparent_t40s5_gg_{opacity:.3}.___SValue_t40s5_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_t40s5_gg_.__color_t40s5_gg_{stroke:var(--color_t40s5)}.___SValue_t40s5_gg_.__transparent_t40s5_gg_{opacity:.3}" /*__inner_css_end__*/, "t40s5_gg_") /*__reshadow_css_end__*/, {
28
+ "__SScatterPlot": "___SScatterPlot_t40s5_gg_",
29
+ "_color": "__color_t40s5_gg_",
30
+ "--color": "--color_t40s5",
31
+ "_pattern": "__pattern_t40s5_gg_",
32
+ "--pattern": "--pattern_t40s5",
33
+ "_transparent": "__transparent_t40s5_gg_",
34
+ "__SValue": "___SValue_t40s5_gg_",
35
+ "--duration": "--duration_t40s5"
36
36
  });
37
37
  var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
38
38
  (0, _inherits2["default"])(ScatterPlotRoot, _Component);
@@ -25,15 +25,15 @@ var _useColorResolver = require("@semcore/utils/lib/use/useColorResolver");
25
25
  var _Pattern = require("./Pattern");
26
26
  var _excluded = ["Children", "children", "tag", "forcedAdvancedMode"];
27
27
  /*__reshadow-styles__:"./style/tooltip.shadow.css"*/
28
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___STooltip_1gdh1_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_1gdh1_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_1gdh1_gg_{display:flex;align-items:center}.___SDot_1gdh1_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_1gdh1_gg_.__color_1gdh1_gg_{background-color:var(--color_1gdh1);width:8px;height:8px;border-radius:50%}.___SFooter_1gdh1_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}" /*__inner_css_end__*/, "1gdh1_gg_") /*__reshadow_css_end__*/, {
29
- "__STooltip": "___STooltip_1gdh1_gg_",
30
- "__STitle": "___STitle_1gdh1_gg_",
31
- "__SDotGroup": "___SDotGroup_1gdh1_gg_",
32
- "__SDot": "___SDot_1gdh1_gg_",
33
- "__SDotCircle": "___SDotCircle_1gdh1_gg_",
34
- "_color": "__color_1gdh1_gg_",
35
- "--color": "--color_1gdh1",
36
- "__SFooter": "___SFooter_1gdh1_gg_"
28
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___STooltip_ytxol_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_ytxol_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_ytxol_gg_{display:flex;align-items:center}.___SDot_ytxol_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_ytxol_gg_.__color_ytxol_gg_{background-color:var(--color_ytxol);width:8px;height:8px;border-radius:50%}.___SFooter_ytxol_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}" /*__inner_css_end__*/, "ytxol_gg_") /*__reshadow_css_end__*/, {
29
+ "__STooltip": "___STooltip_ytxol_gg_",
30
+ "__STitle": "___STitle_ytxol_gg_",
31
+ "__SDotGroup": "___SDotGroup_ytxol_gg_",
32
+ "__SDot": "___SDot_ytxol_gg_",
33
+ "__SDotCircle": "___SDotCircle_ytxol_gg_",
34
+ "_color": "__color_ytxol_gg_",
35
+ "--color": "--color_ytxol",
36
+ "__SFooter": "___SFooter_ytxol_gg_"
37
37
  });
38
38
  /**
39
39
  * `TooltipDotRenderContext` is a hack to bypass problem that getDotProps doesn't work for D3 tooltip.
package/lib/cjs/Venn.js CHANGED
@@ -26,15 +26,15 @@ var _Tooltip = _interopRequireDefault(require("./Tooltip"));
26
26
  var _Pattern = require("./Pattern");
27
27
  var _uniqueID = _interopRequireDefault(require("@semcore/utils/lib/uniqueID"));
28
28
  /*__reshadow-styles__:"./style/venn.shadow.css"*/
29
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SCircle_1vmme_gg_,.___SIntersection_1vmme_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_1vmme_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1vmme);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_1vmme_gg_:hover{fill-opacity:.7}}.___SCircle_1vmme_gg_.__color_1vmme_gg_{fill:var(--color_1vmme)}.___SCircle_1vmme_gg_.__pattern_1vmme_gg_.__color_1vmme_gg_{fill:var(--pattern_1vmme);fill-opacity:.7;stroke:var(--color_1vmme);stroke-width:1px}@media (hover:hover){.___SCircle_1vmme_gg_.__pattern_1vmme_gg_.__color_1vmme_gg_:hover{fill-opacity:.85}}.___SCircle_1vmme_gg_.__transparent_1vmme_gg_{opacity:.3}.___SIntersection_1vmme_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_1vmme_gg_:hover{fill-opacity:.1}}.___SIntersection_1vmme_gg_.__transparent_1vmme_gg_{opacity:.3}" /*__inner_css_end__*/, "1vmme_gg_") /*__reshadow_css_end__*/, {
30
- "__SCircle": "___SCircle_1vmme_gg_",
31
- "_color": "__color_1vmme_gg_",
32
- "--color": "--color_1vmme",
33
- "_transparent": "__transparent_1vmme_gg_",
34
- "__SIntersection": "___SIntersection_1vmme_gg_",
35
- "--duration": "--duration_1vmme",
36
- "_pattern": "__pattern_1vmme_gg_",
37
- "--pattern": "--pattern_1vmme"
29
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SCircle_1i130_gg_,.___SIntersection_1i130_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_1i130_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1i130);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_1i130_gg_:hover{fill-opacity:.7}}.___SCircle_1i130_gg_.__color_1i130_gg_{fill:var(--color_1i130)}.___SCircle_1i130_gg_.__pattern_1i130_gg_.__color_1i130_gg_{fill:var(--pattern_1i130);fill-opacity:.7;stroke:var(--color_1i130);stroke-width:1px}@media (hover:hover){.___SCircle_1i130_gg_.__pattern_1i130_gg_.__color_1i130_gg_:hover{fill-opacity:.85}}.___SCircle_1i130_gg_.__transparent_1i130_gg_{opacity:.3}.___SIntersection_1i130_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_1i130_gg_:hover{fill-opacity:.1}}.___SIntersection_1i130_gg_.__transparent_1i130_gg_{opacity:.3}" /*__inner_css_end__*/, "1i130_gg_") /*__reshadow_css_end__*/, {
30
+ "__SCircle": "___SCircle_1i130_gg_",
31
+ "_color": "__color_1i130_gg_",
32
+ "--color": "--color_1i130",
33
+ "_transparent": "__transparent_1i130_gg_",
34
+ "__SIntersection": "___SIntersection_1i130_gg_",
35
+ "--duration": "--duration_1i130",
36
+ "_pattern": "__pattern_1i130_gg_",
37
+ "--pattern": "--pattern_1i130"
38
38
  });
39
39
  var VennRoot = /*#__PURE__*/function (_Component) {
40
40
  (0, _inherits2["default"])(VennRoot, _Component);
@@ -17,8 +17,8 @@ var _intergalacticDynamicLocales = require("./translations/module/__intergalacti
17
17
  var _WithI18n = require("@semcore/utils/lib/enhances/WithI18n");
18
18
  var _flexBox = require("@semcore/flex-box");
19
19
  /*__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
20
- var styles = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_gi63x_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_gi63x_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "gi63x_gg_") /*__reshadow_css_end__*/, {
21
- "__SPlotA11yModule": "___SPlotA11yModule_gi63x_gg_"
20
+ var styles = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_1o618_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1o618_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "1o618_gg_") /*__reshadow_css_end__*/, {
21
+ "__SPlotA11yModule": "___SPlotA11yModule_1o618_gg_"
22
22
  });
23
23
  var globalWasFocused = false;
24
24
  var globalNavWithKeyboard = false;
@@ -19,8 +19,8 @@ var _i18nEnhance = require("@semcore/utils/lib/enhances/i18nEnhance");
19
19
  var _intergalacticDynamicLocales = require("./translations/view/__intergalactic-dynamic-locales");
20
20
  var _DataAccessibilityTable = require("./DataAccessibilityTable");
21
21
  /*__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
22
- var styles = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_5t700_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);border:3px solid var(--intergalactic-border-primary, #c4c7cf);font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_5t700_gg_:focus,.___SPlotA11yView_5t700_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay, 500);position:relative;display:block}.___SPlotA11yView_5t700_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_5t700_gg_ table,.___SPlotA11yView_5t700_gg_ td,.___SPlotA11yView_5t700_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "5t700_gg_") /*__reshadow_css_end__*/, {
23
- "__SPlotA11yView": "___SPlotA11yView_5t700_gg_"
22
+ var styles = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_17q02_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);border:3px solid var(--intergalactic-border-primary, #c4c7cf);font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_17q02_gg_:focus,.___SPlotA11yView_17q02_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay, 500);position:relative;display:block}.___SPlotA11yView_17q02_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_17q02_gg_ table,.___SPlotA11yView_17q02_gg_ td,.___SPlotA11yView_17q02_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "17q02_gg_") /*__reshadow_css_end__*/, {
23
+ "__SPlotA11yView": "___SPlotA11yView_17q02_gg_"
24
24
  });
25
25
  var PlotA11yView = function PlotA11yView(_ref3) {
26
26
  var _ref = arguments[0],
@@ -23,10 +23,10 @@ var _BaseLegend2 = require("../BaseLegend");
23
23
  var _intergalacticDynamicLocales = require("../../../translations/__intergalactic-dynamic-locales");
24
24
  var _i18nEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/i18nEnhance"));
25
25
  /*__reshadow-styles__:"./legend-flex.shadow.css"*/
26
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_61zb4_gg_._direction_row_61zb4_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_61zb4_gg_._direction_column_61zb4_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "61zb4_gg_") /*__reshadow_css_end__*/, {
27
- "__SLegendFlex": "___SLegendFlex_61zb4_gg_",
28
- "_direction_row": "_direction_row_61zb4_gg_",
29
- "_direction_column": "_direction_column_61zb4_gg_"
26
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_v6736_gg_._direction_row_v6736_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_v6736_gg_._direction_column_v6736_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "v6736_gg_") /*__reshadow_css_end__*/, {
27
+ "__SLegendFlex": "___SLegendFlex_v6736_gg_",
28
+ "_direction_row": "_direction_row_v6736_gg_",
29
+ "_direction_column": "_direction_column_v6736_gg_"
30
30
  });
31
31
  var LegendFlexRoot = /*#__PURE__*/function (_BaseLegend) {
32
32
  (0, _inherits2["default"])(LegendFlexRoot, _BaseLegend);
@@ -25,23 +25,23 @@ var _Pattern = require("../../../Pattern");
25
25
  var _utils = require("../../../utils");
26
26
  var _excluded = ["color"];
27
27
  /*__reshadow-styles__:"./legend-item.shadow.css"*/
28
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SLegendItem_1lyhg_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_1lyhg_gg_:hover{cursor:pointer}.___SLegendItem_1lyhg_gg_.__disabled_1lyhg_gg_:hover{cursor:default}}.___SPointShape_1lyhg_gg_.__color_1lyhg_gg_{background-color:var(--color_1lyhg);margin-right:8px;flex-shrink:0}.___SPointShape_1lyhg_gg_._shape_Circle_1lyhg_gg_._size_l_1lyhg_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_1lyhg_gg_._shape_Circle_1lyhg_gg_._size_m_1lyhg_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_1lyhg_gg_._shape_Line_1lyhg_gg_._size_l_1lyhg_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_1lyhg_gg_._shape_Line_1lyhg_gg_._size_m_1lyhg_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_1lyhg_gg_._shape_Square_1lyhg_gg_._size_l_1lyhg_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_1lyhg_gg_._shape_Square_1lyhg_gg_._size_m_1lyhg_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_1lyhg_gg_._shape_Pattern_1lyhg_gg_{background-color:transparent;margin-right:4px}.___SIcon_1lyhg_gg_{line-height:0;margin-right:4px}.___SIcon_1lyhg_gg_._size_l_1lyhg_gg_{margin-top:4px}.___SIcon_1lyhg_gg_._size_m_1lyhg_gg_{margin-top:2px}.___SLabel_1lyhg_gg_{min-width:0}.___SAdditionalLabel_1lyhg_gg_._size_l_1lyhg_gg_,.___SCount_1lyhg_gg_._size_l_1lyhg_gg_,.___SLabel_1lyhg_gg_._size_l_1lyhg_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_1lyhg_gg_._size_m_1lyhg_gg_,.___SCount_1lyhg_gg_._size_m_1lyhg_gg_,.___SLabel_1lyhg_gg_._size_m_1lyhg_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_1lyhg_gg_,.___SCount_1lyhg_gg_{margin-left:4px}.___SAdditionalLabel_1lyhg_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_1lyhg_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_1lyhg_gg_._size_l_1lyhg_gg_::before{margin-top:10px}.___SAdditionalLabel_1lyhg_gg_._size_m_1lyhg_gg_::before{margin-top:8px}.___SPatternSymbol_1lyhg_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "1lyhg_gg_") /*__reshadow_css_end__*/, {
29
- "__SLegendItem": "___SLegendItem_1lyhg_gg_",
30
- "_disabled": "__disabled_1lyhg_gg_",
31
- "__SPointShape": "___SPointShape_1lyhg_gg_",
32
- "_color": "__color_1lyhg_gg_",
33
- "--color": "--color_1lyhg",
34
- "_shape_Circle": "_shape_Circle_1lyhg_gg_",
35
- "_size_l": "_size_l_1lyhg_gg_",
36
- "_size_m": "_size_m_1lyhg_gg_",
37
- "_shape_Line": "_shape_Line_1lyhg_gg_",
38
- "_shape_Square": "_shape_Square_1lyhg_gg_",
39
- "_shape_Pattern": "_shape_Pattern_1lyhg_gg_",
40
- "__SIcon": "___SIcon_1lyhg_gg_",
41
- "__SLabel": "___SLabel_1lyhg_gg_",
42
- "__SAdditionalLabel": "___SAdditionalLabel_1lyhg_gg_",
43
- "__SCount": "___SCount_1lyhg_gg_",
44
- "__SPatternSymbol": "___SPatternSymbol_1lyhg_gg_"
28
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SLegendItem_29ce6_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_29ce6_gg_:hover{cursor:pointer}.___SLegendItem_29ce6_gg_.__disabled_29ce6_gg_:hover{cursor:default}}.___SPointShape_29ce6_gg_.__color_29ce6_gg_{background-color:var(--color_29ce6);margin-right:8px;flex-shrink:0}.___SPointShape_29ce6_gg_._shape_Circle_29ce6_gg_._size_l_29ce6_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_29ce6_gg_._shape_Circle_29ce6_gg_._size_m_29ce6_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_29ce6_gg_._shape_Line_29ce6_gg_._size_l_29ce6_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_29ce6_gg_._shape_Line_29ce6_gg_._size_m_29ce6_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_29ce6_gg_._shape_Square_29ce6_gg_._size_l_29ce6_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_29ce6_gg_._shape_Square_29ce6_gg_._size_m_29ce6_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_29ce6_gg_._shape_Pattern_29ce6_gg_{background-color:transparent;margin-right:4px}.___SIcon_29ce6_gg_{line-height:0;margin-right:4px}.___SIcon_29ce6_gg_._size_l_29ce6_gg_{margin-top:4px}.___SIcon_29ce6_gg_._size_m_29ce6_gg_{margin-top:2px}.___SLabel_29ce6_gg_{min-width:0}.___SAdditionalLabel_29ce6_gg_._size_l_29ce6_gg_,.___SCount_29ce6_gg_._size_l_29ce6_gg_,.___SLabel_29ce6_gg_._size_l_29ce6_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_29ce6_gg_._size_m_29ce6_gg_,.___SCount_29ce6_gg_._size_m_29ce6_gg_,.___SLabel_29ce6_gg_._size_m_29ce6_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_29ce6_gg_,.___SCount_29ce6_gg_{margin-left:4px}.___SAdditionalLabel_29ce6_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_29ce6_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_29ce6_gg_._size_l_29ce6_gg_::before{margin-top:10px}.___SAdditionalLabel_29ce6_gg_._size_m_29ce6_gg_::before{margin-top:8px}.___SPatternSymbol_29ce6_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "29ce6_gg_") /*__reshadow_css_end__*/, {
29
+ "__SLegendItem": "___SLegendItem_29ce6_gg_",
30
+ "_disabled": "__disabled_29ce6_gg_",
31
+ "__SPointShape": "___SPointShape_29ce6_gg_",
32
+ "_color": "__color_29ce6_gg_",
33
+ "--color": "--color_29ce6",
34
+ "_shape_Circle": "_shape_Circle_29ce6_gg_",
35
+ "_size_l": "_size_l_29ce6_gg_",
36
+ "_size_m": "_size_m_29ce6_gg_",
37
+ "_shape_Line": "_shape_Line_29ce6_gg_",
38
+ "_shape_Square": "_shape_Square_29ce6_gg_",
39
+ "_shape_Pattern": "_shape_Pattern_29ce6_gg_",
40
+ "__SIcon": "___SIcon_29ce6_gg_",
41
+ "__SLabel": "___SLabel_29ce6_gg_",
42
+ "__SAdditionalLabel": "___SAdditionalLabel_29ce6_gg_",
43
+ "__SCount": "___SCount_29ce6_gg_",
44
+ "__SPatternSymbol": "___SPatternSymbol_29ce6_gg_"
45
45
  });
46
46
  var LegendItemRoot = /*#__PURE__*/function (_Component) {
47
47
  (0, _inherits2["default"])(LegendItemRoot, _Component);
@@ -19,12 +19,12 @@ var _flexBox = require("@semcore/flex-box");
19
19
  var _LegendItem = require("../LegendItem/LegendItem");
20
20
  var _BaseLegend2 = require("../BaseLegend");
21
21
  /*__reshadow-styles__:"./legend-table.shadow.css"*/
22
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SLegendTable_nifh2_gg_.__columns-count_nifh2_gg_{font-feature-settings:\"tnum\";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_nifh2_gg_._size_l_nifh2_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_nifh2_gg_._size_m_nifh2_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}" /*__inner_css_end__*/, "nifh2_gg_") /*__reshadow_css_end__*/, {
23
- "__SLegendTable": "___SLegendTable_nifh2_gg_",
24
- "_columns-count": "__columns-count_nifh2_gg_",
25
- "__SColumnItem": "___SColumnItem_nifh2_gg_",
26
- "_size_l": "_size_l_nifh2_gg_",
27
- "_size_m": "_size_m_nifh2_gg_"
22
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SLegendTable_1jbgd_gg_.__columns-count_1jbgd_gg_{font-feature-settings:\"tnum\";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_1jbgd_gg_._size_l_1jbgd_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_1jbgd_gg_._size_m_1jbgd_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}" /*__inner_css_end__*/, "1jbgd_gg_") /*__reshadow_css_end__*/, {
23
+ "__SLegendTable": "___SLegendTable_1jbgd_gg_",
24
+ "_columns-count": "__columns-count_1jbgd_gg_",
25
+ "__SColumnItem": "___SColumnItem_1jbgd_gg_",
26
+ "_size_l": "_size_l_1jbgd_gg_",
27
+ "_size_m": "_size_m_1jbgd_gg_"
28
28
  });
29
29
  var LegendTableRoot = /*#__PURE__*/function (_BaseLegend) {
30
30
  (0, _inherits2["default"])(LegendTableRoot, _BaseLegend);
package/lib/cjs/index.js CHANGED
@@ -113,10 +113,22 @@ Object.defineProperty(exports, "RadialTree", {
113
113
  return _RadialTree["default"];
114
114
  }
115
115
  });
116
+ Object.defineProperty(exports, "ReferenceBackground", {
117
+ enumerable: true,
118
+ get: function get() {
119
+ return _Reference.ReferenceBackground;
120
+ }
121
+ });
116
122
  Object.defineProperty(exports, "ReferenceLine", {
117
123
  enumerable: true,
118
124
  get: function get() {
119
- return _ReferenceLine["default"];
125
+ return _Reference.ReferenceLine;
126
+ }
127
+ });
128
+ Object.defineProperty(exports, "ReferenceStripes", {
129
+ enumerable: true,
130
+ get: function get() {
131
+ return _Reference.ReferenceStripes;
120
132
  }
121
133
  });
122
134
  Object.defineProperty(exports, "ResponsiveContainer", {
@@ -240,7 +252,7 @@ var _Venn = _interopRequireDefault(require("./Venn"));
240
252
  var _Radar = _interopRequireWildcard(require("./Radar"));
241
253
  var _Tooltip = _interopRequireDefault(require("./Tooltip"));
242
254
  var _ResponsiveContainer = _interopRequireDefault(require("./ResponsiveContainer"));
243
- var _ReferenceLine = _interopRequireDefault(require("./ReferenceLine"));
255
+ var _Reference = require("./Reference");
244
256
  var _Hover = require("./Hover");
245
257
  var _utils = require("./utils");
246
258
  var _color = require("./color");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_Plot","_interopRequireDefault","require","_ChartLegend","_Chart","_Axis","_Line","_Bar","_HorizontalBar","_GroupBar","_StackBar","_Area","_StackedArea","_ScatterPlot","_Bubble","_RadialTree","_Donut","_Venn","_Radar","_interopRequireWildcard","_Tooltip","_ResponsiveContainer","_ReferenceLine","_Hover","_utils","_color","_hints","_Pattern"],"sources":["../../src/index.js"],"sourcesContent":["export { default as Plot } from './Plot';\nexport { ChartLegend, ChartLegendTable } from './component/ChartLegend';\nexport { default as Chart } from './component/Chart';\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 {\n minMax,\n interpolateValue,\n getBubbleChartValueScale,\n getScatterPlotRadius,\n calculateBubbleDomain,\n PlotEventEmitter,\n} from './utils';\nexport { colors } from './color';\n\nexport { makeDataHintsContainer } from './a11y/hints';\n\nexport { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAEA,IAAAI,KAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,IAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,cAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,SAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,SAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,KAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,YAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,YAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,OAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,WAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,MAAA,GAAAf,sBAAA,CAAAC,OAAA;AACA,IAAAe,KAAA,GAAAhB,sBAAA,CAAAC,OAAA;AACA,IAAAgB,MAAA,GAAAC,uBAAA,CAAAjB,OAAA;AAEA,IAAAkB,QAAA,GAAAnB,sBAAA,CAAAC,OAAA;AAEA,IAAAmB,oBAAA,GAAApB,sBAAA,CAAAC,OAAA;AACA,IAAAoB,cAAA,GAAArB,sBAAA,CAAAC,OAAA;AAEA,IAAAqB,MAAA,GAAArB,OAAA;AAEA,IAAAsB,MAAA,GAAAtB,OAAA;AAQA,IAAAuB,MAAA,GAAAvB,OAAA;AAEA,IAAAwB,MAAA,GAAAxB,OAAA;AAEA,IAAAyB,QAAA,GAAAzB,OAAA"}
1
+ {"version":3,"file":"index.js","names":["_Plot","_interopRequireDefault","require","_ChartLegend","_Chart","_Axis","_Line","_Bar","_HorizontalBar","_GroupBar","_StackBar","_Area","_StackedArea","_ScatterPlot","_Bubble","_RadialTree","_Donut","_Venn","_Radar","_interopRequireWildcard","_Tooltip","_ResponsiveContainer","_Reference","_Hover","_utils","_color","_hints","_Pattern"],"sources":["../../src/index.js"],"sourcesContent":["export { default as Plot } from './Plot';\nexport { ChartLegend, ChartLegendTable } from './component/ChartLegend';\nexport { default as Chart } from './component/Chart';\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 { ReferenceLine, ReferenceBackground, ReferenceStripes } from './Reference';\n\nexport { HoverLine, HoverRect } from './Hover';\n\nexport {\n minMax,\n interpolateValue,\n getBubbleChartValueScale,\n getScatterPlotRadius,\n calculateBubbleDomain,\n PlotEventEmitter,\n} from './utils';\nexport { colors } from './color';\n\nexport { makeDataHintsContainer } from './a11y/hints';\n\nexport { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AAEA,IAAAI,KAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,IAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,cAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,SAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,SAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,KAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,YAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,YAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,OAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,WAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,MAAA,GAAAf,sBAAA,CAAAC,OAAA;AACA,IAAAe,KAAA,GAAAhB,sBAAA,CAAAC,OAAA;AACA,IAAAgB,MAAA,GAAAC,uBAAA,CAAAjB,OAAA;AAEA,IAAAkB,QAAA,GAAAnB,sBAAA,CAAAC,OAAA;AAEA,IAAAmB,oBAAA,GAAApB,sBAAA,CAAAC,OAAA;AACA,IAAAoB,UAAA,GAAApB,OAAA;AAEA,IAAAqB,MAAA,GAAArB,OAAA;AAEA,IAAAsB,MAAA,GAAAtB,OAAA;AAQA,IAAAuB,MAAA,GAAAvB,OAAA;AAEA,IAAAwB,MAAA,GAAAxB,OAAA;AAEA,IAAAyB,QAAA,GAAAzB,OAAA"}
@@ -33,3 +33,11 @@ STitle[position='left'] {
33
33
  SBackground {
34
34
  fill: var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2));
35
35
  }
36
+ SStripes {
37
+ fill: var(--fill);
38
+ }
39
+
40
+ SStripesPatternPath {
41
+ stroke: var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));
42
+ stroke-width: 1px;
43
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=Reference.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Reference.d.js","names":[],"sources":["../../../src/types/Reference.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated **/\nexport interface IReferenceLineProps extends ReferenceLineProps, UnknownProperties {}\nexport type ReferenceLineProps = Context & {\n /** The position of the title relative reference line\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n\n title?: string;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineTitleProps extends ReferenceLineTitleProps, UnknownProperties {}\nexport type ReferenceLineTitleProps = Context & {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineBackgroundProps\n extends ReferenceLineBackgroundProps,\n UnknownProperties {}\nexport type ReferenceBackgroundProps = Context & {\n /** The position relative the `value` */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n /** Value of the background end */\n endValue?: number | string;\n};\n/** @deprecated use ReferenceBackgroundProps instead **/\nexport type ReferenceLineBackgroundProps = ReferenceBackgroundProps;\n\nexport type ReferenceStripesProps = Context & {\n /** The position relative the `value` */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n /** Value of the background end */\n endValue?: number | string;\n};\n\nexport declare const ReferenceLine: IntergalacticD3Component<\n 'line',\n ReferenceLineProps,\n Context\n> & {\n Title: IntergalacticD3Component<'text', ReferenceLineTitleProps, Context>;\n /**\n * @deprecated use `ReferenceBackground` instead.\n */\n Background: IntergalacticD3Component<'rect', ReferenceLineBackgroundProps, Context>;\n};\nexport declare const ReferenceBackground: IntergalacticD3Component<\n 'rect',\n ReferenceLineBackgroundProps,\n Context\n>;\nexport declare const ReferenceStripes: IntergalacticD3Component<\n 'rect',\n ReferenceStripesProps,\n Context\n>;\n"],"mappings":""}
@@ -22,7 +22,6 @@ var _exportNames = {
22
22
  Tooltip: true,
23
23
  ScatterPlot: true,
24
24
  Bubble: true,
25
- ReferenceLine: true,
26
25
  Venn: true,
27
26
  RadialTree: true,
28
27
  ChartLegend: true,
@@ -113,12 +112,6 @@ Object.defineProperty(exports, "RadialTree", {
113
112
  return _RadialTree["default"];
114
113
  }
115
114
  });
116
- Object.defineProperty(exports, "ReferenceLine", {
117
- enumerable: true,
118
- get: function get() {
119
- return _ReferenceLine["default"];
120
- }
121
- });
122
115
  Object.defineProperty(exports, "ResponsiveContainer", {
123
116
  enumerable: true,
124
117
  get: function get() {
@@ -355,15 +348,15 @@ Object.keys(_Bubble).forEach(function (key) {
355
348
  }
356
349
  });
357
350
  });
358
- var _ReferenceLine = _interopRequireWildcard(require("./ReferenceLine"));
359
- Object.keys(_ReferenceLine).forEach(function (key) {
351
+ var _Reference = require("./Reference");
352
+ Object.keys(_Reference).forEach(function (key) {
360
353
  if (key === "default" || key === "__esModule") return;
361
354
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
362
- if (key in exports && exports[key] === _ReferenceLine[key]) return;
355
+ if (key in exports && exports[key] === _Reference[key]) return;
363
356
  Object.defineProperty(exports, key, {
364
357
  enumerable: true,
365
358
  get: function get() {
366
- return _ReferenceLine[key];
359
+ return _Reference[key];
367
360
  }
368
361
  });
369
362
  });