@semcore/d3-chart 16.3.0 → 16.4.0-prerelease.1

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 (97) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/lib/cjs/Area.js +11 -11
  3. package/lib/cjs/Axis.js +15 -15
  4. package/lib/cjs/Bar.js +16 -16
  5. package/lib/cjs/Bubble.js +59 -55
  6. package/lib/cjs/Bubble.js.map +1 -1
  7. package/lib/cjs/CompactHorizontalBar.js +25 -22
  8. package/lib/cjs/CompactHorizontalBar.js.map +1 -1
  9. package/lib/cjs/Donut.js +49 -45
  10. package/lib/cjs/Donut.js.map +1 -1
  11. package/lib/cjs/Dots.js +8 -8
  12. package/lib/cjs/HorizontalBar.js +16 -16
  13. package/lib/cjs/Hover.js +27 -10
  14. package/lib/cjs/Hover.js.map +1 -1
  15. package/lib/cjs/Line.js +9 -9
  16. package/lib/cjs/Plot.js +8 -6
  17. package/lib/cjs/Plot.js.map +1 -1
  18. package/lib/cjs/Radar.js +25 -24
  19. package/lib/cjs/Radar.js.map +1 -1
  20. package/lib/cjs/RadialTree.js +12 -12
  21. package/lib/cjs/Reference.js +12 -12
  22. package/lib/cjs/ScatterPlot.js +42 -40
  23. package/lib/cjs/ScatterPlot.js.map +1 -1
  24. package/lib/cjs/Tooltip.js +22 -20
  25. package/lib/cjs/Tooltip.js.map +1 -1
  26. package/lib/cjs/Venn.js +39 -27
  27. package/lib/cjs/Venn.js.map +1 -1
  28. package/lib/cjs/a11y/PlotA11yModule.js +2 -2
  29. package/lib/cjs/a11y/PlotA11yView.js +2 -2
  30. package/lib/cjs/component/Chart/AbstractChart.js +5 -3
  31. package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
  32. package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
  33. package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  34. package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  35. package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  36. package/lib/cjs/utils.js.map +1 -1
  37. package/lib/es6/Area.js +11 -11
  38. package/lib/es6/Axis.js +15 -15
  39. package/lib/es6/Bar.js +16 -16
  40. package/lib/es6/Bubble.js +59 -55
  41. package/lib/es6/Bubble.js.map +1 -1
  42. package/lib/es6/CompactHorizontalBar.js +25 -22
  43. package/lib/es6/CompactHorizontalBar.js.map +1 -1
  44. package/lib/es6/Donut.js +49 -45
  45. package/lib/es6/Donut.js.map +1 -1
  46. package/lib/es6/Dots.js +8 -8
  47. package/lib/es6/HorizontalBar.js +16 -16
  48. package/lib/es6/Hover.js +27 -10
  49. package/lib/es6/Hover.js.map +1 -1
  50. package/lib/es6/Line.js +9 -9
  51. package/lib/es6/Plot.js +8 -6
  52. package/lib/es6/Plot.js.map +1 -1
  53. package/lib/es6/Radar.js +25 -24
  54. package/lib/es6/Radar.js.map +1 -1
  55. package/lib/es6/RadialTree.js +12 -12
  56. package/lib/es6/Reference.js +12 -12
  57. package/lib/es6/ScatterPlot.js +42 -40
  58. package/lib/es6/ScatterPlot.js.map +1 -1
  59. package/lib/es6/Tooltip.js +22 -20
  60. package/lib/es6/Tooltip.js.map +1 -1
  61. package/lib/es6/Venn.js +39 -27
  62. package/lib/es6/Venn.js.map +1 -1
  63. package/lib/es6/a11y/PlotA11yModule.js +2 -2
  64. package/lib/es6/a11y/PlotA11yView.js +2 -2
  65. package/lib/es6/component/Chart/AbstractChart.js +5 -3
  66. package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
  67. package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
  68. package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  69. package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  70. package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  71. package/lib/es6/utils.js.map +1 -1
  72. package/lib/esm/Area.mjs +12 -12
  73. package/lib/esm/Axis.mjs +16 -16
  74. package/lib/esm/Bar.mjs +17 -17
  75. package/lib/esm/Bubble.mjs +26 -25
  76. package/lib/esm/CompactHorizontalBar.mjs +23 -23
  77. package/lib/esm/Donut.mjs +25 -24
  78. package/lib/esm/Dots.mjs +9 -9
  79. package/lib/esm/HorizontalBar.mjs +17 -17
  80. package/lib/esm/Hover.mjs +22 -11
  81. package/lib/esm/Line.mjs +10 -10
  82. package/lib/esm/Plot.mjs +9 -7
  83. package/lib/esm/Radar.mjs +25 -25
  84. package/lib/esm/RadialTree.mjs +13 -13
  85. package/lib/esm/Reference.mjs +13 -13
  86. package/lib/esm/ScatterPlot.mjs +17 -17
  87. package/lib/esm/Tooltip.mjs +17 -17
  88. package/lib/esm/Venn.mjs +30 -22
  89. package/lib/esm/a11y/PlotA11yModule.mjs +3 -3
  90. package/lib/esm/a11y/PlotA11yView.mjs +3 -3
  91. package/lib/esm/component/Chart/AbstractChart.mjs +4 -3
  92. package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +5 -5
  93. package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +18 -18
  94. package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +7 -7
  95. package/lib/types/component/Chart/AbstractChart.type.d.ts +5 -0
  96. package/lib/types/utils.d.ts +4 -4
  97. package/package.json +10 -10
package/lib/esm/Plot.mjs CHANGED
@@ -21,13 +21,13 @@ var style = (
21
21
  /*__reshadow_css_start__*/
22
22
  (sstyled.insert(
23
23
  /*__inner_css_start__*/
24
- ".___SPlot_ebb2t_gg_{overflow:hidden}.___SPlot_ebb2t_gg_:focus{outline:0}.___SPlot_ebb2t_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_ebb2t_gg_.__keyboardFocused_ebb2t_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset;border-radius:var(--intergalactic-surface-rounded, 6px)}",
24
+ ".___SPlot_irjhg_gg_{overflow:hidden}.___SPlot_irjhg_gg_:focus{outline:0}.___SPlot_irjhg_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_irjhg_gg_.__keyboardFocused_irjhg_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset;border-radius:var(--intergalactic-surface-rounded, 6px)}",
25
25
  /*__inner_css_end__*/
26
- "ebb2t_gg_"
26
+ "irjhg_gg_"
27
27
  ), /*__reshadow_css_end__*/
28
28
  {
29
- "__SPlot": "___SPlot_ebb2t_gg_",
30
- "_keyboardFocused": "__keyboardFocused_ebb2t_gg_"
29
+ "__SPlot": "___SPlot_irjhg_gg_",
30
+ "_keyboardFocused": "__keyboardFocused_irjhg_gg_"
31
31
  })
32
32
  );
33
33
  var PlotRoot = /* @__PURE__ */ (function(_Component) {
@@ -48,7 +48,7 @@ var PlotRoot = /* @__PURE__ */ (function(_Component) {
48
48
  var _xScale$range = xScale.range(), _xScale$range2 = _slicedToArray(_xScale$range, 2), minX = _xScale$range2[0], maxX = _xScale$range2[1];
49
49
  var _yScale$range = yScale.range(), _yScale$range2 = _slicedToArray(_yScale$range, 2), maxY = _yScale$range2[0], minY = _yScale$range2[1];
50
50
  if (pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) {
51
- _this.eventEmitter.emit("onMouseMoveChart", e);
51
+ _this.eventEmitter.emit("onMouseMoveChart", e, _this.rootRef.current);
52
52
  } else {
53
53
  _this.eventEmitter.emit("onMouseLeaveChart", e);
54
54
  }
@@ -82,7 +82,8 @@ var PlotRoot = /* @__PURE__ */ (function(_Component) {
82
82
  dataHintsHandler: this.dataHintsHandler,
83
83
  resolveColor,
84
84
  patterns,
85
- duration
85
+ duration,
86
+ plotId: this.plotId
86
87
  }
87
88
  };
88
89
  }
@@ -101,7 +102,8 @@ var PlotRoot = /* @__PURE__ */ (function(_Component) {
101
102
  "onMouseMove": this.handlerMouseMove,
102
103
  "onMouseLeave": this.handlerMouseLeave,
103
104
  "aria-label": ariaLabel,
104
- "tabIndex": 0
105
+ "tabIndex": 0,
106
+ "data-plot-id": this.plotId
105
107
  }, _ref))), /* @__PURE__ */ React.createElement(Children, _ref2.cn("Children", {})), /* @__PURE__ */ React.createElement("foreignObject", _ref2.cn("foreignObject", {
106
108
  "width": "100%",
107
109
  "height": "100%",
package/lib/esm/Radar.mjs CHANGED
@@ -23,29 +23,29 @@ var style = (
23
23
  /*__reshadow_css_start__*/
24
24
  (sstyled.insert(
25
25
  /*__inner_css_start__*/
26
- ".___SAxisLine_xbfmu_gg_,.___SAxisTick_xbfmu_gg_,.___SAxis_xbfmu_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_xbfmu_gg_,.___SAxisTick_xbfmu_gg_{stroke-dasharray:2}.___SAxisLine_xbfmu_gg_.__active_xbfmu_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_xbfmu_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_xbfmu_gg_.__xDirection_xbfmu_gg_{text-anchor:var(--xDirection_xbfmu)}.___SAxisLabel_xbfmu_gg_.__yDirection_xbfmu_gg_{dominant-baseline:var(--yDirection_xbfmu)}.___SPolygonDot_xbfmu_gg_,.___SPolygon_xbfmu_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_xbfmu_gg_{opacity:.2}.___SPolygon_xbfmu_gg_.__color_xbfmu_gg_{fill:var(--color_xbfmu)}.___SPolygon_xbfmu_gg_.__pattern_xbfmu_gg_.__color_xbfmu_gg_{fill:var(--pattern_xbfmu);stroke:var(--color_xbfmu);stroke-width:1px}.___SPolygonDot_xbfmu_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_xbfmu_gg_.__transparent_xbfmu_gg_{opacity:.3}.___SPolygonDot_xbfmu_gg_.__color_xbfmu_gg_{fill:var(--color_xbfmu)}.___SPolygonLine_xbfmu_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_xbfmu_gg_.__transparent_xbfmu_gg_{opacity:.3}.___SPolygonLine_xbfmu_gg_.__color_xbfmu_gg_{stroke:var(--color_xbfmu)}.___SPieRect_xbfmu_gg_{outline:0;fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}",
26
+ ".___SAxisLine_22h5e_gg_,.___SAxisTick_22h5e_gg_,.___SAxis_22h5e_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_22h5e_gg_,.___SAxisTick_22h5e_gg_{stroke-dasharray:2}.___SAxisLine_22h5e_gg_.__active_22h5e_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_22h5e_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_22h5e_gg_.__xDirection_22h5e_gg_{text-anchor:var(--xDirection_22h5e)}.___SAxisLabel_22h5e_gg_.__yDirection_22h5e_gg_{dominant-baseline:var(--yDirection_22h5e)}.___SPolygonDot_22h5e_gg_,.___SPolygon_22h5e_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_22h5e_gg_{opacity:.2}.___SPolygon_22h5e_gg_.__color_22h5e_gg_{fill:var(--color_22h5e)}.___SPolygon_22h5e_gg_.__pattern_22h5e_gg_.__color_22h5e_gg_{fill:var(--pattern_22h5e);stroke:var(--color_22h5e);stroke-width:1px}.___SPolygonDot_22h5e_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_22h5e_gg_.__transparent_22h5e_gg_{opacity:.3}.___SPolygonDot_22h5e_gg_.__color_22h5e_gg_{fill:var(--color_22h5e)}.___SPolygonLine_22h5e_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_22h5e_gg_.__transparent_22h5e_gg_{opacity:.3}.___SPolygonLine_22h5e_gg_.__color_22h5e_gg_{stroke:var(--color_22h5e)}.___SPieRect_22h5e_gg_{outline:0;fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}",
27
27
  /*__inner_css_end__*/
28
- "xbfmu_gg_"
28
+ "22h5e_gg_"
29
29
  ), /*__reshadow_css_end__*/
30
30
  {
31
- "__SAxis": "___SAxis_xbfmu_gg_",
32
- "__SAxisLine": "___SAxisLine_xbfmu_gg_",
33
- "__SAxisTick": "___SAxisTick_xbfmu_gg_",
34
- "_active": "__active_xbfmu_gg_",
35
- "__SAxisLabel": "___SAxisLabel_xbfmu_gg_",
36
- "_xDirection": "__xDirection_xbfmu_gg_",
37
- "--xDirection": "--xDirection_xbfmu",
38
- "_yDirection": "__yDirection_xbfmu_gg_",
39
- "--yDirection": "--yDirection_xbfmu",
40
- "__SPolygon": "___SPolygon_xbfmu_gg_",
41
- "_color": "__color_xbfmu_gg_",
42
- "--color": "--color_xbfmu",
43
- "_pattern": "__pattern_xbfmu_gg_",
44
- "--pattern": "--pattern_xbfmu",
45
- "__SPolygonDot": "___SPolygonDot_xbfmu_gg_",
46
- "_transparent": "__transparent_xbfmu_gg_",
47
- "__SPolygonLine": "___SPolygonLine_xbfmu_gg_",
48
- "__SPieRect": "___SPieRect_xbfmu_gg_"
31
+ "__SAxis": "___SAxis_22h5e_gg_",
32
+ "__SAxisLine": "___SAxisLine_22h5e_gg_",
33
+ "__SAxisTick": "___SAxisTick_22h5e_gg_",
34
+ "_active": "__active_22h5e_gg_",
35
+ "__SAxisLabel": "___SAxisLabel_22h5e_gg_",
36
+ "_xDirection": "__xDirection_22h5e_gg_",
37
+ "--xDirection": "--xDirection_22h5e",
38
+ "_yDirection": "__yDirection_22h5e_gg_",
39
+ "--yDirection": "--yDirection_22h5e",
40
+ "__SPolygon": "___SPolygon_22h5e_gg_",
41
+ "_color": "__color_22h5e_gg_",
42
+ "--color": "--color_22h5e",
43
+ "_pattern": "__pattern_22h5e_gg_",
44
+ "--pattern": "--pattern_22h5e",
45
+ "__SPolygonDot": "___SPolygonDot_22h5e_gg_",
46
+ "_transparent": "__transparent_22h5e_gg_",
47
+ "__SPolygonLine": "___SPolygonLine_22h5e_gg_",
48
+ "__SPieRect": "___SPieRect_22h5e_gg_"
49
49
  })
50
50
  );
51
51
  var clampAngle = function clampAngle2(angle) {
@@ -599,7 +599,7 @@ var Hover = /* @__PURE__ */ (function(_Component4) {
599
599
  _defineProperty(_this4, "unsubscribeMouseMoveRoot", null);
600
600
  _defineProperty(_this4, "unsubscribeMouseLeaveRoot", null);
601
601
  _defineProperty(_this4, "handlerMouseMoveRoot", trottle(function(e) {
602
- var _this4$asProps = _this4.asProps, eventEmitter = _this4$asProps.eventEmitter, size = _this4$asProps.size, rootRef = _this4$asProps.rootRef, patterns = _this4$asProps.patterns, getIndex = _this4$asProps.getIndex;
602
+ var _this4$asProps = _this4.asProps, eventEmitter = _this4$asProps.eventEmitter, size = _this4$asProps.size, rootRef = _this4$asProps.rootRef, patterns = _this4$asProps.patterns, getIndex = _this4$asProps.getIndex, plotId = _this4$asProps.plotId;
603
603
  var point = eventToPoint(e, rootRef.current);
604
604
  var diam = Math.min(size[0], size[1]);
605
605
  var centerX = point[0] - diam / 2;
@@ -609,19 +609,19 @@ var Hover = /* @__PURE__ */ (function(_Component4) {
609
609
  _this4.setState({
610
610
  index
611
611
  }, function() {
612
- eventEmitter.emit("setTooltipPosition", clientX, clientY);
613
- eventEmitter.emit("setTooltipRenderingProps", {}, {
612
+ eventEmitter.emit("setTooltipPosition_".concat(plotId), clientX, clientY);
613
+ eventEmitter.emit("setTooltipRenderingProps_".concat(plotId), {}, {
614
614
  index,
615
615
  patterns
616
616
  });
617
- eventEmitter.emit("setTooltipVisible", index !== null);
617
+ eventEmitter.emit("setTooltipVisible_".concat(plotId), index !== null);
618
618
  });
619
619
  }));
620
620
  _defineProperty(_this4, "handlerMouseLeaveRoot", trottle(function() {
621
621
  _this4.setState({
622
622
  index: null
623
623
  }, function() {
624
- _this4.asProps.eventEmitter.emit("setTooltipVisible", false);
624
+ _this4.asProps.eventEmitter.emit("setTooltipVisible_".concat(_this4.asProps.plotId), false);
625
625
  });
626
626
  }));
627
627
  return _this4;
@@ -23,22 +23,22 @@ var style = (
23
23
  /*__reshadow_css_start__*/
24
24
  (sstyled.insert(
25
25
  /*__inner_css_start__*/
26
- ".___SRadian_1vgfp_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1vgfp_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1vgfp_gg_.__stroke_1vgfp_gg_{stroke:var(--stroke_1vgfp)}.___SLine_1vgfp_gg_.__transparent_1vgfp_gg_{opacity:.3}.___SCap_1vgfp_gg_{transition:r .1s}.___SCap_1vgfp_gg_.__pattern_1vgfp_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_1vgfp_gg_.__transparent_1vgfp_gg_,.___SIcon_1vgfp_gg_.__transparent_1vgfp_gg_,.___SLabel_1vgfp_gg_.__transparent_1vgfp_gg_{opacity:.3}.___SLabel_1vgfp_gg_{fill:var(--color_1vgfp)}@media (hover:hover){.___SRadian_1vgfp_gg_:hover .___SLabel_1vgfp_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1vgfp_gg_{transition:none}}",
26
+ ".___SRadian_1c8r4_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1c8r4_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1c8r4_gg_.__stroke_1c8r4_gg_{stroke:var(--stroke_1c8r4)}.___SLine_1c8r4_gg_.__transparent_1c8r4_gg_{opacity:.3}.___SCap_1c8r4_gg_{transition:r .1s}.___SCap_1c8r4_gg_.__pattern_1c8r4_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_1c8r4_gg_.__transparent_1c8r4_gg_,.___SIcon_1c8r4_gg_.__transparent_1c8r4_gg_,.___SLabel_1c8r4_gg_.__transparent_1c8r4_gg_{opacity:.3}.___SLabel_1c8r4_gg_{fill:var(--color_1c8r4)}@media (hover:hover){.___SRadian_1c8r4_gg_:hover .___SLabel_1c8r4_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1c8r4_gg_{transition:none}}",
27
27
  /*__inner_css_end__*/
28
- "1vgfp_gg_"
28
+ "1c8r4_gg_"
29
29
  ), /*__reshadow_css_end__*/
30
30
  {
31
- "__SRadian": "___SRadian_1vgfp_gg_",
32
- "__SLine": "___SLine_1vgfp_gg_",
33
- "_stroke": "__stroke_1vgfp_gg_",
34
- "--stroke": "--stroke_1vgfp",
35
- "_transparent": "__transparent_1vgfp_gg_",
36
- "__SCap": "___SCap_1vgfp_gg_",
37
- "_pattern": "__pattern_1vgfp_gg_",
38
- "__SIcon": "___SIcon_1vgfp_gg_",
39
- "__SLabel": "___SLabel_1vgfp_gg_",
40
- "--color": "--color_1vgfp",
41
- "__SLineCap": "___SLineCap_1vgfp_gg_"
31
+ "__SRadian": "___SRadian_1c8r4_gg_",
32
+ "__SLine": "___SLine_1c8r4_gg_",
33
+ "_stroke": "__stroke_1c8r4_gg_",
34
+ "--stroke": "--stroke_1c8r4",
35
+ "_transparent": "__transparent_1c8r4_gg_",
36
+ "__SCap": "___SCap_1c8r4_gg_",
37
+ "_pattern": "__pattern_1c8r4_gg_",
38
+ "__SIcon": "___SIcon_1c8r4_gg_",
39
+ "__SLabel": "___SLabel_1c8r4_gg_",
40
+ "--color": "--color_1c8r4",
41
+ "__SLineCap": "___SLineCap_1c8r4_gg_"
42
42
  })
43
43
  );
44
44
  var baseAngle = -Math.PI / 2;
@@ -15,22 +15,22 @@ var style = (
15
15
  /*__reshadow_css_start__*/
16
16
  (sstyled.insert(
17
17
  /*__inner_css_start__*/
18
- ".___SReferenceLine_1afvr_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___STitle_1afvr_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_1afvr)}.___STitle_1afvr_gg_._position_top_1afvr_gg_{text-anchor:middle}.___STitle_1afvr_gg_._position_bottom_1afvr_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1afvr_gg_._position_left_1afvr_gg_,.___STitle_1afvr_gg_._position_right_1afvr_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_1afvr_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}.___SStripes_1afvr_gg_{fill:var(--fill_1afvr)}.___SStripesPatternPath_1afvr_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));stroke-width:1px}",
18
+ ".___SReferenceLine_1kaw4_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___STitle_1kaw4_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_1kaw4)}.___STitle_1kaw4_gg_._position_top_1kaw4_gg_{text-anchor:middle}.___STitle_1kaw4_gg_._position_bottom_1kaw4_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1kaw4_gg_._position_left_1kaw4_gg_,.___STitle_1kaw4_gg_._position_right_1kaw4_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_1kaw4_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}.___SStripes_1kaw4_gg_{fill:var(--fill_1kaw4)}.___SStripesPatternPath_1kaw4_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));stroke-width:1px}",
19
19
  /*__inner_css_end__*/
20
- "1afvr_gg_"
20
+ "1kaw4_gg_"
21
21
  ), /*__reshadow_css_end__*/
22
22
  {
23
- "__SReferenceLine": "___SReferenceLine_1afvr_gg_",
24
- "__STitle": "___STitle_1afvr_gg_",
25
- "--transform-origin": "--transform-origin_1afvr",
26
- "_position_top": "_position_top_1afvr_gg_",
27
- "_position_bottom": "_position_bottom_1afvr_gg_",
28
- "_position_right": "_position_right_1afvr_gg_",
29
- "_position_left": "_position_left_1afvr_gg_",
30
- "__SBackground": "___SBackground_1afvr_gg_",
31
- "__SStripes": "___SStripes_1afvr_gg_",
32
- "--fill": "--fill_1afvr",
33
- "__SStripesPatternPath": "___SStripesPatternPath_1afvr_gg_"
23
+ "__SReferenceLine": "___SReferenceLine_1kaw4_gg_",
24
+ "__STitle": "___STitle_1kaw4_gg_",
25
+ "--transform-origin": "--transform-origin_1kaw4",
26
+ "_position_top": "_position_top_1kaw4_gg_",
27
+ "_position_bottom": "_position_bottom_1kaw4_gg_",
28
+ "_position_right": "_position_right_1kaw4_gg_",
29
+ "_position_left": "_position_left_1kaw4_gg_",
30
+ "__SBackground": "___SBackground_1kaw4_gg_",
31
+ "__SStripes": "___SStripes_1kaw4_gg_",
32
+ "--fill": "--fill_1kaw4",
33
+ "__SStripesPatternPath": "___SStripesPatternPath_1kaw4_gg_"
34
34
  })
35
35
  );
36
36
  var side2direction = {
@@ -19,19 +19,19 @@ var style = (
19
19
  /*__reshadow_css_start__*/
20
20
  (sstyled.insert(
21
21
  /*__inner_css_start__*/
22
- ".___SScatterPlot_1m2js_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_1m2js);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_1m2js_gg_:hover{opacity:.8}}.___SScatterPlot_1m2js_gg_.__color_1m2js_gg_{fill:var(--color_1m2js)}.___SScatterPlot_1m2js_gg_.__pattern_1m2js_gg_.__color_1m2js_gg_{fill:var(--pattern_1m2js);stroke:var(--color_1m2js);stroke-width:1px}.___SScatterPlot_1m2js_gg_.__transparent_1m2js_gg_{opacity:.3}.___SValue_1m2js_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_1m2js_gg_.__color_1m2js_gg_{stroke:var(--color_1m2js)}.___SValue_1m2js_gg_.__transparent_1m2js_gg_{opacity:.3}",
22
+ ".___SScatterPlot_6iqqd_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_6iqqd);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_6iqqd_gg_:hover{opacity:.8}}.___SScatterPlot_6iqqd_gg_.__color_6iqqd_gg_{fill:var(--color_6iqqd)}.___SScatterPlot_6iqqd_gg_.__pattern_6iqqd_gg_.__color_6iqqd_gg_{fill:var(--pattern_6iqqd);stroke:var(--color_6iqqd);stroke-width:1px}.___SScatterPlot_6iqqd_gg_.__transparent_6iqqd_gg_{opacity:.3}.___SValue_6iqqd_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_6iqqd_gg_.__color_6iqqd_gg_{stroke:var(--color_6iqqd)}.___SValue_6iqqd_gg_.__transparent_6iqqd_gg_{opacity:.3}",
23
23
  /*__inner_css_end__*/
24
- "1m2js_gg_"
24
+ "6iqqd_gg_"
25
25
  ), /*__reshadow_css_end__*/
26
26
  {
27
- "__SScatterPlot": "___SScatterPlot_1m2js_gg_",
28
- "_color": "__color_1m2js_gg_",
29
- "--color": "--color_1m2js",
30
- "_pattern": "__pattern_1m2js_gg_",
31
- "--pattern": "--pattern_1m2js",
32
- "_transparent": "__transparent_1m2js_gg_",
33
- "__SValue": "___SValue_1m2js_gg_",
34
- "--duration": "--duration_1m2js"
27
+ "__SScatterPlot": "___SScatterPlot_6iqqd_gg_",
28
+ "_color": "__color_6iqqd_gg_",
29
+ "--color": "--color_6iqqd",
30
+ "_pattern": "__pattern_6iqqd_gg_",
31
+ "--pattern": "--pattern_6iqqd",
32
+ "_transparent": "__transparent_6iqqd_gg_",
33
+ "__SValue": "___SValue_6iqqd_gg_",
34
+ "--duration": "--duration_6iqqd"
35
35
  })
36
36
  );
37
37
  var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
@@ -46,10 +46,10 @@ var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
46
46
  _defineProperty(_this, "bindHandlerTooltip", function(visible, props, tooltipProps) {
47
47
  return function(_ref4) {
48
48
  var clientX = _ref4.clientX, clientY = _ref4.clientY;
49
- var eventEmitter = _this.asProps.eventEmitter;
50
- eventEmitter.emit("setTooltipPosition", clientX, clientY);
51
- eventEmitter.emit("setTooltipRenderingProps", props, tooltipProps);
52
- eventEmitter.emit("setTooltipVisible", visible);
49
+ var _this$asProps = _this.asProps, eventEmitter = _this$asProps.eventEmitter, plotId = _this$asProps.plotId;
50
+ eventEmitter.emit("setTooltipPosition_".concat(plotId), clientX, clientY);
51
+ eventEmitter.emit("setTooltipRenderingProps_".concat(plotId), props, tooltipProps);
52
+ eventEmitter.emit("setTooltipVisible_".concat(plotId), visible);
53
53
  };
54
54
  });
55
55
  return _this;
@@ -74,7 +74,7 @@ var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
74
74
  }, {
75
75
  key: "animationCircle",
76
76
  value: function animationCircle() {
77
- var _this$asProps = this.asProps, duration = _this$asProps.duration, uid = _this$asProps.uid, r = _this$asProps.r, value = _this$asProps.value;
77
+ var _this$asProps2 = this.asProps, duration = _this$asProps2.duration, uid = _this$asProps2.uid, r = _this$asProps2.r, value = _this$asProps2.value;
78
78
  var radius = r ? r : getScatterPlotRadius(value);
79
79
  var selectRect = transition().selection().selectAll("[id^=".concat(uid, "]")).attr("r", 0);
80
80
  var selectRectNode = selectRect.node();
@@ -109,7 +109,7 @@ var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
109
109
  key: "renderCircle",
110
110
  value: function renderCircle(d, i) {
111
111
  var _ref2;
112
- var _this$asProps2 = this.asProps, color = _this$asProps2.color, scale = _this$asProps2.scale, x = _this$asProps2.x, y = _this$asProps2.y, r = _this$asProps2.r, offset = _this$asProps2.offset, styles = _this$asProps2.styles, uid = _this$asProps2.uid, duration = _this$asProps2.duration, value = _this$asProps2.value, valueColor = _this$asProps2.valueColor, transparent = _this$asProps2.transparent, resolveColor = _this$asProps2.resolveColor, patterns = _this$asProps2.patterns;
112
+ var _this$asProps3 = this.asProps, color = _this$asProps3.color, scale = _this$asProps3.scale, x = _this$asProps3.x, y = _this$asProps3.y, r = _this$asProps3.r, offset = _this$asProps3.offset, styles = _this$asProps3.styles, uid = _this$asProps3.uid, duration = _this$asProps3.duration, value = _this$asProps3.value, valueColor = _this$asProps3.valueColor, transparent = _this$asProps3.transparent, resolveColor = _this$asProps3.resolveColor, patterns = _this$asProps3.patterns;
113
113
  var _scale = _slicedToArray(scale, 2), xScale = _scale[0], yScale = _scale[1];
114
114
  var SScatterPlot = this.Element;
115
115
  var SValue = "text";
@@ -161,7 +161,7 @@ var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
161
161
  }, {
162
162
  key: "render",
163
163
  value: function render() {
164
- var _this$asProps3 = this.asProps, data = _this$asProps3.data, uid = _this$asProps3.uid, scale = _this$asProps3.scale, x = _this$asProps3.x, y = _this$asProps3.y, value = _this$asProps3.value;
164
+ var _this$asProps4 = this.asProps, data = _this$asProps4.data, uid = _this$asProps4.uid, scale = _this$asProps4.scale, x = _this$asProps4.x, y = _this$asProps4.y, value = _this$asProps4.value;
165
165
  var _scale2 = _slicedToArray(scale, 2), xScale = _scale2[0], yScale = _scale2[1];
166
166
  var xSize = Math.abs(xScale.range()[0] - xScale.range()[1]);
167
167
  var ySize = Math.abs(yScale.range()[0] - yScale.range()[1]);
@@ -20,19 +20,19 @@ var style = (
20
20
  /*__reshadow_css_start__*/
21
21
  (sstyled.insert(
22
22
  /*__inner_css_start__*/
23
- ".___STooltip_2npro_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_2npro_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_2npro_gg_{display:flex;align-items:center}.___SDot_2npro_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_2npro_gg_.__color_2npro_gg_{background-color:var(--color_2npro);width:8px;height:8px;border-radius:50%}.___SFooter_2npro_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))}",
23
+ ".___STooltip_r10f7_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_r10f7_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_r10f7_gg_{display:flex;align-items:center}.___SDot_r10f7_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_r10f7_gg_.__color_r10f7_gg_{background-color:var(--color_r10f7);width:8px;height:8px;border-radius:50%}.___SFooter_r10f7_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))}",
24
24
  /*__inner_css_end__*/
25
- "2npro_gg_"
25
+ "r10f7_gg_"
26
26
  ), /*__reshadow_css_end__*/
27
27
  {
28
- "__STooltip": "___STooltip_2npro_gg_",
29
- "__STitle": "___STitle_2npro_gg_",
30
- "__SDotGroup": "___SDotGroup_2npro_gg_",
31
- "__SDot": "___SDot_2npro_gg_",
32
- "__SDotCircle": "___SDotCircle_2npro_gg_",
33
- "_color": "__color_2npro_gg_",
34
- "--color": "--color_2npro",
35
- "__SFooter": "___SFooter_2npro_gg_"
28
+ "__STooltip": "___STooltip_r10f7_gg_",
29
+ "__STitle": "___STitle_r10f7_gg_",
30
+ "__SDotGroup": "___SDotGroup_r10f7_gg_",
31
+ "__SDot": "___SDot_r10f7_gg_",
32
+ "__SDotCircle": "___SDotCircle_r10f7_gg_",
33
+ "_color": "__color_r10f7_gg_",
34
+ "--color": "--color_r10f7",
35
+ "__SFooter": "___SFooter_r10f7_gg_"
36
36
  })
37
37
  );
38
38
  var TooltipDotRenderContext = /* @__PURE__ */ React.createContext({
@@ -100,17 +100,17 @@ var TooltipRoot = /* @__PURE__ */ (function(_Component) {
100
100
  key: "componentDidMount",
101
101
  value: function componentDidMount() {
102
102
  var _this2 = this;
103
- var eventEmitter = this.asProps.eventEmitter;
104
- this.unsubscribe.push(eventEmitter.subscribe("setTooltipRenderingProps", function(anchorProps, tooltipProps) {
103
+ var _this$asProps2 = this.asProps, eventEmitter = _this$asProps2.eventEmitter, plotId = _this$asProps2.plotId;
104
+ this.unsubscribe.push(eventEmitter.subscribe("setTooltipRenderingProps_".concat(plotId), function(anchorProps, tooltipProps) {
105
105
  _this2.setState({
106
106
  anchorProps,
107
107
  tooltipProps
108
108
  });
109
- }), eventEmitter.subscribe("setTooltipVisible", function(visible) {
109
+ }), eventEmitter.subscribe("setTooltipVisible_".concat(plotId), function(visible) {
110
110
  return _this2.setState({
111
111
  $visible: visible
112
112
  });
113
- }), eventEmitter.subscribe("setTooltipPosition", function(x, y) {
113
+ }), eventEmitter.subscribe("setTooltipPosition_".concat(plotId), function(x, y) {
114
114
  var _this2$popper$current;
115
115
  _this2.virtualElementPosition.x = x;
116
116
  _this2.virtualElementPosition.y = y;
@@ -145,9 +145,9 @@ var TooltipRoot = /* @__PURE__ */ (function(_Component) {
145
145
  key: "render",
146
146
  value: function render() {
147
147
  var _ref = this.asProps, _this$asProps$pattern, _this3 = this;
148
- var _this$asProps2 = this.asProps, Children = _this$asProps2.Children, children = _this$asProps2.children, tag = _this$asProps2.tag, forcedAdvancedMode = _this$asProps2.forcedAdvancedMode;
149
- _this$asProps2.onClick;
150
- var other = _objectWithoutProperties(_this$asProps2, _excluded);
148
+ var _this$asProps3 = this.asProps, Children = _this$asProps3.Children, children = _this$asProps3.children, tag = _this$asProps3.tag, forcedAdvancedMode = _this$asProps3.forcedAdvancedMode;
149
+ _this$asProps3.onClick;
150
+ var other = _objectWithoutProperties(_this$asProps3, _excluded);
151
151
  var advancedMode = forcedAdvancedMode || !!findComponent(Children, [Tooltip.Trigger.displayName, Tooltip.Popper.displayName]);
152
152
  this.renderContext.index = -1;
153
153
  this.renderContext.indexKeysCache.clear();
package/lib/esm/Venn.mjs CHANGED
@@ -8,6 +8,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
8
8
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import { sstyled, assignProps, Component } from "@semcore/core";
10
10
  import { FadeInOut } from "@semcore/animation";
11
+ import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
11
12
  import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
12
13
  import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
13
14
  import { scaleSolution, normalizeSolution, venn, intersectionAreaPath } from "@upsetjs/venn.js";
@@ -21,19 +22,19 @@ var style = (
21
22
  /*__reshadow_css_start__*/
22
23
  (sstyled.insert(
23
24
  /*__inner_css_start__*/
24
- ".___SCircle_l556u_gg_,.___SIntersection_l556u_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_l556u_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_l556u);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_l556u_gg_:hover{fill-opacity:.7}}.___SCircle_l556u_gg_.__color_l556u_gg_{fill:var(--color_l556u)}.___SCircle_l556u_gg_.__pattern_l556u_gg_.__color_l556u_gg_{fill:var(--pattern_l556u);fill-opacity:.7;stroke:var(--color_l556u);stroke-width:1px}@media (hover:hover){.___SCircle_l556u_gg_.__pattern_l556u_gg_.__color_l556u_gg_:hover{fill-opacity:.85}}.___SCircle_l556u_gg_.__transparent_l556u_gg_{opacity:.3}.___SIntersection_l556u_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_l556u_gg_:hover{fill-opacity:.1}}.___SIntersection_l556u_gg_.__transparent_l556u_gg_{opacity:.3}",
25
+ ".___SCircle_fy99p_gg_,.___SIntersection_fy99p_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_fy99p_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_fy99p);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_fy99p_gg_:hover{fill-opacity:.7}}.___SCircle_fy99p_gg_.__color_fy99p_gg_{fill:var(--color_fy99p)}.___SCircle_fy99p_gg_.__pattern_fy99p_gg_.__color_fy99p_gg_{fill:var(--pattern_fy99p);fill-opacity:.7;stroke:var(--color_fy99p);stroke-width:1px}@media (hover:hover){.___SCircle_fy99p_gg_.__pattern_fy99p_gg_.__color_fy99p_gg_:hover{fill-opacity:.85}}.___SCircle_fy99p_gg_.__transparent_fy99p_gg_{opacity:.3}.___SIntersection_fy99p_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_fy99p_gg_:hover{fill-opacity:.1}}.___SIntersection_fy99p_gg_.__transparent_fy99p_gg_{opacity:.3}",
25
26
  /*__inner_css_end__*/
26
- "l556u_gg_"
27
+ "fy99p_gg_"
27
28
  ), /*__reshadow_css_end__*/
28
29
  {
29
- "__SCircle": "___SCircle_l556u_gg_",
30
- "_color": "__color_l556u_gg_",
31
- "--color": "--color_l556u",
32
- "_transparent": "__transparent_l556u_gg_",
33
- "__SIntersection": "___SIntersection_l556u_gg_",
34
- "--duration": "--duration_l556u",
35
- "_pattern": "__pattern_l556u_gg_",
36
- "--pattern": "--pattern_l556u"
30
+ "__SCircle": "___SCircle_fy99p_gg_",
31
+ "_color": "__color_fy99p_gg_",
32
+ "--color": "--color_fy99p",
33
+ "_transparent": "__transparent_fy99p_gg_",
34
+ "__SIntersection": "___SIntersection_fy99p_gg_",
35
+ "--duration": "--duration_fy99p",
36
+ "_pattern": "__pattern_fy99p_gg_",
37
+ "--pattern": "--pattern_fy99p"
37
38
  })
38
39
  );
39
40
  var VennRoot = /* @__PURE__ */ (function(_Component) {
@@ -48,10 +49,10 @@ var VennRoot = /* @__PURE__ */ (function(_Component) {
48
49
  _defineProperty(_this, "bindHandlerTooltip", function(visible, props, tooltipProps) {
49
50
  return function(_ref5) {
50
51
  var clientX = _ref5.clientX, clientY = _ref5.clientY;
51
- var eventEmitter = _this.asProps.eventEmitter;
52
- eventEmitter.emit("setTooltipPosition", clientX, clientY);
53
- eventEmitter.emit("setTooltipRenderingProps", props, tooltipProps);
54
- eventEmitter.emit("setTooltipVisible", visible);
52
+ var _this$asProps = _this.asProps, eventEmitter = _this$asProps.eventEmitter, plotId = _this$asProps.plotId;
53
+ eventEmitter.emit("setTooltipPosition_".concat(plotId), clientX, clientY);
54
+ eventEmitter.emit("setTooltipRenderingProps_".concat(plotId), props, tooltipProps);
55
+ eventEmitter.emit("setTooltipVisible_".concat(plotId), visible);
55
56
  };
56
57
  });
57
58
  _defineProperty(_this, "renderElement", /* @__PURE__ */ React.forwardRef(function(props, ref) {
@@ -84,7 +85,7 @@ var VennRoot = /* @__PURE__ */ (function(_Component) {
84
85
  }, {
85
86
  key: "getVennData",
86
87
  value: function getVennData() {
87
- var _this$asProps = this.asProps, data = _this$asProps.data, orientation = _this$asProps.orientation, orientationOrder2 = _this$asProps.orientationOrder, size = _this$asProps.size;
88
+ var _this$asProps2 = this.asProps, data = _this$asProps2.data, orientation = _this$asProps2.orientation, orientationOrder2 = _this$asProps2.orientationOrder, size = _this$asProps2.size;
88
89
  var _size = _slicedToArray(size, 2), width = _size[0], height = _size[1];
89
90
  var vennData = Object.entries(data).map(function(_ref6) {
90
91
  var _ref7 = _slicedToArray(_ref6, 2), dataKey = _ref7[0], size2 = _ref7[1];
@@ -95,6 +96,13 @@ var VennRoot = /* @__PURE__ */ (function(_Component) {
95
96
  });
96
97
  return scaleSolution(normalizeSolution(venn(vennData), orientation, orientationOrder2), width, height, 10);
97
98
  }
99
+ }, {
100
+ key: "getTooltipProps",
101
+ value: function getTooltipProps() {
102
+ return {
103
+ uniqId: this.asProps.uid
104
+ };
105
+ }
98
106
  }, {
99
107
  key: "getCircleProps",
100
108
  value: function getCircleProps(props, index) {
@@ -118,13 +126,13 @@ var VennRoot = /* @__PURE__ */ (function(_Component) {
118
126
  uid: "".concat(this.asProps.uid, "-").concat(index),
119
127
  patterns: this.asProps.patterns,
120
128
  minRadius: this.asProps.minRadius,
121
- onClick: this.handlerOnClick(props.dataKey).bind(this)
129
+ onClickCircleRoot: this.handlerOnClick(props.dataKey).bind(this)
122
130
  };
123
131
  }
124
132
  }, {
125
133
  key: "getIntersectionProps",
126
134
  value: function getIntersectionProps(props) {
127
- var _this$asProps2 = this.asProps, duration = _this$asProps2.duration, transparent = _this$asProps2.transparent;
135
+ var _this$asProps3 = this.asProps, duration = _this$asProps3.duration, transparent = _this$asProps3.transparent;
128
136
  var dataKeys = props.dataKey.split("/");
129
137
  var tooltipProps = {
130
138
  dataKey: props.dataKey,
@@ -144,7 +152,7 @@ var VennRoot = /* @__PURE__ */ (function(_Component) {
144
152
  onMouseLeave: this.bindHandlerTooltip(false, props, tooltipProps),
145
153
  transparent,
146
154
  resolveColor: this.asProps.resolveColor,
147
- onClick: this.handlerOnClick(props.dataKey).bind(this)
155
+ onClickIntersectionRoot: this.handlerOnClick(props.dataKey).bind(this)
148
156
  };
149
157
  }
150
158
  }, {
@@ -186,7 +194,7 @@ _defineProperty(VennRoot, "defaultProps", {
186
194
  _defineProperty(VennRoot, "enhance", [uniqueIDEnhancement()]);
187
195
  function Circle(_ref8) {
188
196
  var _ref2;
189
- var SCircle = _ref8.Element, styles = _ref8.styles, color = _ref8.color, resolveColor = _ref8.resolveColor, data = _ref8.data, duration = _ref8.duration, name = _ref8.name, dataKey = _ref8.dataKey, dataHintsHandler = _ref8.dataHintsHandler, transparent = _ref8.transparent, uid = _ref8.uid, patterns = _ref8.patterns, minRadius = _ref8.minRadius, onClick = _ref8.onClick;
197
+ var SCircle = _ref8.Element, styles = _ref8.styles, color = _ref8.color, resolveColor = _ref8.resolveColor, data = _ref8.data, duration = _ref8.duration, name = _ref8.name, dataKey = _ref8.dataKey, dataHintsHandler = _ref8.dataHintsHandler, transparent = _ref8.transparent, uid = _ref8.uid, patterns = _ref8.patterns, minRadius = _ref8.minRadius, onClick = _ref8.onClick, onClickCircleRoot = _ref8.onClickCircleRoot;
190
198
  dataHintsHandler.describeValueEntity(dataKey, name);
191
199
  var radius = data.radius < minRadius ? minRadius : data.radius;
192
200
  if (data.radius === 0) return null;
@@ -200,7 +208,7 @@ function Circle(_ref8) {
200
208
  "r": radius,
201
209
  "transparent": transparent,
202
210
  "use:duration": "".concat(duration, "ms"),
203
- "onClickCapture": onClick
211
+ "onClickCapture": callAllEventHandlers(onClickCircleRoot, onClick)
204
212
  }))), patterns && /* @__PURE__ */ React.createElement(PatternFill, _ref2.cn("PatternFill", {
205
213
  "id": "".concat(uid, "-pattern"),
206
214
  "patternKey": color,
@@ -210,7 +218,7 @@ function Circle(_ref8) {
210
218
  }
211
219
  function Intersection(props) {
212
220
  var _ref3;
213
- var SIntersection = props.Element, styles = props.styles, data = props.data, name = props.name, dataKey = props.dataKey, dataHintsHandler = props.dataHintsHandler, transparent = props.transparent, onClick = props.onClick;
221
+ var SIntersection = props.Element, styles = props.styles, data = props.data, name = props.name, dataKey = props.dataKey, dataHintsHandler = props.dataHintsHandler, transparent = props.transparent, onClick = props.onClick, onClickIntersectionRoot = props.onClickIntersectionRoot;
214
222
  dataHintsHandler.describeValueEntity(dataKey, name);
215
223
  var renderIntersection = React.useCallback(/* @__PURE__ */ React.forwardRef(function(props2, ref) {
216
224
  return /* @__PURE__ */ React.createElement(FadeInOut, _extends({
@@ -225,7 +233,7 @@ function Intersection(props) {
225
233
  "render": renderIntersection,
226
234
  "d": intersectionAreaPath(data),
227
235
  "transparent": transparent,
228
- "onClickCapture": onClick
236
+ "onClickCapture": callAllEventHandlers(onClickIntersectionRoot, onClick)
229
237
  }));
230
238
  }
231
239
  var VennTooltip = function VennTooltip2(props) {
@@ -12,12 +12,12 @@ var styles = (
12
12
  /*__reshadow_css_start__*/
13
13
  (sstyled.insert(
14
14
  /*__inner_css_start__*/
15
- ".___SPlotA11yModule_1in48_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1in48_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}",
15
+ ".___SPlotA11yModule_1vwo8_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1vwo8_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}",
16
16
  /*__inner_css_end__*/
17
- "1in48_gg_"
17
+ "1vwo8_gg_"
18
18
  ), /*__reshadow_css_end__*/
19
19
  {
20
- "__SPlotA11yModule": "___SPlotA11yModule_1in48_gg_"
20
+ "__SPlotA11yModule": "___SPlotA11yModule_1vwo8_gg_"
21
21
  })
22
22
  );
23
23
  var globalWasFocused = false;
@@ -15,12 +15,12 @@ var styles = (
15
15
  /*__reshadow_css_start__*/
16
16
  (sstyled.insert(
17
17
  /*__inner_css_start__*/
18
- ".___SPlotA11yView_1yh9o_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_1yh9o_gg_:focus,.___SPlotA11yView_1yh9o_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_1yh9o_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_1yh9o_gg_ table,.___SPlotA11yView_1yh9o_gg_ td,.___SPlotA11yView_1yh9o_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}",
18
+ ".___SPlotA11yView_1qted_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_1qted_gg_:focus,.___SPlotA11yView_1qted_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_1qted_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_1qted_gg_ table,.___SPlotA11yView_1qted_gg_ td,.___SPlotA11yView_1qted_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}",
19
19
  /*__inner_css_end__*/
20
- "1yh9o_gg_"
20
+ "1qted_gg_"
21
21
  ), /*__reshadow_css_end__*/
22
22
  {
23
- "__SPlotA11yView": "___SPlotA11yView_1yh9o_gg_"
23
+ "__SPlotA11yView": "___SPlotA11yView_1qted_gg_"
24
24
  })
25
25
  );
26
26
  var PlotA11yView = function PlotA11yView2(_ref3) {
@@ -380,11 +380,11 @@ var AbstractChart = /* @__PURE__ */ (function(_Component) {
380
380
  value: function render() {
381
381
  var _ref = this.asProps, _ref2;
382
382
  var SChart = Flex;
383
- var _this$asProps7 = this.asProps, styles = _this$asProps7.styles, plotWidth = _this$asProps7.plotWidth, plotHeight = _this$asProps7.plotHeight, data = _this$asProps7.data, patterns = _this$asProps7.patterns, a11yAltTextConfig = _this$asProps7.a11yAltTextConfig, duration = _this$asProps7.duration;
383
+ var _this$asProps7 = this.asProps, styles = _this$asProps7.styles, plotWidth = _this$asProps7.plotWidth, plotHeight = _this$asProps7.plotHeight, data = _this$asProps7.data, patterns = _this$asProps7.patterns, a11yAltTextConfig = _this$asProps7.a11yAltTextConfig, duration = _this$asProps7.duration, eventEmitter = _this$asProps7.eventEmitter;
384
384
  var _extractAriaProps = extractAriaProps(this.asProps), extractedAriaProps = _extractAriaProps.extractedAriaProps;
385
385
  return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(SChart, _ref2.cn("SChart", _objectSpread({}, assignProps({
386
386
  "gap": 5,
387
- "__excludeProps": ["data"],
387
+ "__excludeProps": ["data", "eventEmitter"],
388
388
  "role": "group"
389
389
  }, _ref))), this.renderLegend(), /* @__PURE__ */ React.createElement(Plot, _ref2.cn("Plot", _objectSpread({
390
390
  "data": data,
@@ -394,7 +394,8 @@ var AbstractChart = /* @__PURE__ */ (function(_Component) {
394
394
  "dataHints": this.dataHints,
395
395
  "a11yAltTextConfig": a11yAltTextConfig,
396
396
  "patterns": patterns,
397
- "duration": duration
397
+ "duration": duration,
398
+ "eventEmitter": eventEmitter
398
399
  }, extractedAriaProps)), this.renderAxis(), this.renderTooltip(), this.renderChart()));
399
400
  }
400
401
  }]);
@@ -18,14 +18,14 @@ var style = (
18
18
  /*__reshadow_css_start__*/
19
19
  (sstyled.insert(
20
20
  /*__inner_css_start__*/
21
- ".___SLegendFlex_1m4w0_gg_._direction_row_1m4w0_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_1m4w0_gg_._direction_column_1m4w0_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}",
21
+ ".___SLegendFlex_1huw2_gg_._direction_row_1huw2_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_1huw2_gg_._direction_column_1huw2_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}",
22
22
  /*__inner_css_end__*/
23
- "1m4w0_gg_"
23
+ "1huw2_gg_"
24
24
  ), /*__reshadow_css_end__*/
25
25
  {
26
- "__SLegendFlex": "___SLegendFlex_1m4w0_gg_",
27
- "_direction_row": "_direction_row_1m4w0_gg_",
28
- "_direction_column": "_direction_column_1m4w0_gg_"
26
+ "__SLegendFlex": "___SLegendFlex_1huw2_gg_",
27
+ "_direction_row": "_direction_row_1huw2_gg_",
28
+ "_direction_column": "_direction_column_1huw2_gg_"
29
29
  })
30
30
  );
31
31
  var LegendFlexRoot = /* @__PURE__ */ (function(_BaseLegend) {