intergalactic 15.43.0-prerelease-574a75da → 15.43.1-prerelease-86c9168b

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 (57) hide show
  1. package/CHANGELOG.md +6 -65
  2. package/components.json +72 -72
  3. package/d3-chart/lib/cjs/Area.js +9 -9
  4. package/d3-chart/lib/cjs/Axis.js +14 -14
  5. package/d3-chart/lib/cjs/Bar.js +8 -8
  6. package/d3-chart/lib/cjs/Bubble.js +10 -10
  7. package/d3-chart/lib/cjs/Donut.js +7 -7
  8. package/d3-chart/lib/cjs/Dots.js +8 -8
  9. package/d3-chart/lib/cjs/HorizontalBar.js +8 -8
  10. package/d3-chart/lib/cjs/Hover.js +3 -3
  11. package/d3-chart/lib/cjs/Line.js +9 -9
  12. package/d3-chart/lib/cjs/Plot.js +3 -3
  13. package/d3-chart/lib/cjs/Radar.js +17 -17
  14. package/d3-chart/lib/cjs/RadialTree.js +10 -10
  15. package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
  16. package/d3-chart/lib/cjs/ScatterPlot.js +7 -7
  17. package/d3-chart/lib/cjs/Tooltip.js +8 -8
  18. package/d3-chart/lib/cjs/Venn.js +7 -7
  19. package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
  20. package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
  21. package/d3-chart/lib/cjs/component/Chart/AbstractChart.js +1 -1
  22. package/d3-chart/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  23. package/d3-chart/lib/cjs/component/Chart/RadarChart.js +2 -2
  24. package/d3-chart/lib/cjs/component/Chart/RadarChart.js.map +1 -1
  25. package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  26. package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +15 -15
  27. package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  28. package/d3-chart/lib/es6/Area.js +9 -9
  29. package/d3-chart/lib/es6/Axis.js +14 -14
  30. package/d3-chart/lib/es6/Bar.js +8 -8
  31. package/d3-chart/lib/es6/Bubble.js +10 -10
  32. package/d3-chart/lib/es6/Donut.js +7 -7
  33. package/d3-chart/lib/es6/Dots.js +8 -8
  34. package/d3-chart/lib/es6/HorizontalBar.js +8 -8
  35. package/d3-chart/lib/es6/Hover.js +3 -3
  36. package/d3-chart/lib/es6/Line.js +9 -9
  37. package/d3-chart/lib/es6/Plot.js +3 -3
  38. package/d3-chart/lib/es6/Radar.js +17 -17
  39. package/d3-chart/lib/es6/RadialTree.js +10 -10
  40. package/d3-chart/lib/es6/ReferenceLine.js +9 -9
  41. package/d3-chart/lib/es6/ScatterPlot.js +7 -7
  42. package/d3-chart/lib/es6/Tooltip.js +8 -8
  43. package/d3-chart/lib/es6/Venn.js +7 -7
  44. package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
  45. package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
  46. package/d3-chart/lib/es6/component/Chart/AbstractChart.js +1 -1
  47. package/d3-chart/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  48. package/d3-chart/lib/es6/component/Chart/RadarChart.js +2 -2
  49. package/d3-chart/lib/es6/component/Chart/RadarChart.js.map +1 -1
  50. package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  51. package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +15 -15
  52. package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  53. package/package.json +2 -2
  54. package/pills/lib/cjs/Pills.js +17 -17
  55. package/pills/lib/cjs/style/pills.shadow.css +1 -1
  56. package/pills/lib/es6/Pills.js +17 -17
  57. package/pills/lib/es6/style/pills.shadow.css +1 -1
@@ -19,16 +19,16 @@ import createElement from './createElement';
19
19
  import { CONSTANT, measureText } from './utils';
20
20
  import Tooltip from './Tooltip';
21
21
  /*__reshadow-styles__:"./style/bubble.shadow.css"*/
22
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBubble_14ldy_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_14ldy);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SBubble_14ldy_gg_:hover{opacity:.8}}.___SBubble_14ldy_gg_.__color_14ldy_gg_{fill:var(--color_14ldy)}.___SBubble_14ldy_gg_.__transparent_14ldy_gg_{opacity:.3}.___SCenter_14ldy_gg_{text-anchor:middle;font-size:calc(var(--intergalactic-fs-100, 12px) - 1px);stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SCenter_14ldy_gg_.__color_14ldy_gg_{stroke:var(--color_14ldy)}.___SCenter_14ldy_gg_.__transparent_14ldy_gg_{opacity:.3}.___SLabel_14ldy_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SLabel_14ldy_gg_._position_right_14ldy_gg_{text-anchor:end}.___SLabel_14ldy_gg_._position_left_14ldy_gg_{text-anchor:start}.___SLabel_14ldy_gg_.__color_14ldy_gg_{fill:var(--color_14ldy)}.___SLabel_14ldy_gg_.__transparent_14ldy_gg_{opacity:.3}" /*__inner_css_end__*/, "14ldy_gg_") /*__reshadow_css_end__*/, {
23
- "__SBubble": "___SBubble_14ldy_gg_",
24
- "_color": "__color_14ldy_gg_",
25
- "--color": "--color_14ldy",
26
- "_transparent": "__transparent_14ldy_gg_",
27
- "__SCenter": "___SCenter_14ldy_gg_",
28
- "__SLabel": "___SLabel_14ldy_gg_",
29
- "_position_right": "_position_right_14ldy_gg_",
30
- "_position_left": "_position_left_14ldy_gg_",
31
- "--duration": "--duration_14ldy"
22
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBubble_1g6ii_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_1g6ii);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SBubble_1g6ii_gg_:hover{opacity:.8}}.___SBubble_1g6ii_gg_.__color_1g6ii_gg_{fill:var(--color_1g6ii)}.___SBubble_1g6ii_gg_.__transparent_1g6ii_gg_{opacity:.3}.___SCenter_1g6ii_gg_{text-anchor:middle;font-size:calc(var(--intergalactic-fs-100, 12px) - 1px);stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SCenter_1g6ii_gg_.__color_1g6ii_gg_{stroke:var(--color_1g6ii)}.___SCenter_1g6ii_gg_.__transparent_1g6ii_gg_{opacity:.3}.___SLabel_1g6ii_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SLabel_1g6ii_gg_._position_right_1g6ii_gg_{text-anchor:end}.___SLabel_1g6ii_gg_._position_left_1g6ii_gg_{text-anchor:start}.___SLabel_1g6ii_gg_.__color_1g6ii_gg_{fill:var(--color_1g6ii)}.___SLabel_1g6ii_gg_.__transparent_1g6ii_gg_{opacity:.3}" /*__inner_css_end__*/, "1g6ii_gg_") /*__reshadow_css_end__*/, {
23
+ "__SBubble": "___SBubble_1g6ii_gg_",
24
+ "_color": "__color_1g6ii_gg_",
25
+ "--color": "--color_1g6ii",
26
+ "_transparent": "__transparent_1g6ii_gg_",
27
+ "__SCenter": "___SCenter_1g6ii_gg_",
28
+ "__SLabel": "___SLabel_1g6ii_gg_",
29
+ "_position_right": "_position_right_1g6ii_gg_",
30
+ "_position_left": "_position_left_1g6ii_gg_",
31
+ "--duration": "--duration_1g6ii"
32
32
  });
33
33
  var BubbleRoot = /*#__PURE__*/function (_Component) {
34
34
  _inherits(BubbleRoot, _Component);
@@ -22,13 +22,13 @@ import createElement from './createElement';
22
22
  import { CONSTANT, getChartDefaultColorName } from './utils';
23
23
  import Tooltip from './Tooltip';
24
24
  /*__reshadow-styles__:"./style/donut.shadow.css"*/
25
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPie_eja8l_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPie_eja8l_gg_.__color_eja8l_gg_{fill:var(--color_eja8l)}.___SPie_eja8l_gg_.__transparent_eja8l_gg_{opacity:.3}.___SEmptyData_eja8l_gg_{fill:var(--intergalactic-chart-palette-order-null, #e0e1e9)}.___SEmptyData_eja8l_gg_.__color_eja8l_gg_{fill:var(--color_eja8l)}.___SLabel_eja8l_gg_{text-anchor:middle;vertical-anchor:middle;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}" /*__inner_css_end__*/, "eja8l_gg_") /*__reshadow_css_end__*/, {
26
- "__SPie": "___SPie_eja8l_gg_",
27
- "_color": "__color_eja8l_gg_",
28
- "--color": "--color_eja8l",
29
- "_transparent": "__transparent_eja8l_gg_",
30
- "__SEmptyData": "___SEmptyData_eja8l_gg_",
31
- "__SLabel": "___SLabel_eja8l_gg_"
25
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPie_tcyrn_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPie_tcyrn_gg_.__color_tcyrn_gg_{fill:var(--color_tcyrn)}.___SPie_tcyrn_gg_.__transparent_tcyrn_gg_{opacity:.3}.___SEmptyData_tcyrn_gg_{fill:var(--intergalactic-chart-palette-order-null, #e0e1e9)}.___SEmptyData_tcyrn_gg_.__color_tcyrn_gg_{fill:var(--color_tcyrn)}.___SLabel_tcyrn_gg_{text-anchor:middle;vertical-anchor:middle;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}" /*__inner_css_end__*/, "tcyrn_gg_") /*__reshadow_css_end__*/, {
26
+ "__SPie": "___SPie_tcyrn_gg_",
27
+ "_color": "__color_tcyrn_gg_",
28
+ "--color": "--color_tcyrn",
29
+ "_transparent": "__transparent_tcyrn_gg_",
30
+ "__SEmptyData": "___SEmptyData_tcyrn_gg_",
31
+ "__SLabel": "___SLabel_tcyrn_gg_"
32
32
  });
33
33
  var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
34
34
  function transitionAnglePie(_ref6) {
@@ -7,14 +7,14 @@ import trottle from 'intergalactic/utils/lib/rafTrottle';
7
7
  import createElement from './createElement';
8
8
  import { eventToPoint, invert, interpolateValue } from './utils';
9
9
  /*__reshadow-styles__:"./style/dot.shadow.css"*/
10
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDots_1w857_gg_ .___SDot_1w857_gg_{transition-duration:var(--duration_1w857)}.___SDot_1w857_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_1w857_gg_.__hide_1w857_gg_{display:none}.___SDot_1w857_gg_.__color_1w857_gg_{fill:var(--color_1w857)}.___SDot_1w857_gg_.__transparent_1w857_gg_{opacity:.3}" /*__inner_css_end__*/, "1w857_gg_") /*__reshadow_css_end__*/, {
11
- "__SDot": "___SDot_1w857_gg_",
12
- "_hide": "__hide_1w857_gg_",
13
- "_color": "__color_1w857_gg_",
14
- "--color": "--color_1w857",
15
- "_transparent": "__transparent_1w857_gg_",
16
- "__SDots": "___SDots_1w857_gg_",
17
- "--duration": "--duration_1w857"
10
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDots_1xlrv_gg_ .___SDot_1xlrv_gg_{transition-duration:var(--duration_1xlrv)}.___SDot_1xlrv_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_1xlrv_gg_.__hide_1xlrv_gg_{display:none}.___SDot_1xlrv_gg_.__color_1xlrv_gg_{fill:var(--color_1xlrv)}.___SDot_1xlrv_gg_.__transparent_1xlrv_gg_{opacity:.3}" /*__inner_css_end__*/, "1xlrv_gg_") /*__reshadow_css_end__*/, {
11
+ "__SDot": "___SDot_1xlrv_gg_",
12
+ "_hide": "__hide_1xlrv_gg_",
13
+ "_color": "__color_1xlrv_gg_",
14
+ "--color": "--color_1xlrv",
15
+ "_transparent": "__transparent_1xlrv_gg_",
16
+ "__SDots": "___SDots_1xlrv_gg_",
17
+ "--duration": "--duration_1xlrv"
18
18
  });
19
19
  var EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];
20
20
  function Dots(props) {
@@ -12,14 +12,14 @@ import createElement from './createElement';
12
12
  import AnimatedClipPath from './AnimatedClipPath';
13
13
  import { scaleToBand, roundedPath } from './utils';
14
14
  /*__reshadow-styles__:"./style/bar.shadow.css"*/
15
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBar_1rdjb_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_1rdjb);transition-timing-function:ease-in-out}.___SBar_1rdjb_gg_.__color_1rdjb_gg_{fill:var(--color_1rdjb)}.___SBar_1rdjb_gg_.__hide_1rdjb_gg_{display:none}.___SBar_1rdjb_gg_.__transparent_1rdjb_gg_{opacity:.3}.___SBackground_1rdjb_gg_{fill:var(--intergalactic-chart-palette-order-other-data, #c4c7cf)}" /*__inner_css_end__*/, "1rdjb_gg_") /*__reshadow_css_end__*/, {
16
- "__SBar": "___SBar_1rdjb_gg_",
17
- "--duration": "--duration_1rdjb",
18
- "_color": "__color_1rdjb_gg_",
19
- "--color": "--color_1rdjb",
20
- "_hide": "__hide_1rdjb_gg_",
21
- "_transparent": "__transparent_1rdjb_gg_",
22
- "__SBackground": "___SBackground_1rdjb_gg_"
15
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBar_1309c_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_1309c);transition-timing-function:ease-in-out}.___SBar_1309c_gg_.__color_1309c_gg_{fill:var(--color_1309c)}.___SBar_1309c_gg_.__hide_1309c_gg_{display:none}.___SBar_1309c_gg_.__transparent_1309c_gg_{opacity:.3}.___SBackground_1309c_gg_{fill:var(--intergalactic-chart-palette-order-other-data, #c4c7cf)}" /*__inner_css_end__*/, "1309c_gg_") /*__reshadow_css_end__*/, {
16
+ "__SBar": "___SBar_1309c_gg_",
17
+ "--duration": "--duration_1309c",
18
+ "_color": "__color_1309c_gg_",
19
+ "--color": "--color_1309c",
20
+ "_hide": "__hide_1309c_gg_",
21
+ "_transparent": "__transparent_1309c_gg_",
22
+ "__SBackground": "___SBackground_1309c_gg_"
23
23
  });
24
24
  export var MIN_WIDTH = 2;
25
25
  var calcPartBarX = function calcPartBarX(x, minWidth, width) {
@@ -16,9 +16,9 @@ import trottle from 'intergalactic/utils/lib/rafTrottle';
16
16
  import createElement from './createElement';
17
17
  import { scaleOfBandwidth, getIndexFromData, eventToPoint, invert, CONSTANT, scaleToBand } from './utils';
18
18
  /*__reshadow-styles__:"./style/hover.shadow.css"*/
19
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SHoverLine_noqsb_gg_{stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___SHoverRect_noqsb_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "noqsb_gg_") /*__reshadow_css_end__*/, {
20
- "__SHoverLine": "___SHoverLine_noqsb_gg_",
21
- "__SHoverRect": "___SHoverRect_noqsb_gg_"
19
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SHoverLine_11jl8_gg_{stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___SHoverRect_11jl8_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "11jl8_gg_") /*__reshadow_css_end__*/, {
20
+ "__SHoverLine": "___SHoverLine_11jl8_gg_",
21
+ "__SHoverRect": "___SHoverRect_11jl8_gg_"
22
22
  });
23
23
  import Tooltip from './Tooltip';
24
24
  var Hover = /*#__PURE__*/function (_Component) {
@@ -14,15 +14,15 @@ import { definedData, definedNullData, scaleOfBandwidth, getNullData, interpolat
14
14
  import Dots from './Dots';
15
15
  import AnimatedClipPath from './AnimatedClipPath';
16
16
  /*__reshadow-styles__:"./style/line.shadow.css"*/
17
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLine_161xq_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:d;transition-duration:var(--duration_161xq);transition-timing-function:ease-in-out}.___SLine_161xq_gg_.__color_161xq_gg_{stroke:var(--color_161xq)}.___SLine_161xq_gg_.__hide_161xq_gg_{display:none}.___SLine_161xq_gg_.__transparent_161xq_gg_{opacity:.3}.___SNull_161xq_gg_{fill:transparent;stroke:var(--intergalactic-border-primary, #c4c7cf);stroke-dasharray:4}.___SNull_161xq_gg_.__hide_161xq_gg_{display:none}.___SAria_161xq_gg_{transition-property:d;transition-duration:var(--duration_161xq);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SAria_161xq_gg_.__color_161xq_gg_{fill:var(--color_161xq)}" /*__inner_css_end__*/, "161xq_gg_") /*__reshadow_css_end__*/, {
18
- "__SLine": "___SLine_161xq_gg_",
19
- "--duration": "--duration_161xq",
20
- "_color": "__color_161xq_gg_",
21
- "--color": "--color_161xq",
22
- "_hide": "__hide_161xq_gg_",
23
- "_transparent": "__transparent_161xq_gg_",
24
- "__SNull": "___SNull_161xq_gg_",
25
- "__SAria": "___SAria_161xq_gg_"
17
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLine_1btis_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:d;transition-duration:var(--duration_1btis);transition-timing-function:ease-in-out}.___SLine_1btis_gg_.__color_1btis_gg_{stroke:var(--color_1btis)}.___SLine_1btis_gg_.__hide_1btis_gg_{display:none}.___SLine_1btis_gg_.__transparent_1btis_gg_{opacity:.3}.___SNull_1btis_gg_{fill:transparent;stroke:var(--intergalactic-border-primary, #c4c7cf);stroke-dasharray:4}.___SNull_1btis_gg_.__hide_1btis_gg_{display:none}.___SAria_1btis_gg_{transition-property:d;transition-duration:var(--duration_1btis);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SAria_1btis_gg_.__color_1btis_gg_{fill:var(--color_1btis)}" /*__inner_css_end__*/, "1btis_gg_") /*__reshadow_css_end__*/, {
18
+ "__SLine": "___SLine_1btis_gg_",
19
+ "--duration": "--duration_1btis",
20
+ "_color": "__color_1btis_gg_",
21
+ "--color": "--color_1btis",
22
+ "_hide": "__hide_1btis_gg_",
23
+ "_transparent": "__transparent_1btis_gg_",
24
+ "__SNull": "___SNull_1btis_gg_",
25
+ "__SAria": "___SAria_1btis_gg_"
26
26
  });
27
27
  var LineRoot = /*#__PURE__*/function (_Component) {
28
28
  _inherits(LineRoot, _Component);
@@ -18,9 +18,9 @@ import { PlotA11yModule } from './a11y/PlotA11yModule';
18
18
  import { makeDataHintsHandlers, makeDataHintsContainer } from './a11y/hints';
19
19
  import colorResolverEnhance from 'intergalactic/utils/lib/enhances/resolveColorEnhance';
20
20
  /*__reshadow-styles__:"./style/plot.shadow.css"*/
21
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlot_140vm_gg_{overflow:hidden}.___SPlot_140vm_gg_:active,.___SPlot_140vm_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_140vm_gg_.__keyboardFocused_140vm_gg_{border:1px solid var(--intergalactic-chart-palette-order-9, #008ff8);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}" /*__inner_css_end__*/, "140vm_gg_") /*__reshadow_css_end__*/, {
22
- "__SPlot": "___SPlot_140vm_gg_",
23
- "_keyboardFocused": "__keyboardFocused_140vm_gg_"
21
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlot_6kxw1_gg_{overflow:hidden}.___SPlot_6kxw1_gg_:active,.___SPlot_6kxw1_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_6kxw1_gg_.__keyboardFocused_6kxw1_gg_{border:1px solid var(--intergalactic-chart-palette-order-9, #008ff8);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}" /*__inner_css_end__*/, "6kxw1_gg_") /*__reshadow_css_end__*/, {
22
+ "__SPlot": "___SPlot_6kxw1_gg_",
23
+ "_keyboardFocused": "__keyboardFocused_6kxw1_gg_"
24
24
  });
25
25
  var PlotRoot = /*#__PURE__*/function (_Component) {
26
26
  _inherits(PlotRoot, _Component);
@@ -21,23 +21,23 @@ import createElement from './createElement';
21
21
  import { CONSTANT, eventToPoint, getChartDefaultColorName, measureText } from './utils';
22
22
  import Tooltip from './Tooltip';
23
23
  /*__reshadow-styles__:"./style/radar.shadow.css"*/
24
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SAxisLine_10lr9_gg_,.___SAxisTick_10lr9_gg_,.___SAxis_10lr9_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_10lr9_gg_,.___SAxisTick_10lr9_gg_{stroke-dasharray:2}.___SAxisLine_10lr9_gg_.__active_10lr9_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_10lr9_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_10lr9_gg_.__xDirection_10lr9_gg_{text-anchor:var(--xDirection_10lr9)}.___SAxisLabel_10lr9_gg_.__yDirection_10lr9_gg_{dominant-baseline:var(--yDirection_10lr9)}.___SPolygonDot_10lr9_gg_,.___SPolygon_10lr9_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_10lr9_gg_{opacity:.2}.___SPolygon_10lr9_gg_.__color_10lr9_gg_{fill:var(--color_10lr9)}.___SPolygonDot_10lr9_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_10lr9_gg_.__transparent_10lr9_gg_{opacity:.3}.___SPolygonDot_10lr9_gg_.__color_10lr9_gg_{fill:var(--color_10lr9)}.___SPolygonLine_10lr9_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_10lr9_gg_.__transparent_10lr9_gg_{opacity:.3}.___SPolygonLine_10lr9_gg_.__color_10lr9_gg_{stroke:var(--color_10lr9)}.___SPieRect_10lr9_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "10lr9_gg_") /*__reshadow_css_end__*/, {
25
- "__SAxis": "___SAxis_10lr9_gg_",
26
- "__SAxisLine": "___SAxisLine_10lr9_gg_",
27
- "__SAxisTick": "___SAxisTick_10lr9_gg_",
28
- "_active": "__active_10lr9_gg_",
29
- "__SAxisLabel": "___SAxisLabel_10lr9_gg_",
30
- "_xDirection": "__xDirection_10lr9_gg_",
31
- "--xDirection": "--xDirection_10lr9",
32
- "_yDirection": "__yDirection_10lr9_gg_",
33
- "--yDirection": "--yDirection_10lr9",
34
- "__SPolygon": "___SPolygon_10lr9_gg_",
35
- "_color": "__color_10lr9_gg_",
36
- "--color": "--color_10lr9",
37
- "__SPolygonDot": "___SPolygonDot_10lr9_gg_",
38
- "_transparent": "__transparent_10lr9_gg_",
39
- "__SPolygonLine": "___SPolygonLine_10lr9_gg_",
40
- "__SPieRect": "___SPieRect_10lr9_gg_"
24
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SAxisLine_aqnpr_gg_,.___SAxisTick_aqnpr_gg_,.___SAxis_aqnpr_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_aqnpr_gg_,.___SAxisTick_aqnpr_gg_{stroke-dasharray:2}.___SAxisLine_aqnpr_gg_.__active_aqnpr_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_aqnpr_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_aqnpr_gg_.__xDirection_aqnpr_gg_{text-anchor:var(--xDirection_aqnpr)}.___SAxisLabel_aqnpr_gg_.__yDirection_aqnpr_gg_{dominant-baseline:var(--yDirection_aqnpr)}.___SPolygonDot_aqnpr_gg_,.___SPolygon_aqnpr_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_aqnpr_gg_{opacity:.2}.___SPolygon_aqnpr_gg_.__color_aqnpr_gg_{fill:var(--color_aqnpr)}.___SPolygonDot_aqnpr_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_aqnpr_gg_.__transparent_aqnpr_gg_{opacity:.3}.___SPolygonDot_aqnpr_gg_.__color_aqnpr_gg_{fill:var(--color_aqnpr)}.___SPolygonLine_aqnpr_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_aqnpr_gg_.__transparent_aqnpr_gg_{opacity:.3}.___SPolygonLine_aqnpr_gg_.__color_aqnpr_gg_{stroke:var(--color_aqnpr)}.___SPieRect_aqnpr_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "aqnpr_gg_") /*__reshadow_css_end__*/, {
25
+ "__SAxis": "___SAxis_aqnpr_gg_",
26
+ "__SAxisLine": "___SAxisLine_aqnpr_gg_",
27
+ "__SAxisTick": "___SAxisTick_aqnpr_gg_",
28
+ "_active": "__active_aqnpr_gg_",
29
+ "__SAxisLabel": "___SAxisLabel_aqnpr_gg_",
30
+ "_xDirection": "__xDirection_aqnpr_gg_",
31
+ "--xDirection": "--xDirection_aqnpr",
32
+ "_yDirection": "__yDirection_aqnpr_gg_",
33
+ "--yDirection": "--yDirection_aqnpr",
34
+ "__SPolygon": "___SPolygon_aqnpr_gg_",
35
+ "_color": "__color_aqnpr_gg_",
36
+ "--color": "--color_aqnpr",
37
+ "__SPolygonDot": "___SPolygonDot_aqnpr_gg_",
38
+ "_transparent": "__transparent_aqnpr_gg_",
39
+ "__SPolygonLine": "___SPolygonLine_aqnpr_gg_",
40
+ "__SPieRect": "___SPieRect_aqnpr_gg_"
41
41
  });
42
42
  var clampAngle = function clampAngle(angle) {
43
43
  angle = angle % (2 * Math.PI);
@@ -20,16 +20,16 @@ import canUseDOM from 'intergalactic/utils/lib/canUseDOM';
20
20
  import createElement from './createElement';
21
21
  import { measureText } from './utils';
22
22
  /*__reshadow-styles__:"./style/radial-tree.shadow.css"*/
23
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SRadian_lv3w8_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_lv3w8_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_lv3w8_gg_.__color_lv3w8_gg_{stroke:var(--color_lv3w8)}.___SCap_lv3w8_gg_.__transparent_lv3w8_gg_,.___SIcon_lv3w8_gg_.__transparent_lv3w8_gg_,.___SLabel_lv3w8_gg_.__transparent_lv3w8_gg_,.___SLine_lv3w8_gg_.__transparent_lv3w8_gg_{opacity:.3}.___SCap_lv3w8_gg_{transition:r .1s}.___SLabel_lv3w8_gg_{fill:var(--color_lv3w8)}@media (hover:hover){.___SRadian_lv3w8_gg_:hover .___SLabel_lv3w8_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_lv3w8_gg_{transition:none}}" /*__inner_css_end__*/, "lv3w8_gg_") /*__reshadow_css_end__*/, {
24
- "__SRadian": "___SRadian_lv3w8_gg_",
25
- "__SLine": "___SLine_lv3w8_gg_",
26
- "_color": "__color_lv3w8_gg_",
27
- "--color": "--color_lv3w8",
28
- "_transparent": "__transparent_lv3w8_gg_",
29
- "__SCap": "___SCap_lv3w8_gg_",
30
- "__SIcon": "___SIcon_lv3w8_gg_",
31
- "__SLabel": "___SLabel_lv3w8_gg_",
32
- "__SLineCap": "___SLineCap_lv3w8_gg_"
23
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SRadian_1vt2n_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1vt2n_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1vt2n_gg_.__color_1vt2n_gg_{stroke:var(--color_1vt2n)}.___SCap_1vt2n_gg_.__transparent_1vt2n_gg_,.___SIcon_1vt2n_gg_.__transparent_1vt2n_gg_,.___SLabel_1vt2n_gg_.__transparent_1vt2n_gg_,.___SLine_1vt2n_gg_.__transparent_1vt2n_gg_{opacity:.3}.___SCap_1vt2n_gg_{transition:r .1s}.___SLabel_1vt2n_gg_{fill:var(--color_1vt2n)}@media (hover:hover){.___SRadian_1vt2n_gg_:hover .___SLabel_1vt2n_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1vt2n_gg_{transition:none}}" /*__inner_css_end__*/, "1vt2n_gg_") /*__reshadow_css_end__*/, {
24
+ "__SRadian": "___SRadian_1vt2n_gg_",
25
+ "__SLine": "___SLine_1vt2n_gg_",
26
+ "_color": "__color_1vt2n_gg_",
27
+ "--color": "--color_1vt2n",
28
+ "_transparent": "__transparent_1vt2n_gg_",
29
+ "__SCap": "___SCap_1vt2n_gg_",
30
+ "__SIcon": "___SIcon_1vt2n_gg_",
31
+ "__SLabel": "___SLabel_1vt2n_gg_",
32
+ "__SLineCap": "___SLineCap_1vt2n_gg_"
33
33
  });
34
34
  var baseAngle = -Math.PI / 2; // The top vertical line
35
35
  var RadialTreeBase = /*#__PURE__*/function (_Component) {
@@ -11,15 +11,15 @@ import { Component, sstyled } from 'intergalactic/core';
11
11
  import createElement from './createElement';
12
12
  import { scaleOfBandwidth } from './utils';
13
13
  /*__reshadow-styles__:"./style/reference-line.shadow.css"*/
14
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_gsdqo_gg_{fill:none;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___STitle_gsdqo_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_gsdqo)}.___STitle_gsdqo_gg_._position_top_gsdqo_gg_{text-anchor:middle}.___STitle_gsdqo_gg_._position_bottom_gsdqo_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_gsdqo_gg_._position_left_gsdqo_gg_,.___STitle_gsdqo_gg_._position_right_gsdqo_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_gsdqo_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}" /*__inner_css_end__*/, "gsdqo_gg_") /*__reshadow_css_end__*/, {
15
- "__SReferenceLine": "___SReferenceLine_gsdqo_gg_",
16
- "__STitle": "___STitle_gsdqo_gg_",
17
- "--transform-origin": "--transform-origin_gsdqo",
18
- "_position_top": "_position_top_gsdqo_gg_",
19
- "_position_bottom": "_position_bottom_gsdqo_gg_",
20
- "_position_right": "_position_right_gsdqo_gg_",
21
- "_position_left": "_position_left_gsdqo_gg_",
22
- "__SBackground": "___SBackground_gsdqo_gg_"
14
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_10dov_gg_{fill:none;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___STitle_10dov_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_10dov)}.___STitle_10dov_gg_._position_top_10dov_gg_{text-anchor:middle}.___STitle_10dov_gg_._position_bottom_10dov_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_10dov_gg_._position_left_10dov_gg_,.___STitle_10dov_gg_._position_right_10dov_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_10dov_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}" /*__inner_css_end__*/, "10dov_gg_") /*__reshadow_css_end__*/, {
15
+ "__SReferenceLine": "___SReferenceLine_10dov_gg_",
16
+ "__STitle": "___STitle_10dov_gg_",
17
+ "--transform-origin": "--transform-origin_10dov",
18
+ "_position_top": "_position_top_10dov_gg_",
19
+ "_position_bottom": "_position_bottom_10dov_gg_",
20
+ "_position_right": "_position_right_10dov_gg_",
21
+ "_position_left": "_position_left_10dov_gg_",
22
+ "__SBackground": "___SBackground_10dov_gg_"
23
23
  });
24
24
  var side2direction = {
25
25
  left: 'vertical',
@@ -17,13 +17,13 @@ import createElement from './createElement';
17
17
  import { CONSTANT } from './utils';
18
18
  import Tooltip from './Tooltip';
19
19
  /*__reshadow-styles__:"./style/scatterplot.shadow.css"*/
20
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_3zl8j_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_3zl8j);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_3zl8j_gg_:hover{opacity:.8}}.___SScatterPlot_3zl8j_gg_.__color_3zl8j_gg_{fill:var(--color_3zl8j)}.___SScatterPlot_3zl8j_gg_.__transparent_3zl8j_gg_{opacity:.3}.___SValue_3zl8j_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_3zl8j_gg_.__color_3zl8j_gg_{stroke:var(--color_3zl8j)}.___SValue_3zl8j_gg_.__transparent_3zl8j_gg_{opacity:.3}" /*__inner_css_end__*/, "3zl8j_gg_") /*__reshadow_css_end__*/, {
21
- "__SScatterPlot": "___SScatterPlot_3zl8j_gg_",
22
- "_color": "__color_3zl8j_gg_",
23
- "--color": "--color_3zl8j",
24
- "_transparent": "__transparent_3zl8j_gg_",
25
- "__SValue": "___SValue_3zl8j_gg_",
26
- "--duration": "--duration_3zl8j"
20
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_1puhr_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_1puhr);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_1puhr_gg_:hover{opacity:.8}}.___SScatterPlot_1puhr_gg_.__color_1puhr_gg_{fill:var(--color_1puhr)}.___SScatterPlot_1puhr_gg_.__transparent_1puhr_gg_{opacity:.3}.___SValue_1puhr_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_1puhr_gg_.__color_1puhr_gg_{stroke:var(--color_1puhr)}.___SValue_1puhr_gg_.__transparent_1puhr_gg_{opacity:.3}" /*__inner_css_end__*/, "1puhr_gg_") /*__reshadow_css_end__*/, {
21
+ "__SScatterPlot": "___SScatterPlot_1puhr_gg_",
22
+ "_color": "__color_1puhr_gg_",
23
+ "--color": "--color_1puhr",
24
+ "_transparent": "__transparent_1puhr_gg_",
25
+ "__SValue": "___SValue_1puhr_gg_",
26
+ "--duration": "--duration_1puhr"
27
27
  });
28
28
  var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
29
29
  _inherits(ScatterPlotRoot, _Component);
@@ -21,14 +21,14 @@ import createElement from './createElement';
21
21
  import { CONSTANT, getChartDefaultColorName } from './utils';
22
22
  import { useColorResolver } from 'intergalactic/utils/lib/use/useColorResolver';
23
23
  /*__reshadow-styles__:"./style/tooltip.shadow.css"*/
24
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STooltip_5wos1_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_5wos1_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_5wos1_gg_{display:flex;align-items:center}.___SDot_5wos1_gg_{width:8px;height:8px;border-radius:50%;margin-right:var(--intergalactic-spacing-2x, 8px);background:var(--intergalactic-icon-secondary-info, #2bb3ff)}.___SDot_5wos1_gg_.__color_5wos1_gg_{background:var(--color_5wos1)}.___SFooter_5wos1_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__*/, "5wos1_gg_") /*__reshadow_css_end__*/, {
25
- "__STooltip": "___STooltip_5wos1_gg_",
26
- "__STitle": "___STitle_5wos1_gg_",
27
- "__SDotGroup": "___SDotGroup_5wos1_gg_",
28
- "__SDot": "___SDot_5wos1_gg_",
29
- "_color": "__color_5wos1_gg_",
30
- "--color": "--color_5wos1",
31
- "__SFooter": "___SFooter_5wos1_gg_"
24
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STooltip_166r1_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_166r1_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_166r1_gg_{display:flex;align-items:center}.___SDot_166r1_gg_{width:8px;height:8px;border-radius:50%;margin-right:var(--intergalactic-spacing-2x, 8px);background:var(--intergalactic-icon-secondary-info, #2bb3ff)}.___SDot_166r1_gg_.__color_166r1_gg_{background:var(--color_166r1)}.___SFooter_166r1_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__*/, "166r1_gg_") /*__reshadow_css_end__*/, {
25
+ "__STooltip": "___STooltip_166r1_gg_",
26
+ "__STitle": "___STitle_166r1_gg_",
27
+ "__SDotGroup": "___SDotGroup_166r1_gg_",
28
+ "__SDot": "___SDot_166r1_gg_",
29
+ "_color": "__color_166r1_gg_",
30
+ "--color": "--color_166r1",
31
+ "__SFooter": "___SFooter_166r1_gg_"
32
32
  });
33
33
  /**
34
34
  * `TooltipDotRenderContext` is a hack to bypass problem that getDotProps doesn't work for D3 tooltip.
@@ -18,13 +18,13 @@ import createElement from './createElement';
18
18
  import { CONSTANT, getChartDefaultColorName } from './utils';
19
19
  import Tooltip from './Tooltip';
20
20
  /*__reshadow-styles__:"./style/venn.shadow.css"*/
21
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCircle_5kr37_gg_,.___SIntersection_5kr37_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_5kr37_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_5kr37);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_5kr37_gg_:hover{fill-opacity:.7}}.___SCircle_5kr37_gg_.__color_5kr37_gg_{fill:var(--color_5kr37)}.___SCircle_5kr37_gg_.__transparent_5kr37_gg_{opacity:.3}.___SIntersection_5kr37_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_5kr37_gg_:hover{fill-opacity:.1}}.___SIntersection_5kr37_gg_.__transparent_5kr37_gg_{opacity:.3}" /*__inner_css_end__*/, "5kr37_gg_") /*__reshadow_css_end__*/, {
22
- "__SCircle": "___SCircle_5kr37_gg_",
23
- "_color": "__color_5kr37_gg_",
24
- "--color": "--color_5kr37",
25
- "_transparent": "__transparent_5kr37_gg_",
26
- "__SIntersection": "___SIntersection_5kr37_gg_",
27
- "--duration": "--duration_5kr37"
21
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCircle_1qngq_gg_,.___SIntersection_1qngq_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_1qngq_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1qngq);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_1qngq_gg_:hover{fill-opacity:.7}}.___SCircle_1qngq_gg_.__color_1qngq_gg_{fill:var(--color_1qngq)}.___SCircle_1qngq_gg_.__transparent_1qngq_gg_{opacity:.3}.___SIntersection_1qngq_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_1qngq_gg_:hover{fill-opacity:.1}}.___SIntersection_1qngq_gg_.__transparent_1qngq_gg_{opacity:.3}" /*__inner_css_end__*/, "1qngq_gg_") /*__reshadow_css_end__*/, {
22
+ "__SCircle": "___SCircle_1qngq_gg_",
23
+ "_color": "__color_1qngq_gg_",
24
+ "--color": "--color_1qngq",
25
+ "_transparent": "__transparent_1qngq_gg_",
26
+ "__SIntersection": "___SIntersection_1qngq_gg_",
27
+ "--duration": "--duration_1qngq"
28
28
  });
29
29
  var VennRoot = /*#__PURE__*/function (_Component) {
30
30
  _inherits(VennRoot, _Component);
@@ -10,8 +10,8 @@ import { normalizeLocale } from './locale';
10
10
  import { localizedMessages } from './translations/module/__intergalactic-dynamic-locales';
11
11
  import { Root, sstyled } from 'intergalactic/core';
12
12
  /*__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
13
- var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_7jqbd_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_7jqbd_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "7jqbd_gg_") /*__reshadow_css_end__*/, {
14
- "__SPlotA11yModule": "___SPlotA11yModule_7jqbd_gg_"
13
+ var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_1n4a9_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1n4a9_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "1n4a9_gg_") /*__reshadow_css_end__*/, {
14
+ "__SPlotA11yModule": "___SPlotA11yModule_1n4a9_gg_"
15
15
  });
16
16
  import { Context as I18nContext, useI18n } from 'intergalactic/utils/lib/enhances/WithI18n';
17
17
  import { Box } from 'intergalactic/flex-box';
@@ -13,8 +13,8 @@ import { getIntl } from './intl';
13
13
  import { summarize } from './summarize';
14
14
  import { Root, sstyled } from 'intergalactic/core';
15
15
  /*__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
16
- var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_2lh20_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_2lh20_gg_:focus,.___SPlotA11yView_2lh20_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_2lh20_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_2lh20_gg_ table,.___SPlotA11yView_2lh20_gg_ td,.___SPlotA11yView_2lh20_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "2lh20_gg_") /*__reshadow_css_end__*/, {
17
- "__SPlotA11yView": "___SPlotA11yView_2lh20_gg_"
16
+ var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_dr6xc_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_dr6xc_gg_:focus,.___SPlotA11yView_dr6xc_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_dr6xc_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_dr6xc_gg_ table,.___SPlotA11yView_dr6xc_gg_ td,.___SPlotA11yView_dr6xc_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "dr6xc_gg_") /*__reshadow_css_end__*/, {
17
+ "__SPlotA11yView": "___SPlotA11yView_dr6xc_gg_"
18
18
  });
19
19
  import { Box } from 'intergalactic/flex-box';
20
20
  import { useAsyncI18nMessages } from 'intergalactic/utils/lib/enhances/i18nEnhance';
@@ -396,7 +396,7 @@ export var AbstractChart = /*#__PURE__*/function (_Component) {
396
396
  "width": plotWidth,
397
397
  "height": plotHeight,
398
398
  "dataHints": this.dataHints
399
- }), this.renderAxis(), this.renderChart(), this.renderTooltip()));
399
+ }), this.renderAxis(), this.renderTooltip(), this.renderChart()));
400
400
  }
401
401
  }]);
402
402
  return AbstractChart;
@@ -1 +1 @@
1
- {"version":3,"file":"AbstractChart.js","names":["makeDataHintsContainer","interpolateValue","React","Component","Root","sstyled","callAllEventHandlers","ChartLegend","ChartLegendTable","Flex","Plot","XAxis","YAxis","Text","AbstractChart","_Component","_inherits","_super","_createSuper","props","_this","_classCallCheck","call","_defineProperty","_assertThisInitialized","dataDefinitions","defaultDataDefinitions","highlightedLine","withTrend","setHighlightedLine","bind","handleChangeVisible","handleMouseEnter","handleMouseLeave","resolveColor","tooltipValueFormatter","handleWithTrendChange","_createClass","key","value","componentDidUpdate","prevProps","data","legendProps","setState","get","_this2","_this$props","dataKeys","map","index","_legendProps$legendMa","_legendData$label","_legendData$icon","_legendData$defaultCh","legendData","legendMap","dataDefinition","id","label","icon","undefined","checked","defaultChecked","color","columns","additionalInfo","count","Array","isArray","_ref3","Map","Number","total","Object","values","reduce","sum","i","percent","toFixed","createElement","concat","use","_this$props2","groupKey","keys","filter","_this$asProps","asProps","invertAxis","xTicksCount","yTicksCount","scale","xScale","ticks","_this$asProps2","yScale","_this$asProps3","flatValues","result","item","add","entries","forEach","_ref4","_ref5","_slicedToArray","Set","_this$asProps4","max","val","barSum","_ref6","_ref7","Date","isNaN","getMilliseconds","totalValue","state","legendItem","isVisible","prevState","findIndex","line","_this$props$colorMap$","_this$props$colorMap","colorMap","toDateString","toString","defaultLegendProps","legendType","renderLegend","_lProps$direction","_this$asProps5","direction","showLegend","length","_this$state","lProps","_objectSpread","commonLegendProps","dataHints","items","size","shape","onChangeVisibleItem","disableSelectItems","onMouseEnterItem","disableHoverItems","onMouseLeaveItem","flexLegendProps","trendLabel","trendIsVisible","onTrendIsVisibleChange","renderAxis","_this$asProps6","showXAxis","showYAxis","axisXValueFormatter","axisYValueFormatter","xTicks","yTicks","childrenX","_ref8","children","childrenY","_ref9","Fragment","Ticks","Grid","render","_ref","_ref2","SChart","_this$asProps7","styles","plotWidth","plotHeight","cn","_assignProps","renderChart","renderTooltip","showTooltip"],"sources":["../../../../src/component/Chart/AbstractChart.tsx"],"sourcesContent":["import { makeDataHintsContainer } from '../../a11y/hints';\nimport { LegendItem } from '../ChartLegend/LegendItem/LegendItem.type';\nimport { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';\nimport { interpolateValue } from '../../utils';\nimport React from 'react';\nimport { Component, Root, sstyled } from '@semcore/core';\nimport { BaseChartProps, BaseLegendProps, ListData, ObjectData } from './AbstractChart.type';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport ChartLegend, { ChartLegendTable } from '../ChartLegend';\nimport { Flex } from '@semcore/flex-box';\n// @ts-ignore\nimport { Plot, XAxis, YAxis } from '../..';\nimport { Text } from '@semcore/typography';\nimport { LegendFlexProps } from '../ChartLegend/LegendFlex/LegendFlex.type';\n\ntype ChartState = {\n dataDefinitions: Array<LegendItem & { columns: React.ReactNode[] }>;\n highlightedLine: number;\n withTrend: boolean;\n};\n\nexport abstract class AbstractChart<\n D extends ListData | ObjectData,\n T extends BaseChartProps<D>,\n> extends Component<T, {}, ChartState> {\n public static style = {};\n public static defaultProps: Partial<BaseChartProps<any>> = {\n direction: 'column',\n showXAxis: true,\n showYAxis: true,\n showTooltip: true,\n showLegend: true,\n };\n\n /**\n * Padding from the end's of chart to the container (except axis sides)\n */\n protected plotPadding = 6;\n\n protected dataHints = makeDataHintsContainer();\n\n public state: ChartState = {\n dataDefinitions: this.defaultDataDefinitions,\n highlightedLine: -1,\n withTrend: false,\n };\n\n constructor(props: T) {\n super(props);\n\n this.setHighlightedLine = this.setHighlightedLine.bind(this);\n this.handleChangeVisible = this.handleChangeVisible.bind(this);\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n this.resolveColor = this.resolveColor.bind(this);\n this.tooltipValueFormatter = this.tooltipValueFormatter.bind(this);\n this.handleWithTrendChange = this.handleWithTrendChange.bind(this);\n }\n\n public componentDidUpdate(prevProps: T) {\n if (prevProps.data !== this.props.data || prevProps.legendProps !== this.props.legendProps) {\n this.setState({ dataDefinitions: this.defaultDataDefinitions });\n }\n }\n\n protected get defaultDataDefinitions(): Array<LegendItem & { columns: React.ReactNode[] }> {\n const { data, legendProps } = this.props;\n\n return this.dataKeys.map((key, index) => {\n const legendData = legendProps?.legendMap?.[key];\n\n const dataDefinition: LegendItem & { columns: React.ReactNode[] } = {\n id: key,\n label: legendData?.label ?? key,\n icon: legendData?.icon ?? undefined,\n checked: legendData?.defaultChecked ?? true,\n color: this.resolveColor(key, index),\n columns: [],\n };\n\n if (legendData?.additionalInfo || legendData?.count) {\n dataDefinition.additionalInfo = legendData.additionalInfo\n ? { label: legendData.additionalInfo }\n : legendData.count\n ? { count: legendData.count }\n : undefined;\n }\n\n if (legendData && 'columns' in legendData) {\n dataDefinition.columns = legendData.columns || [];\n } else if (!Array.isArray(data)) {\n const value = (data instanceof Map ? data.get(key) : Number(data[key])) ?? 0;\n const total = Object.values(data).reduce<number>((sum, i) => sum + Number(i), 0);\n const percent = ((value / total) * 100).toFixed(2);\n\n dataDefinition.columns = [\n <Text key={`${key}_percent`} use={'secondary'}>\n {percent}%\n </Text>,\n <Text key={`${key}_value`} use={'primary'}>\n {value}\n </Text>,\n ];\n }\n\n return dataDefinition;\n });\n }\n\n protected abstract get xScale(): ScaleBand<any> | ScaleLinear<any, any> | ScaleTime<any, any>;\n protected abstract get yScale(): ScaleBand<any> | ScaleLinear<any, any> | ScaleTime<any, any>;\n\n protected abstract renderChart(): React.ReactNode;\n protected abstract renderTooltip(): React.ReactNode;\n\n protected get dataKeys(): string[] {\n const { data, groupKey } = this.props;\n\n let dataKeys: string[];\n\n if (Array.isArray(data) && groupKey) {\n dataKeys = Object.keys(data[0]).filter((key) => key !== groupKey);\n } else {\n dataKeys = Object.keys(data);\n }\n\n return dataKeys;\n }\n\n protected get xTicks(): number[] | Date[] | undefined {\n const { data, invertAxis, xTicksCount, yTicksCount } = this.asProps;\n\n const scale = this.xScale;\n\n if (Array.isArray(data) && 'ticks' in scale) {\n if (invertAxis && yTicksCount) {\n return scale.ticks(yTicksCount);\n } else if (xTicksCount) {\n return scale.ticks(xTicksCount);\n }\n\n return undefined;\n }\n\n return undefined;\n }\n\n protected get yTicks(): number[] | Date[] | undefined {\n const { data, invertAxis, xTicksCount, yTicksCount } = this.asProps;\n\n const scale = this.yScale;\n\n if (Array.isArray(data) && 'ticks' in scale) {\n if (invertAxis && xTicksCount) {\n return scale.ticks(xTicksCount);\n } else if (yTicksCount) {\n return scale.ticks(yTicksCount);\n }\n\n return undefined;\n }\n\n return undefined;\n }\n\n protected get flatValues(): Set<number> {\n const { data, groupKey } = this.asProps;\n const values: any[] = Array.isArray(data) ? data : Object.values(data);\n\n const flatValues = values.reduce<Set<number>>((result, item) => {\n if (!groupKey && typeof item === 'number') {\n result.add(item);\n } else {\n Object.entries(item).forEach(([key, value]) => {\n if (key !== groupKey && typeof value === 'number') {\n result.add(value);\n }\n });\n }\n\n return result;\n }, new Set());\n\n return flatValues;\n }\n\n protected get maxStackedValue(): number {\n const { data, groupKey } = this.asProps;\n\n if (!Array.isArray(data)) {\n const max = Object.values(data).reduce<number>((sum, val) => {\n if (typeof val === 'number') {\n sum = sum + val;\n }\n\n return sum;\n }, 0);\n\n return max;\n }\n\n const max = data.reduce((max, item) => {\n const barSum = Object.entries(item).reduce<number>((sum, [key, val]) => {\n if (key === groupKey) {\n return sum;\n }\n\n if (typeof val === 'number') {\n return sum + val;\n }\n\n if (val instanceof Date && !Number.isNaN(val.getMilliseconds())) {\n return sum + val.getMilliseconds();\n }\n\n return sum;\n }, 0);\n\n if (barSum > max) {\n max = barSum;\n }\n\n return max;\n }, 0);\n\n return max;\n }\n\n protected totalValue(data: ObjectData): number {\n const { dataDefinitions } = this.state;\n\n const total = dataDefinitions.reduce((sum, legendItem) => {\n const item = data[legendItem.id];\n\n if (typeof item === 'number') {\n return sum + item;\n }\n\n if (item instanceof Date && !Number.isNaN(item.getMilliseconds())) {\n return sum + item.getMilliseconds();\n }\n\n return sum;\n }, 0);\n\n return total;\n }\n\n protected setHighlightedLine(index: number) {\n this.setState({ highlightedLine: index });\n }\n\n protected handleChangeVisible(id: string, isVisible: boolean) {\n this.setState((prevState) => {\n const dataDefinitions = prevState.dataDefinitions.map((item) => {\n if (item.id === id) {\n item.checked = isVisible;\n }\n\n return item;\n });\n\n return { dataDefinitions };\n });\n }\n\n protected handleWithTrendChange(isVisible: boolean) {\n this.setState({ withTrend: isVisible });\n }\n\n protected handleMouseEnter(id: string) {\n this.setHighlightedLine(this.state.dataDefinitions.findIndex((line) => line.id === id));\n }\n\n protected handleMouseLeave() {\n this.setHighlightedLine(-1);\n }\n\n protected resolveColor(id: string, index: number) {\n return this.props.colorMap?.[id] ?? `chart-palette-order-${index + 1}`;\n }\n\n protected tooltipValueFormatter(\n value?: string | number | typeof interpolateValue | Date,\n ): string {\n const { tooltipValueFormatter } = this.asProps;\n\n if (tooltipValueFormatter) {\n return tooltipValueFormatter(value);\n }\n\n if (value === undefined || value === interpolateValue) {\n return 'n/a';\n }\n\n if (value instanceof Date) {\n return value.toDateString();\n }\n\n return value.toString();\n }\n\n protected defaultLegendProps(): Partial<BaseLegendProps> {\n return {\n legendType: 'Flex',\n };\n }\n\n protected renderLegend() {\n const { legendProps, direction, showLegend } = this.asProps;\n\n if (\n !showLegend ||\n // we hide Legend for one item on chart except not manually set to show.\n (this.dataKeys.length === 1 && showLegend === true)\n ) {\n return null;\n }\n\n const { dataDefinitions, withTrend } = this.state;\n const lProps = {\n ...this.defaultLegendProps(),\n ...legendProps,\n };\n\n const commonLegendProps = {\n dataHints: this.dataHints,\n items: dataDefinitions,\n size: lProps.size,\n shape: lProps.shape,\n direction:\n lProps.direction ?? (direction === 'row' || direction === 'row-reverse' ? 'column' : 'row'),\n onChangeVisibleItem: lProps.disableSelectItems\n ? undefined\n : callAllEventHandlers(lProps.onChangeVisibleItem, this.handleChangeVisible),\n onMouseEnterItem: lProps.disableHoverItems\n ? undefined\n : callAllEventHandlers(lProps.onMouseEnterItem, this.handleMouseEnter),\n onMouseLeaveItem: lProps.disableHoverItems\n ? undefined\n : callAllEventHandlers(lProps.onMouseLeaveItem, this.handleMouseLeave),\n };\n\n if (lProps.legendType === 'Table') {\n return <ChartLegendTable {...commonLegendProps} />;\n }\n\n if ('withTrend' in lProps) {\n const flexLegendProps: LegendFlexProps = {\n ...commonLegendProps,\n withTrend: true,\n trendLabel: lProps.trendLabel,\n trendIsVisible: withTrend,\n onTrendIsVisibleChange: this.handleWithTrendChange,\n };\n\n return <ChartLegend {...flexLegendProps} />;\n }\n\n return <ChartLegend {...commonLegendProps} />;\n }\n\n protected renderAxis(): React.ReactNode {\n const { invertAxis, showXAxis, showYAxis, data, axisXValueFormatter, axisYValueFormatter } =\n this.asProps;\n\n if (!Array.isArray(data)) {\n return null;\n }\n\n const xTicks = this.xTicks;\n const yTicks = this.yTicks;\n\n const childrenX = axisXValueFormatter\n ? ({ value }: any) => ({ children: axisXValueFormatter(value) })\n : undefined;\n const childrenY = axisYValueFormatter\n ? ({ value }: any) => ({ children: axisYValueFormatter(value) })\n : undefined;\n\n return (\n <>\n {showYAxis && (\n <YAxis>\n {yTicks ? (\n <YAxis.Ticks ticks={yTicks}>{childrenY}</YAxis.Ticks>\n ) : (\n <YAxis.Ticks>{childrenY}</YAxis.Ticks>\n )}\n {invertAxis !== true && (yTicks ? <YAxis.Grid ticks={yTicks} /> : <YAxis.Grid />)}\n </YAxis>\n )}\n\n {showXAxis && (\n <XAxis>\n {xTicks ? (\n <XAxis.Ticks ticks={xTicks}>{childrenX}</XAxis.Ticks>\n ) : (\n <XAxis.Ticks>{childrenX}</XAxis.Ticks>\n )}\n {invertAxis === true && (xTicks ? <XAxis.Grid ticks={xTicks} /> : <XAxis.Grid />)}\n </XAxis>\n )}\n </>\n );\n }\n\n public render() {\n const SChart = Root;\n const { styles, plotWidth, plotHeight, data } = this.asProps;\n\n return sstyled(styles)(\n <SChart render={Flex} gap={5}>\n {this.renderLegend()}\n <Plot\n data={data}\n scale={[this.xScale, this.yScale]}\n width={plotWidth}\n height={plotHeight}\n dataHints={this.dataHints}\n >\n {this.renderAxis()}\n {this.renderChart()}\n {this.renderTooltip()}\n </Plot>\n </SChart>,\n );\n }\n}\n"],"mappings":";;;;;;;;;AAAA,SAASA,sBAAsB,QAAQ,kBAAkB;AAGzD,SAASC,gBAAgB,QAAQ,aAAa;AAC9C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AAExD,SAASC,oBAAoB,QAAQ,gCAAgC;AACrE,OAAOC,WAAW,IAAIC,gBAAgB,QAAQ,gB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AAAC,KAAA,EAED,SAAAoI,OAAA,EAAgB;MAAA,IAAAC,IAAA,QAAAnF,OAAA;QAAAoF,KAAA;MACd,IAAMC,MAAM,GAIMrK,IAAI;MAHtB,IAAAsK,cAAA,GAAgD,IAAI,CAACtF,OAAO;QAApDuF,MAAM,GAAAD,cAAA,CAANC,MAAM;QAAEC,SAAS,GAAAF,cAAA,CAATE,SAAS;QAAEC,UAAU,GAAAH,cAAA,CAAVG,UAAU;QAAExI,IAAI,GAAAqI,cAAA,CAAJrI,IAAI;MAE3C,OAAAmI,KAAA,GAAOxK,OAAO,CAAC2K,MAAM,CAAC,eACpB9K,KAAA,CAAA+E,aAAA,CAAC6F,MAAM,EAAAD,KAAA,CAAAM,EAAA,WAAAvC,aAAA,KAAAwC,YAAA;QAAA,OAAoB;MAAC,GAAAR,IAAA,KACzB,IAAI,CAACxC,YAAY,EAAE,eACpBlI,KAAA,CAAA+E,aAAA,CAACvE,IAAI,EAAAmK,KAAA,CAAAM,EAAA;QAAA,QACGzI,IAAI;QAAA,SACH,CAAC,IAAI,CAACoD,MAAM,EAAE,IAAI,CAACG,MAAM,CAAC;QAAA,SAC1BgF,SAAS;QAAA,UACRC,UAAU;QAAA,aACP,IAAI,CAACpC;MAAS,IAExB,IAAI,CAACa,UAAU,EAAE,EACjB,IAAI,CAAC0B,WAAW,EAAE,EAClB,IAAI,CAACC,aAAa,EAAE,CAChB,CACA;IAEb;EAAC;EAAA,OAAAxK,aAAA;AAAA,EAnZOX,SAAS;AAoZlBoB,eAAA,CAvZqBT,aAAa,WAIX,CAAC,CAAC;AAAAS,eAAA,CAJJT,aAAa,kBAK0B;EACzDyH,SAAS,EAAE,QAAQ;EACnBsB,SAAS,EAAE,IAAI;EACfC,SAAS,EAAE,IAAI;EACfyB,WAAW,EAAE,IAAI;EACjB/C,UAAU,EAAE;AACd,CAAC"}
1
+ {"version":3,"file":"AbstractChart.js","names":["makeDataHintsContainer","interpolateValue","React","Component","Root","sstyled","callAllEventHandlers","ChartLegend","ChartLegendTable","Flex","Plot","XAxis","YAxis","Text","AbstractChart","_Component","_inherits","_super","_createSuper","props","_this","_classCallCheck","call","_defineProperty","_assertThisInitialized","dataDefinitions","defaultDataDefinitions","highlightedLine","withTrend","setHighlightedLine","bind","handleChangeVisible","handleMouseEnter","handleMouseLeave","resolveColor","tooltipValueFormatter","handleWithTrendChange","_createClass","key","value","componentDidUpdate","prevProps","data","legendProps","setState","get","_this2","_this$props","dataKeys","map","index","_legendProps$legendMa","_legendData$label","_legendData$icon","_legendData$defaultCh","legendData","legendMap","dataDefinition","id","label","icon","undefined","checked","defaultChecked","color","columns","additionalInfo","count","Array","isArray","_ref3","Map","Number","total","Object","values","reduce","sum","i","percent","toFixed","createElement","concat","use","_this$props2","groupKey","keys","filter","_this$asProps","asProps","invertAxis","xTicksCount","yTicksCount","scale","xScale","ticks","_this$asProps2","yScale","_this$asProps3","flatValues","result","item","add","entries","forEach","_ref4","_ref5","_slicedToArray","Set","_this$asProps4","max","val","barSum","_ref6","_ref7","Date","isNaN","getMilliseconds","totalValue","state","legendItem","isVisible","prevState","findIndex","line","_this$props$colorMap$","_this$props$colorMap","colorMap","toDateString","toString","defaultLegendProps","legendType","renderLegend","_lProps$direction","_this$asProps5","direction","showLegend","length","_this$state","lProps","_objectSpread","commonLegendProps","dataHints","items","size","shape","onChangeVisibleItem","disableSelectItems","onMouseEnterItem","disableHoverItems","onMouseLeaveItem","flexLegendProps","trendLabel","trendIsVisible","onTrendIsVisibleChange","renderAxis","_this$asProps6","showXAxis","showYAxis","axisXValueFormatter","axisYValueFormatter","xTicks","yTicks","childrenX","_ref8","children","childrenY","_ref9","Fragment","Ticks","Grid","render","_ref","_ref2","SChart","_this$asProps7","styles","plotWidth","plotHeight","cn","_assignProps","renderTooltip","renderChart","showTooltip"],"sources":["../../../../src/component/Chart/AbstractChart.tsx"],"sourcesContent":["import { makeDataHintsContainer } from '../../a11y/hints';\nimport { LegendItem } from '../ChartLegend/LegendItem/LegendItem.type';\nimport { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';\nimport { interpolateValue } from '../../utils';\nimport React from 'react';\nimport { Component, Root, sstyled } from '@semcore/core';\nimport { BaseChartProps, BaseLegendProps, ListData, ObjectData } from './AbstractChart.type';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\nimport ChartLegend, { ChartLegendTable } from '../ChartLegend';\nimport { Flex } from '@semcore/flex-box';\n// @ts-ignore\nimport { Plot, XAxis, YAxis } from '../..';\nimport { Text } from '@semcore/typography';\nimport { LegendFlexProps } from '../ChartLegend/LegendFlex/LegendFlex.type';\n\ntype ChartState = {\n dataDefinitions: Array<LegendItem & { columns: React.ReactNode[] }>;\n highlightedLine: number;\n withTrend: boolean;\n};\n\nexport abstract class AbstractChart<\n D extends ListData | ObjectData,\n T extends BaseChartProps<D>,\n> extends Component<T, {}, ChartState> {\n public static style = {};\n public static defaultProps: Partial<BaseChartProps<any>> = {\n direction: 'column',\n showXAxis: true,\n showYAxis: true,\n showTooltip: true,\n showLegend: true,\n };\n\n /**\n * Padding from the end's of chart to the container (except axis sides)\n */\n protected plotPadding = 6;\n\n protected dataHints = makeDataHintsContainer();\n\n public state: ChartState = {\n dataDefinitions: this.defaultDataDefinitions,\n highlightedLine: -1,\n withTrend: false,\n };\n\n constructor(props: T) {\n super(props);\n\n this.setHighlightedLine = this.setHighlightedLine.bind(this);\n this.handleChangeVisible = this.handleChangeVisible.bind(this);\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n this.resolveColor = this.resolveColor.bind(this);\n this.tooltipValueFormatter = this.tooltipValueFormatter.bind(this);\n this.handleWithTrendChange = this.handleWithTrendChange.bind(this);\n }\n\n public componentDidUpdate(prevProps: T) {\n if (prevProps.data !== this.props.data || prevProps.legendProps !== this.props.legendProps) {\n this.setState({ dataDefinitions: this.defaultDataDefinitions });\n }\n }\n\n protected get defaultDataDefinitions(): Array<LegendItem & { columns: React.ReactNode[] }> {\n const { data, legendProps } = this.props;\n\n return this.dataKeys.map((key, index) => {\n const legendData = legendProps?.legendMap?.[key];\n\n const dataDefinition: LegendItem & { columns: React.ReactNode[] } = {\n id: key,\n label: legendData?.label ?? key,\n icon: legendData?.icon ?? undefined,\n checked: legendData?.defaultChecked ?? true,\n color: this.resolveColor(key, index),\n columns: [],\n };\n\n if (legendData?.additionalInfo || legendData?.count) {\n dataDefinition.additionalInfo = legendData.additionalInfo\n ? { label: legendData.additionalInfo }\n : legendData.count\n ? { count: legendData.count }\n : undefined;\n }\n\n if (legendData && 'columns' in legendData) {\n dataDefinition.columns = legendData.columns || [];\n } else if (!Array.isArray(data)) {\n const value = (data instanceof Map ? data.get(key) : Number(data[key])) ?? 0;\n const total = Object.values(data).reduce<number>((sum, i) => sum + Number(i), 0);\n const percent = ((value / total) * 100).toFixed(2);\n\n dataDefinition.columns = [\n <Text key={`${key}_percent`} use={'secondary'}>\n {percent}%\n </Text>,\n <Text key={`${key}_value`} use={'primary'}>\n {value}\n </Text>,\n ];\n }\n\n return dataDefinition;\n });\n }\n\n protected abstract get xScale(): ScaleBand<any> | ScaleLinear<any, any> | ScaleTime<any, any>;\n protected abstract get yScale(): ScaleBand<any> | ScaleLinear<any, any> | ScaleTime<any, any>;\n\n protected abstract renderChart(): React.ReactNode;\n protected abstract renderTooltip(): React.ReactNode;\n\n protected get dataKeys(): string[] {\n const { data, groupKey } = this.props;\n\n let dataKeys: string[];\n\n if (Array.isArray(data) && groupKey) {\n dataKeys = Object.keys(data[0]).filter((key) => key !== groupKey);\n } else {\n dataKeys = Object.keys(data);\n }\n\n return dataKeys;\n }\n\n protected get xTicks(): number[] | Date[] | undefined {\n const { data, invertAxis, xTicksCount, yTicksCount } = this.asProps;\n\n const scale = this.xScale;\n\n if (Array.isArray(data) && 'ticks' in scale) {\n if (invertAxis && yTicksCount) {\n return scale.ticks(yTicksCount);\n } else if (xTicksCount) {\n return scale.ticks(xTicksCount);\n }\n\n return undefined;\n }\n\n return undefined;\n }\n\n protected get yTicks(): number[] | Date[] | undefined {\n const { data, invertAxis, xTicksCount, yTicksCount } = this.asProps;\n\n const scale = this.yScale;\n\n if (Array.isArray(data) && 'ticks' in scale) {\n if (invertAxis && xTicksCount) {\n return scale.ticks(xTicksCount);\n } else if (yTicksCount) {\n return scale.ticks(yTicksCount);\n }\n\n return undefined;\n }\n\n return undefined;\n }\n\n protected get flatValues(): Set<number> {\n const { data, groupKey } = this.asProps;\n const values: any[] = Array.isArray(data) ? data : Object.values(data);\n\n const flatValues = values.reduce<Set<number>>((result, item) => {\n if (!groupKey && typeof item === 'number') {\n result.add(item);\n } else {\n Object.entries(item).forEach(([key, value]) => {\n if (key !== groupKey && typeof value === 'number') {\n result.add(value);\n }\n });\n }\n\n return result;\n }, new Set());\n\n return flatValues;\n }\n\n protected get maxStackedValue(): number {\n const { data, groupKey } = this.asProps;\n\n if (!Array.isArray(data)) {\n const max = Object.values(data).reduce<number>((sum, val) => {\n if (typeof val === 'number') {\n sum = sum + val;\n }\n\n return sum;\n }, 0);\n\n return max;\n }\n\n const max = data.reduce((max, item) => {\n const barSum = Object.entries(item).reduce<number>((sum, [key, val]) => {\n if (key === groupKey) {\n return sum;\n }\n\n if (typeof val === 'number') {\n return sum + val;\n }\n\n if (val instanceof Date && !Number.isNaN(val.getMilliseconds())) {\n return sum + val.getMilliseconds();\n }\n\n return sum;\n }, 0);\n\n if (barSum > max) {\n max = barSum;\n }\n\n return max;\n }, 0);\n\n return max;\n }\n\n protected totalValue(data: ObjectData): number {\n const { dataDefinitions } = this.state;\n\n const total = dataDefinitions.reduce((sum, legendItem) => {\n const item = data[legendItem.id];\n\n if (typeof item === 'number') {\n return sum + item;\n }\n\n if (item instanceof Date && !Number.isNaN(item.getMilliseconds())) {\n return sum + item.getMilliseconds();\n }\n\n return sum;\n }, 0);\n\n return total;\n }\n\n protected setHighlightedLine(index: number) {\n this.setState({ highlightedLine: index });\n }\n\n protected handleChangeVisible(id: string, isVisible: boolean) {\n this.setState((prevState) => {\n const dataDefinitions = prevState.dataDefinitions.map((item) => {\n if (item.id === id) {\n item.checked = isVisible;\n }\n\n return item;\n });\n\n return { dataDefinitions };\n });\n }\n\n protected handleWithTrendChange(isVisible: boolean) {\n this.setState({ withTrend: isVisible });\n }\n\n protected handleMouseEnter(id: string) {\n this.setHighlightedLine(this.state.dataDefinitions.findIndex((line) => line.id === id));\n }\n\n protected handleMouseLeave() {\n this.setHighlightedLine(-1);\n }\n\n protected resolveColor(id: string, index: number) {\n return this.props.colorMap?.[id] ?? `chart-palette-order-${index + 1}`;\n }\n\n protected tooltipValueFormatter(\n value?: string | number | typeof interpolateValue | Date,\n ): string {\n const { tooltipValueFormatter } = this.asProps;\n\n if (tooltipValueFormatter) {\n return tooltipValueFormatter(value);\n }\n\n if (value === undefined || value === interpolateValue) {\n return 'n/a';\n }\n\n if (value instanceof Date) {\n return value.toDateString();\n }\n\n return value.toString();\n }\n\n protected defaultLegendProps(): Partial<BaseLegendProps> {\n return {\n legendType: 'Flex',\n };\n }\n\n protected renderLegend() {\n const { legendProps, direction, showLegend } = this.asProps;\n\n if (\n !showLegend ||\n // we hide Legend for one item on chart except not manually set to show.\n (this.dataKeys.length === 1 && showLegend === true)\n ) {\n return null;\n }\n\n const { dataDefinitions, withTrend } = this.state;\n const lProps = {\n ...this.defaultLegendProps(),\n ...legendProps,\n };\n\n const commonLegendProps = {\n dataHints: this.dataHints,\n items: dataDefinitions,\n size: lProps.size,\n shape: lProps.shape,\n direction:\n lProps.direction ?? (direction === 'row' || direction === 'row-reverse' ? 'column' : 'row'),\n onChangeVisibleItem: lProps.disableSelectItems\n ? undefined\n : callAllEventHandlers(lProps.onChangeVisibleItem, this.handleChangeVisible),\n onMouseEnterItem: lProps.disableHoverItems\n ? undefined\n : callAllEventHandlers(lProps.onMouseEnterItem, this.handleMouseEnter),\n onMouseLeaveItem: lProps.disableHoverItems\n ? undefined\n : callAllEventHandlers(lProps.onMouseLeaveItem, this.handleMouseLeave),\n };\n\n if (lProps.legendType === 'Table') {\n return <ChartLegendTable {...commonLegendProps} />;\n }\n\n if ('withTrend' in lProps) {\n const flexLegendProps: LegendFlexProps = {\n ...commonLegendProps,\n withTrend: true,\n trendLabel: lProps.trendLabel,\n trendIsVisible: withTrend,\n onTrendIsVisibleChange: this.handleWithTrendChange,\n };\n\n return <ChartLegend {...flexLegendProps} />;\n }\n\n return <ChartLegend {...commonLegendProps} />;\n }\n\n protected renderAxis(): React.ReactNode {\n const { invertAxis, showXAxis, showYAxis, data, axisXValueFormatter, axisYValueFormatter } =\n this.asProps;\n\n if (!Array.isArray(data)) {\n return null;\n }\n\n const xTicks = this.xTicks;\n const yTicks = this.yTicks;\n\n const childrenX = axisXValueFormatter\n ? ({ value }: any) => ({ children: axisXValueFormatter(value) })\n : undefined;\n const childrenY = axisYValueFormatter\n ? ({ value }: any) => ({ children: axisYValueFormatter(value) })\n : undefined;\n\n return (\n <>\n {showYAxis && (\n <YAxis>\n {yTicks ? (\n <YAxis.Ticks ticks={yTicks}>{childrenY}</YAxis.Ticks>\n ) : (\n <YAxis.Ticks>{childrenY}</YAxis.Ticks>\n )}\n {invertAxis !== true && (yTicks ? <YAxis.Grid ticks={yTicks} /> : <YAxis.Grid />)}\n </YAxis>\n )}\n\n {showXAxis && (\n <XAxis>\n {xTicks ? (\n <XAxis.Ticks ticks={xTicks}>{childrenX}</XAxis.Ticks>\n ) : (\n <XAxis.Ticks>{childrenX}</XAxis.Ticks>\n )}\n {invertAxis === true && (xTicks ? <XAxis.Grid ticks={xTicks} /> : <XAxis.Grid />)}\n </XAxis>\n )}\n </>\n );\n }\n\n public render() {\n const SChart = Root;\n const { styles, plotWidth, plotHeight, data } = this.asProps;\n\n return sstyled(styles)(\n <SChart render={Flex} gap={5}>\n {this.renderLegend()}\n <Plot\n data={data}\n scale={[this.xScale, this.yScale]}\n width={plotWidth}\n height={plotHeight}\n dataHints={this.dataHints}\n >\n {this.renderAxis()}\n {this.renderTooltip()}\n {this.renderCh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,eAAA,CAvZqBT,aAAa,WAIX,CAAC,CAAC;AAAAS,eAAA,CAJJT,aAAa,kBAK0B;EACzDyH,SAAS,EAAE,QAAQ;EACnBsB,SAAS,EAAE,IAAI;EACfC,SAAS,EAAE,IAAI;EACfyB,WAAW,EAAE,IAAI;EACjB/C,UAAU,EAAE;AACd,CAAC"}
@@ -33,13 +33,13 @@ var RadarChartComponent = /*#__PURE__*/function (_AbstractChart) {
33
33
  type: circle ? 'circle' : undefined
34
34
  }, /*#__PURE__*/React.createElement(Radar.Axis, {
35
35
  dataKey: groupKey
36
- }, /*#__PURE__*/React.createElement(Radar.Axis.Ticks, null), /*#__PURE__*/React.createElement(Radar.Axis.Labels, null)), dataDefinitions.map(function (item) {
36
+ }, /*#__PURE__*/React.createElement(Radar.Axis.Ticks, null), /*#__PURE__*/React.createElement(Radar.Axis.Labels, null)), this.renderRadarTooltip(), dataDefinitions.map(function (item) {
37
37
  return item.checked && /*#__PURE__*/React.createElement(Radar.Polygon, {
38
38
  dataKey: item.id,
39
39
  key: item.id,
40
40
  color: item.color
41
41
  }, /*#__PURE__*/React.createElement(Radar.Polygon.Line, null), showDots && /*#__PURE__*/React.createElement(Radar.Polygon.Dots, null));
42
- }), this.renderRadarTooltip());
42
+ }));
43
43
  }
44
44
  }, {
45
45
  key: "renderRadarTooltip",