@semcore/d3-chart 2.3.5 → 2.3.7

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 (159) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/lib/cjs/Area.js +9 -9
  3. package/lib/cjs/Axis.js +14 -14
  4. package/lib/cjs/Bar.js +8 -8
  5. package/lib/cjs/Bubble.js +10 -10
  6. package/lib/cjs/Donut.js +7 -7
  7. package/lib/cjs/Dots.js +9 -9
  8. package/lib/cjs/HorizontalBar.js +8 -8
  9. package/lib/cjs/Hover.js +4 -4
  10. package/lib/cjs/Line.js +8 -8
  11. package/lib/cjs/Plot.js +6 -5
  12. package/lib/cjs/Plot.js.map +1 -1
  13. package/lib/cjs/RadialTree.js +11 -11
  14. package/lib/cjs/ReferenceLine.js +10 -10
  15. package/lib/cjs/ScatterPlot.js +7 -7
  16. package/lib/cjs/Tooltip.js +8 -8
  17. package/lib/cjs/Venn.js +7 -7
  18. package/lib/cjs/a11y/PlotA11yModule.js +3 -3
  19. package/lib/cjs/a11y/PlotA11yView.js +4 -4
  20. package/lib/cjs/style/plot.shadow.css +4 -0
  21. package/lib/cjs/types/Area.d.js +2 -0
  22. package/lib/cjs/types/Area.d.js.map +1 -0
  23. package/lib/cjs/types/Axis.d.js +2 -0
  24. package/lib/cjs/types/Axis.d.js.map +1 -0
  25. package/lib/cjs/types/Bar.d.js +2 -0
  26. package/lib/cjs/types/Bar.d.js.map +1 -0
  27. package/lib/cjs/types/Bubble.d.js +2 -0
  28. package/lib/cjs/types/Bubble.d.js.map +1 -0
  29. package/lib/cjs/types/ClipPath.d.js +2 -0
  30. package/lib/cjs/types/ClipPath.d.js.map +1 -0
  31. package/lib/cjs/types/Donut.d.js +2 -0
  32. package/lib/cjs/types/Donut.d.js.map +1 -0
  33. package/lib/cjs/types/GroupBar.d.js +2 -0
  34. package/lib/cjs/types/GroupBar.d.js.map +1 -0
  35. package/lib/cjs/types/HorizontalBar.d.js +2 -0
  36. package/lib/cjs/types/HorizontalBar.d.js.map +1 -0
  37. package/lib/cjs/types/Hover.d.js +2 -0
  38. package/lib/cjs/types/Hover.d.js.map +1 -0
  39. package/lib/cjs/types/Line.d.js +2 -0
  40. package/lib/cjs/types/Line.d.js.map +1 -0
  41. package/lib/cjs/types/Plot.d.js +2 -0
  42. package/lib/cjs/types/Plot.d.js.map +1 -0
  43. package/lib/cjs/types/ReferenceLine.d.js +2 -0
  44. package/lib/cjs/types/ReferenceLine.d.js.map +1 -0
  45. package/lib/cjs/types/ResponsiveContainer.d.js +2 -0
  46. package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -0
  47. package/lib/cjs/types/ScatterPlot.d.js +2 -0
  48. package/lib/cjs/types/ScatterPlot.d.js.map +1 -0
  49. package/lib/cjs/types/StackBar.d.js +2 -0
  50. package/lib/cjs/types/StackBar.d.js.map +1 -0
  51. package/lib/cjs/types/StackedArea.d.js +2 -0
  52. package/lib/cjs/types/StackedArea.d.js.map +1 -0
  53. package/lib/cjs/types/Tooltip.d.js +2 -0
  54. package/lib/cjs/types/Tooltip.d.js.map +1 -0
  55. package/lib/cjs/types/Venn.d.js +2 -0
  56. package/lib/cjs/types/Venn.d.js.map +1 -0
  57. package/lib/cjs/types/context.d.js +2 -0
  58. package/lib/cjs/types/context.d.js.map +1 -0
  59. package/lib/cjs/types/index.d.js +378 -0
  60. package/lib/cjs/types/index.d.js.map +1 -0
  61. package/lib/es6/Area.js +9 -9
  62. package/lib/es6/Axis.js +14 -14
  63. package/lib/es6/Bar.js +8 -8
  64. package/lib/es6/Bubble.js +10 -10
  65. package/lib/es6/Donut.js +7 -7
  66. package/lib/es6/Dots.js +9 -9
  67. package/lib/es6/HorizontalBar.js +8 -8
  68. package/lib/es6/Hover.js +4 -4
  69. package/lib/es6/Line.js +8 -8
  70. package/lib/es6/Plot.js +6 -5
  71. package/lib/es6/Plot.js.map +1 -1
  72. package/lib/es6/RadialTree.js +11 -11
  73. package/lib/es6/ReferenceLine.js +10 -10
  74. package/lib/es6/ScatterPlot.js +7 -7
  75. package/lib/es6/Tooltip.js +8 -8
  76. package/lib/es6/Venn.js +7 -7
  77. package/lib/es6/a11y/PlotA11yModule.js +3 -3
  78. package/lib/es6/a11y/PlotA11yView.js +4 -4
  79. package/lib/es6/style/plot.shadow.css +4 -0
  80. package/lib/es6/types/Area.d.js +2 -0
  81. package/lib/es6/types/Area.d.js.map +1 -0
  82. package/lib/es6/types/Axis.d.js +2 -0
  83. package/lib/es6/types/Axis.d.js.map +1 -0
  84. package/lib/es6/types/Bar.d.js +2 -0
  85. package/lib/es6/types/Bar.d.js.map +1 -0
  86. package/lib/es6/types/Bubble.d.js +2 -0
  87. package/lib/es6/types/Bubble.d.js.map +1 -0
  88. package/lib/es6/types/ClipPath.d.js +2 -0
  89. package/lib/es6/types/ClipPath.d.js.map +1 -0
  90. package/lib/es6/types/Donut.d.js +2 -0
  91. package/lib/es6/types/Donut.d.js.map +1 -0
  92. package/lib/es6/types/GroupBar.d.js +2 -0
  93. package/lib/es6/types/GroupBar.d.js.map +1 -0
  94. package/lib/es6/types/HorizontalBar.d.js +2 -0
  95. package/lib/es6/types/HorizontalBar.d.js.map +1 -0
  96. package/lib/es6/types/Hover.d.js +2 -0
  97. package/lib/es6/types/Hover.d.js.map +1 -0
  98. package/lib/es6/types/Line.d.js +2 -0
  99. package/lib/es6/types/Line.d.js.map +1 -0
  100. package/lib/es6/types/Plot.d.js +2 -0
  101. package/lib/es6/types/Plot.d.js.map +1 -0
  102. package/lib/es6/types/ReferenceLine.d.js +2 -0
  103. package/lib/es6/types/ReferenceLine.d.js.map +1 -0
  104. package/lib/es6/types/ResponsiveContainer.d.js +2 -0
  105. package/lib/es6/types/ResponsiveContainer.d.js.map +1 -0
  106. package/lib/es6/types/ScatterPlot.d.js +2 -0
  107. package/lib/es6/types/ScatterPlot.d.js.map +1 -0
  108. package/lib/es6/types/StackBar.d.js +2 -0
  109. package/lib/es6/types/StackBar.d.js.map +1 -0
  110. package/lib/es6/types/StackedArea.d.js +2 -0
  111. package/lib/es6/types/StackedArea.d.js.map +1 -0
  112. package/lib/es6/types/Tooltip.d.js +2 -0
  113. package/lib/es6/types/Tooltip.d.js.map +1 -0
  114. package/lib/es6/types/Venn.d.js +2 -0
  115. package/lib/es6/types/Venn.d.js.map +1 -0
  116. package/lib/es6/types/context.d.js +2 -0
  117. package/lib/es6/types/context.d.js.map +1 -0
  118. package/lib/{cjs/types/index.d.ts → es6/types/index.d.js} +4 -22
  119. package/lib/es6/types/index.d.js.map +1 -0
  120. package/package.json +5 -2
  121. package/lib/cjs/types/Area.d.ts +0 -48
  122. package/lib/cjs/types/Axis.d.ts +0 -64
  123. package/lib/cjs/types/Bar.d.ts +0 -52
  124. package/lib/cjs/types/Bubble.d.ts +0 -32
  125. package/lib/cjs/types/ClipPath.d.ts +0 -26
  126. package/lib/cjs/types/Donut.d.ts +0 -46
  127. package/lib/cjs/types/GroupBar.d.ts +0 -20
  128. package/lib/cjs/types/HorizontalBar.d.ts +0 -29
  129. package/lib/cjs/types/Hover.d.ts +0 -15
  130. package/lib/cjs/types/Line.d.ts +0 -50
  131. package/lib/cjs/types/Plot.d.ts +0 -91
  132. package/lib/cjs/types/ReferenceLine.d.ts +0 -31
  133. package/lib/cjs/types/ResponsiveContainer.d.ts +0 -20
  134. package/lib/cjs/types/ScatterPlot.d.ts +0 -27
  135. package/lib/cjs/types/StackBar.d.ts +0 -26
  136. package/lib/cjs/types/StackedArea.d.ts +0 -26
  137. package/lib/cjs/types/Tooltip.d.ts +0 -33
  138. package/lib/cjs/types/Venn.d.ts +0 -45
  139. package/lib/cjs/types/context.d.ts +0 -6
  140. package/lib/es6/types/Area.d.ts +0 -48
  141. package/lib/es6/types/Axis.d.ts +0 -64
  142. package/lib/es6/types/Bar.d.ts +0 -52
  143. package/lib/es6/types/Bubble.d.ts +0 -32
  144. package/lib/es6/types/ClipPath.d.ts +0 -26
  145. package/lib/es6/types/Donut.d.ts +0 -46
  146. package/lib/es6/types/GroupBar.d.ts +0 -20
  147. package/lib/es6/types/HorizontalBar.d.ts +0 -29
  148. package/lib/es6/types/Hover.d.ts +0 -15
  149. package/lib/es6/types/Line.d.ts +0 -50
  150. package/lib/es6/types/Plot.d.ts +0 -91
  151. package/lib/es6/types/ReferenceLine.d.ts +0 -31
  152. package/lib/es6/types/ResponsiveContainer.d.ts +0 -20
  153. package/lib/es6/types/ScatterPlot.d.ts +0 -27
  154. package/lib/es6/types/StackBar.d.ts +0 -26
  155. package/lib/es6/types/StackedArea.d.ts +0 -26
  156. package/lib/es6/types/Tooltip.d.ts +0 -33
  157. package/lib/es6/types/Venn.d.ts +0 -45
  158. package/lib/es6/types/context.d.ts +0 -6
  159. package/lib/es6/types/index.d.ts +0 -59
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [2.3.7] - 2022-10-05
6
+
7
+ ### Fixed
8
+
9
+ - Ensured a11y module do not break mouse interactions.
10
+
11
+ ## [2.3.6] - 2022-10-04
12
+
13
+ ### Changed
14
+
15
+ - Version patch update due to children dependencies update (`@semcore/animation` [1.5.10 ~> 1.5.11], `@semcore/utils` [3.37.1 ~> 3.37.2]).
16
+
5
17
  ## [2.3.5] - 2022-09-23
6
18
 
7
19
  ### Fixed
package/lib/cjs/Area.js CHANGED
@@ -48,18 +48,18 @@ var style = (
48
48
  /*__reshadow_css_start__*/
49
49
  _core.sstyled.insert(
50
50
  /*__inner_css_start__*/
51
- ".___SArea_j39bq_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_j39bq_gg_.__color_j39bq_gg_{fill:var(--color_j39bq)}.___SAreaLine_j39bq_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_j39bq_gg_.__color_j39bq_gg_{stroke:var(--color_j39bq)}.___SArea_j39bq_gg_,.___SAreaLine_j39bq_gg_{transition-property:d;transition-duration:var(--duration_j39bq);transition-timing-function:ease-in-out}.___SNull_j39bq_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_j39bq_gg_.__hide_j39bq_gg_{display:none}"
51
+ ".___SArea_4sx8f_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_4sx8f_gg_.__color_4sx8f_gg_{fill:var(--color_4sx8f)}.___SAreaLine_4sx8f_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_4sx8f_gg_.__color_4sx8f_gg_{stroke:var(--color_4sx8f)}.___SArea_4sx8f_gg_,.___SAreaLine_4sx8f_gg_{transition-property:d;transition-duration:var(--duration_4sx8f);transition-timing-function:ease-in-out}.___SNull_4sx8f_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_4sx8f_gg_.__hide_4sx8f_gg_{display:none}"
52
52
  /*__inner_css_end__*/
53
- , "j39bq_gg_")
53
+ , "4sx8f_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "__SArea": "___SArea_j39bq_gg_",
57
- "_color": "__color_j39bq_gg_",
58
- "--color": "--color_j39bq",
59
- "__SAreaLine": "___SAreaLine_j39bq_gg_",
60
- "--duration": "--duration_j39bq",
61
- "__SNull": "___SNull_j39bq_gg_",
62
- "_hide": "__hide_j39bq_gg_"
56
+ "__SArea": "___SArea_4sx8f_gg_",
57
+ "_color": "__color_4sx8f_gg_",
58
+ "--color": "--color_4sx8f",
59
+ "__SAreaLine": "___SAreaLine_4sx8f_gg_",
60
+ "--duration": "--duration_4sx8f",
61
+ "__SNull": "___SNull_4sx8f_gg_",
62
+ "_hide": "__hide_4sx8f_gg_"
63
63
  });
64
64
 
65
65
  var AreaRoot = /*#__PURE__*/function (_Component) {
package/lib/cjs/Axis.js CHANGED
@@ -44,23 +44,23 @@ var style = (
44
44
  /*__reshadow_css_start__*/
45
45
  _core.sstyled.insert(
46
46
  /*__inner_css_start__*/
47
- ".___SAxis_1potz_gg_{stroke:#c4c7cf}.___SAxis_1potz_gg_.__hide_1potz_gg_{display:none}.___STick_1potz_gg_{font-size:12px;fill:#6c6e79}.___STick_1potz_gg_.__hide_1potz_gg_{display:none}.___SGrid_1potz_gg_{fill:transparent;stroke:#e0e1e9}.___STitle_1potz_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1potz)}.___STitle_1potz_gg_._position_top_1potz_gg_{text-anchor:middle}.___STitle_1potz_gg_._position_bottom_1potz_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1potz_gg_._position_right_1potz_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1potz_gg_._position_left_1potz_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_1potz_gg_._position_top_1potz_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_1potz_gg_._position_bottom_1potz_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_1potz_gg_._position_right_1potz_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_1potz_gg_._position_left_1potz_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_1potz_gg_._position_custom_0_1potz_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_1potz_gg_._position_custom_1_1potz_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
47
+ ".___SAxis_11c1w_gg_{stroke:#c4c7cf}.___SAxis_11c1w_gg_.__hide_11c1w_gg_{display:none}.___STick_11c1w_gg_{font-size:12px;fill:#6c6e79}.___STick_11c1w_gg_.__hide_11c1w_gg_{display:none}.___SGrid_11c1w_gg_{fill:transparent;stroke:#e0e1e9}.___STitle_11c1w_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_11c1w)}.___STitle_11c1w_gg_._position_top_11c1w_gg_{text-anchor:middle}.___STitle_11c1w_gg_._position_bottom_11c1w_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_11c1w_gg_._position_right_11c1w_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_11c1w_gg_._position_left_11c1w_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_11c1w_gg_._position_top_11c1w_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_11c1w_gg_._position_bottom_11c1w_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_11c1w_gg_._position_right_11c1w_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_11c1w_gg_._position_left_11c1w_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_11c1w_gg_._position_custom_0_11c1w_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_11c1w_gg_._position_custom_1_11c1w_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
48
48
  /*__inner_css_end__*/
49
- , "1potz_gg_")
49
+ , "11c1w_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SAxis": "___SAxis_1potz_gg_",
53
- "_hide": "__hide_1potz_gg_",
54
- "__STick": "___STick_1potz_gg_",
55
- "__SGrid": "___SGrid_1potz_gg_",
56
- "__STitle": "___STitle_1potz_gg_",
57
- "--transform-origin": "--transform-origin_1potz",
58
- "_position_top": "_position_top_1potz_gg_",
59
- "_position_bottom": "_position_bottom_1potz_gg_",
60
- "_position_right": "_position_right_1potz_gg_",
61
- "_position_left": "_position_left_1potz_gg_",
62
- "_position_custom_0": "_position_custom_0_1potz_gg_",
63
- "_position_custom_1": "_position_custom_1_1potz_gg_"
52
+ "__SAxis": "___SAxis_11c1w_gg_",
53
+ "_hide": "__hide_11c1w_gg_",
54
+ "__STick": "___STick_11c1w_gg_",
55
+ "__SGrid": "___SGrid_11c1w_gg_",
56
+ "__STitle": "___STitle_11c1w_gg_",
57
+ "--transform-origin": "--transform-origin_11c1w",
58
+ "_position_top": "_position_top_11c1w_gg_",
59
+ "_position_bottom": "_position_bottom_11c1w_gg_",
60
+ "_position_right": "_position_right_11c1w_gg_",
61
+ "_position_left": "_position_left_11c1w_gg_",
62
+ "_position_custom_0": "_position_custom_0_11c1w_gg_",
63
+ "_position_custom_1": "_position_custom_1_11c1w_gg_"
64
64
  });
65
65
  var CUSTOM_0 = Symbol('custom_0');
66
66
  var CUSTOM_1 = Symbol('custom_1');
package/lib/cjs/Bar.js CHANGED
@@ -44,17 +44,17 @@ var style = (
44
44
  /*__reshadow_css_start__*/
45
45
  _core.sstyled.insert(
46
46
  /*__inner_css_start__*/
47
- ".___SBar_wj6ma_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_wj6ma);transition-timing-function:ease-in-out}.___SBar_wj6ma_gg_.__color_wj6ma_gg_{fill:var(--color_wj6ma)}.___SBar_wj6ma_gg_.__hide_wj6ma_gg_{display:none}.___SBackground_wj6ma_gg_{fill:#c4c7cf}"
47
+ ".___SBar_1i08o_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_1i08o);transition-timing-function:ease-in-out}.___SBar_1i08o_gg_.__color_1i08o_gg_{fill:var(--color_1i08o)}.___SBar_1i08o_gg_.__hide_1i08o_gg_{display:none}.___SBackground_1i08o_gg_{fill:#c4c7cf}"
48
48
  /*__inner_css_end__*/
49
- , "wj6ma_gg_")
49
+ , "1i08o_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SBar": "___SBar_wj6ma_gg_",
53
- "--duration": "--duration_wj6ma",
54
- "_color": "__color_wj6ma_gg_",
55
- "--color": "--color_wj6ma",
56
- "_hide": "__hide_wj6ma_gg_",
57
- "__SBackground": "___SBackground_wj6ma_gg_"
52
+ "__SBar": "___SBar_1i08o_gg_",
53
+ "--duration": "--duration_1i08o",
54
+ "_color": "__color_1i08o_gg_",
55
+ "--color": "--color_1i08o",
56
+ "_hide": "__hide_1i08o_gg_",
57
+ "__SBackground": "___SBackground_1i08o_gg_"
58
58
  });
59
59
 
60
60
  var BarRoot = /*#__PURE__*/function (_Component) {
package/lib/cjs/Bubble.js CHANGED
@@ -56,19 +56,19 @@ var style = (
56
56
  /*__reshadow_css_start__*/
57
57
  _core.sstyled.insert(
58
58
  /*__inner_css_start__*/
59
- ".___SBubble_1ana9_gg_{fill:#2bb3ff;stroke:#fff;stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_1ana9);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_1ana9_gg_:hover{opacity:.8}.___SBubble_1ana9_gg_.__color_1ana9_gg_{fill:var(--color_1ana9)}.___SCenter_1ana9_gg_{text-anchor:middle;font-size:11px;stroke:#2bb3ff}.___SCenter_1ana9_gg_.__color_1ana9_gg_{stroke:var(--color_1ana9)}.___SLabel_1ana9_gg_{fill:#2bb3ff}.___SLabel_1ana9_gg_._position_right_1ana9_gg_{text-anchor:end}.___SLabel_1ana9_gg_._position_left_1ana9_gg_{text-anchor:start}.___SLabel_1ana9_gg_.__color_1ana9_gg_{fill:var(--color_1ana9)}"
59
+ ".___SBubble_a5j78_gg_{fill:#2bb3ff;stroke:#fff;stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_a5j78);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_a5j78_gg_:hover{opacity:.8}.___SBubble_a5j78_gg_.__color_a5j78_gg_{fill:var(--color_a5j78)}.___SCenter_a5j78_gg_{text-anchor:middle;font-size:11px;stroke:#2bb3ff}.___SCenter_a5j78_gg_.__color_a5j78_gg_{stroke:var(--color_a5j78)}.___SLabel_a5j78_gg_{fill:#2bb3ff}.___SLabel_a5j78_gg_._position_right_a5j78_gg_{text-anchor:end}.___SLabel_a5j78_gg_._position_left_a5j78_gg_{text-anchor:start}.___SLabel_a5j78_gg_.__color_a5j78_gg_{fill:var(--color_a5j78)}"
60
60
  /*__inner_css_end__*/
61
- , "1ana9_gg_")
61
+ , "a5j78_gg_")
62
62
  /*__reshadow_css_end__*/
63
63
  , {
64
- "__SBubble": "___SBubble_1ana9_gg_",
65
- "--duration": "--duration_1ana9",
66
- "_color": "__color_1ana9_gg_",
67
- "--color": "--color_1ana9",
68
- "__SCenter": "___SCenter_1ana9_gg_",
69
- "__SLabel": "___SLabel_1ana9_gg_",
70
- "_position_right": "_position_right_1ana9_gg_",
71
- "_position_left": "_position_left_1ana9_gg_"
64
+ "__SBubble": "___SBubble_a5j78_gg_",
65
+ "--duration": "--duration_a5j78",
66
+ "_color": "__color_a5j78_gg_",
67
+ "--color": "--color_a5j78",
68
+ "__SCenter": "___SCenter_a5j78_gg_",
69
+ "__SLabel": "___SLabel_a5j78_gg_",
70
+ "_position_right": "_position_right_a5j78_gg_",
71
+ "_position_left": "_position_left_a5j78_gg_"
72
72
  });
73
73
 
74
74
  var BubbleRoot = /*#__PURE__*/function (_Component) {
package/lib/cjs/Donut.js CHANGED
@@ -66,16 +66,16 @@ var style = (
66
66
  /*__reshadow_css_start__*/
67
67
  _core.sstyled.insert(
68
68
  /*__inner_css_start__*/
69
- ".___SPie_1weh6_gg_{stroke:#fff;fill:#2bb3ff}.___SPie_1weh6_gg_.__color_1weh6_gg_{fill:var(--color_1weh6)}.___SEmptyData_1weh6_gg_{fill:#e0e1e9}.___SEmptyData_1weh6_gg_.__color_1weh6_gg_{fill:var(--color_1weh6)}.___SLabel_1weh6_gg_{text-anchor:middle;vertical-anchor:middle}"
69
+ ".___SPie_147zl_gg_{stroke:#fff;fill:#2bb3ff}.___SPie_147zl_gg_.__color_147zl_gg_{fill:var(--color_147zl)}.___SEmptyData_147zl_gg_{fill:#e0e1e9}.___SEmptyData_147zl_gg_.__color_147zl_gg_{fill:var(--color_147zl)}.___SLabel_147zl_gg_{text-anchor:middle;vertical-anchor:middle}"
70
70
  /*__inner_css_end__*/
71
- , "1weh6_gg_")
71
+ , "147zl_gg_")
72
72
  /*__reshadow_css_end__*/
73
73
  , {
74
- "__SPie": "___SPie_1weh6_gg_",
75
- "_color": "__color_1weh6_gg_",
76
- "--color": "--color_1weh6",
77
- "__SEmptyData": "___SEmptyData_1weh6_gg_",
78
- "__SLabel": "___SLabel_1weh6_gg_"
74
+ "__SPie": "___SPie_147zl_gg_",
75
+ "_color": "__color_147zl_gg_",
76
+ "--color": "--color_147zl",
77
+ "__SEmptyData": "___SEmptyData_147zl_gg_",
78
+ "__SLabel": "___SLabel_147zl_gg_"
79
79
  });
80
80
  var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
81
81
 
package/lib/cjs/Dots.js CHANGED
@@ -32,18 +32,18 @@ var style = (
32
32
  /*__reshadow_css_start__*/
33
33
  _core.sstyled.insert(
34
34
  /*__inner_css_start__*/
35
- ".___SDots_18pu7_gg_ .___SDot_18pu7_gg_{transition-duration:var(--duration_18pu7)}.___SDot_18pu7_gg_{stroke-width:2px;stroke:#fff;r:6px;fill:#2bb3ff;transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_18pu7_gg_.__hide_18pu7_gg_{display:none}.___SDot_18pu7_gg_.__active_18pu7_gg_{r:8px}.___SDot_18pu7_gg_.__color_18pu7_gg_{fill:var(--color_18pu7)}"
35
+ ".___SDots_a6bow_gg_ .___SDot_a6bow_gg_{transition-duration:var(--duration_a6bow)}.___SDot_a6bow_gg_{stroke-width:2px;stroke:#fff;r:6px;fill:#2bb3ff;transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_a6bow_gg_.__hide_a6bow_gg_{display:none}.___SDot_a6bow_gg_.__active_a6bow_gg_{r:8px}.___SDot_a6bow_gg_.__color_a6bow_gg_{fill:var(--color_a6bow)}"
36
36
  /*__inner_css_end__*/
37
- , "18pu7_gg_")
37
+ , "a6bow_gg_")
38
38
  /*__reshadow_css_end__*/
39
39
  , {
40
- "__SDots": "___SDots_18pu7_gg_",
41
- "__SDot": "___SDot_18pu7_gg_",
42
- "--duration": "--duration_18pu7",
43
- "_hide": "__hide_18pu7_gg_",
44
- "_active": "__active_18pu7_gg_",
45
- "_color": "__color_18pu7_gg_",
46
- "--color": "--color_18pu7"
40
+ "__SDots": "___SDots_a6bow_gg_",
41
+ "__SDot": "___SDot_a6bow_gg_",
42
+ "--duration": "--duration_a6bow",
43
+ "_hide": "__hide_a6bow_gg_",
44
+ "_active": "__active_a6bow_gg_",
45
+ "_color": "__color_a6bow_gg_",
46
+ "--color": "--color_a6bow"
47
47
  });
48
48
  var EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];
49
49
 
@@ -42,17 +42,17 @@ var style = (
42
42
  /*__reshadow_css_start__*/
43
43
  _core.sstyled.insert(
44
44
  /*__inner_css_start__*/
45
- ".___SBar_wj6ma_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_wj6ma);transition-timing-function:ease-in-out}.___SBar_wj6ma_gg_.__color_wj6ma_gg_{fill:var(--color_wj6ma)}.___SBar_wj6ma_gg_.__hide_wj6ma_gg_{display:none}.___SBackground_wj6ma_gg_{fill:#c4c7cf}"
45
+ ".___SBar_1i08o_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_1i08o);transition-timing-function:ease-in-out}.___SBar_1i08o_gg_.__color_1i08o_gg_{fill:var(--color_1i08o)}.___SBar_1i08o_gg_.__hide_1i08o_gg_{display:none}.___SBackground_1i08o_gg_{fill:#c4c7cf}"
46
46
  /*__inner_css_end__*/
47
- , "wj6ma_gg_")
47
+ , "1i08o_gg_")
48
48
  /*__reshadow_css_end__*/
49
49
  , {
50
- "__SBar": "___SBar_wj6ma_gg_",
51
- "--duration": "--duration_wj6ma",
52
- "_color": "__color_wj6ma_gg_",
53
- "--color": "--color_wj6ma",
54
- "_hide": "__hide_wj6ma_gg_",
55
- "__SBackground": "___SBackground_wj6ma_gg_"
50
+ "__SBar": "___SBar_1i08o_gg_",
51
+ "--duration": "--duration_1i08o",
52
+ "_color": "__color_1i08o_gg_",
53
+ "--color": "--color_1i08o",
54
+ "_hide": "__hide_1i08o_gg_",
55
+ "__SBackground": "___SBackground_1i08o_gg_"
56
56
  });
57
57
 
58
58
  var HorizontalBarRoot = /*#__PURE__*/function (_Component) {
package/lib/cjs/Hover.js CHANGED
@@ -44,13 +44,13 @@ var style = (
44
44
  /*__reshadow_css_start__*/
45
45
  _core.sstyled.insert(
46
46
  /*__inner_css_start__*/
47
- ".___SHoverLine_guxll_gg_{stroke:#a9abb6}.___SHoverRect_guxll_gg_{fill:rgba(196,199,207,.3)}"
47
+ ".___SHoverLine_33u57_gg_{stroke:#a9abb6}.___SHoverRect_33u57_gg_{fill:rgba(196,199,207,.3)}"
48
48
  /*__inner_css_end__*/
49
- , "guxll_gg_")
49
+ , "33u57_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SHoverLine": "___SHoverLine_guxll_gg_",
53
- "__SHoverRect": "___SHoverRect_guxll_gg_"
52
+ "__SHoverLine": "___SHoverLine_33u57_gg_",
53
+ "__SHoverRect": "___SHoverRect_33u57_gg_"
54
54
  });
55
55
 
56
56
  var Hover = /*#__PURE__*/function (_Component) {
package/lib/cjs/Line.js CHANGED
@@ -46,17 +46,17 @@ var style = (
46
46
  /*__reshadow_css_start__*/
47
47
  _core.sstyled.insert(
48
48
  /*__inner_css_start__*/
49
- ".___SLine_gfaz7_gg_{fill:transparent;stroke-width:3;stroke:#2bb3ff;transition-property:d;transition-duration:var(--duration_gfaz7);transition-timing-function:ease-in-out}.___SLine_gfaz7_gg_.__color_gfaz7_gg_{stroke:var(--color_gfaz7)}.___SLine_gfaz7_gg_.__hide_gfaz7_gg_{display:none}.___SNull_gfaz7_gg_{fill:transparent;stroke:#c4c7cf;stroke-dasharray:4}.___SNull_gfaz7_gg_.__hide_gfaz7_gg_{display:none}"
49
+ ".___SLine_6d5fd_gg_{fill:transparent;stroke-width:3;stroke:#2bb3ff;transition-property:d;transition-duration:var(--duration_6d5fd);transition-timing-function:ease-in-out}.___SLine_6d5fd_gg_.__color_6d5fd_gg_{stroke:var(--color_6d5fd)}.___SLine_6d5fd_gg_.__hide_6d5fd_gg_{display:none}.___SNull_6d5fd_gg_{fill:transparent;stroke:#c4c7cf;stroke-dasharray:4}.___SNull_6d5fd_gg_.__hide_6d5fd_gg_{display:none}"
50
50
  /*__inner_css_end__*/
51
- , "gfaz7_gg_")
51
+ , "6d5fd_gg_")
52
52
  /*__reshadow_css_end__*/
53
53
  , {
54
- "__SLine": "___SLine_gfaz7_gg_",
55
- "--duration": "--duration_gfaz7",
56
- "_color": "__color_gfaz7_gg_",
57
- "--color": "--color_gfaz7",
58
- "_hide": "__hide_gfaz7_gg_",
59
- "__SNull": "___SNull_gfaz7_gg_"
54
+ "__SLine": "___SLine_6d5fd_gg_",
55
+ "--duration": "--duration_6d5fd",
56
+ "_color": "__color_6d5fd_gg_",
57
+ "--color": "--color_6d5fd",
58
+ "_hide": "__hide_6d5fd_gg_",
59
+ "__SNull": "___SNull_6d5fd_gg_"
60
60
  });
61
61
 
62
62
  var LineRoot = /*#__PURE__*/function (_Component) {
package/lib/cjs/Plot.js CHANGED
@@ -58,13 +58,13 @@ var style = (
58
58
  /*__reshadow_css_start__*/
59
59
  _core.sstyled.insert(
60
60
  /*__inner_css_start__*/
61
- ".___SPlot_1ivna_gg_{overflow:hidden}.___SPlot_1ivna_gg_:active,.___SPlot_1ivna_gg_:focus{outline:0;text-decoration:none}.___SPlot_1ivna_gg_.__keyboardFocused_1ivna_gg_{border:1px solid #008ff8;box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}"
61
+ ".___SPlot_1rzoy_gg_{overflow:hidden}.___SPlot_1rzoy_gg_:active,.___SPlot_1rzoy_gg_:focus{outline:0;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_1rzoy_gg_.__keyboardFocused_1rzoy_gg_{border:1px solid #008ff8;box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}"
62
62
  /*__inner_css_end__*/
63
- , "1ivna_gg_")
63
+ , "1rzoy_gg_")
64
64
  /*__reshadow_css_end__*/
65
65
  , {
66
- "__SPlot": "___SPlot_1ivna_gg_",
67
- "_keyboardFocused": "__keyboardFocused_1ivna_gg_"
66
+ "__SPlot": "___SPlot_1rzoy_gg_",
67
+ "_keyboardFocused": "__keyboardFocused_1rzoy_gg_"
68
68
  });
69
69
 
70
70
  var PlotRoot = /*#__PURE__*/function (_Component) {
@@ -176,7 +176,8 @@ var PlotRoot = /*#__PURE__*/function (_Component) {
176
176
  "tabIndex": 0
177
177
  }, _ref))), /*#__PURE__*/_react["default"].createElement(Children, _ref2.cn("Children", {})), /*#__PURE__*/_react["default"].createElement("foreignObject", _ref2.cn("foreignObject", {
178
178
  "width": "100%",
179
- "height": "100%"
179
+ "height": "100%",
180
+ "data-aria-only": true
180
181
  }), /*#__PURE__*/_react["default"].createElement(_PlotA11yModule.PlotA11yModule, _ref2.cn("PlotA11yModule", {
181
182
  "id": this.plotId,
182
183
  "data": data,
@@ -1 +1 @@
1
- {"version":3,"file":"Plot.js","names":["PlotRoot","props","uniqueId","React","createRef","makeDataHintsContainer","makeDataHintsHandlers","dataStructureHints","e","scale","asProps","eventEmitter","emit","xScale","yScale","eventToPoint","rootRef","current","pX","pY","range","minX","maxX","maxY","minY","EventEmitter","data","width","height","yScaleDomain","domain","length","dataHintsHandler","setPointsDensity","Math","abs","$rootProps","size","SPlot","Box","styles","Children","a11yAltTextConfig","label","locale","sstyled","handlerMouseMove","handlerMouseLeave","plotId","Component","style","keyboardFocusEnhance","createComponent"],"sources":["../../src/Plot.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport EventEmitter from '@semcore/utils/lib/eventEmitter';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { eventToPoint, uniqueId } from './utils';\nimport { PlotA11yModule } from './a11y/PlotA11yModule';\nimport { makeDataHintsHandlers, makeDataHintsContainer } from './a11y/hints';\n\nimport style from './style/plot.shadow.css';\n\nclass PlotRoot extends Component {\n static displayName = 'Plot';\n static style = style;\n\n constructor(props) {\n super(props);\n this.eventEmitter = props.eventEmitter || new EventEmitter();\n }\n\n static defaultProps = () => ({\n width: 0,\n height: 0,\n });\n\n static enhance = [keyboardFocusEnhance()];\n\n plotId = uniqueId();\n\n rootRef = React.createRef();\n\n dataStructureHints = makeDataHintsContainer();\n dataHintsHandler = makeDataHintsHandlers(this.dataStructureHints);\n\n handlerMouseMove = (e) => {\n const { scale } = this.asProps;\n this.eventEmitter.emit(`onMouseMoveRoot`, e);\n\n if (scale) {\n const [xScale, yScale] = scale;\n const [pX, pY] = eventToPoint(e, this.rootRef.current);\n const [minX, maxX] = xScale.range();\n const [maxY, minY] = yScale.range();\n\n if (pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) {\n this.eventEmitter.emit('onMouseMoveChart', e);\n } else {\n this.eventEmitter.emit('onMouseLeaveChart', e);\n }\n }\n };\n\n handlerMouseLeave = (e) => {\n this.eventEmitter.emit(`onMouseLeaveRoot`, e);\n this.eventEmitter.emit('onMouseLeaveChart', e);\n };\n\n setContext() {\n const { scale, data, width, height } = this.asProps;\n\n const yScaleDomain = scale?.[1]?.domain?.();\n if (yScaleDomain?.length && data?.length) {\n this.dataHintsHandler.setPointsDensity(\n data.length / width,\n Math.abs(yScaleDomain[1] - yScaleDomain[0]) / height,\n );\n }\n\n return {\n $rootProps: {\n size: [width, height],\n data: data,\n scale: scale,\n eventEmitter: this.eventEmitter,\n rootRef: this.rootRef,\n dataHintsHandler: this.dataHintsHandler,\n },\n };\n }\n\n render() {\n const SPlot = Root;\n const { styles, width, height, Children, data, a11yAltTextConfig, label, locale } =\n this.asProps;\n\n if (!width || !height) return null;\n\n return sstyled(styles)(\n <>\n <SPlot\n render={Box}\n tag=\"svg\"\n __excludeProps={['data', 'scale']}\n ref={this.rootRef}\n onMouseMove={this.handlerMouseMove}\n onMouseLeave={this.handlerMouseLeave}\n aria-label={label}\n tabIndex={0}\n >\n <Children />\n <foreignObject width=\"100%\" height=\"100%\">\n <PlotA11yModule\n id={this.plotId}\n data={data}\n plotLabel={label}\n locale={locale}\n plotRef={this.rootRef}\n hints={this.dataStructureHints}\n config={a11yAltTextConfig}\n />\n </foreignObject>\n </SPlot>\n </>,\n );\n }\n}\n\nexport default createComponent(PlotRoot);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIMA,Q;;;;;EAIJ,kBAAYC,KAAZ,EAAmB;IAAA;;IAAA;IACjB,0BAAMA,KAAN;IADiB,2FAYV,IAAAC,eAAA,GAZU;IAAA,yGAcTC,iBAAA,CAAMC,SAAN,EAdS;IAAA,uGAgBE,IAAAC,6BAAA,GAhBF;IAAA,qGAiBA,IAAAC,4BAAA,EAAsB,MAAKC,kBAA3B,CAjBA;IAAA,qGAmBA,UAACC,CAAD,EAAO;MACxB,IAAQC,KAAR,GAAkB,MAAKC,OAAvB,CAAQD,KAAR;;MACA,MAAKE,YAAL,CAAkBC,IAAlB,oBAA0CJ,CAA1C;;MAEA,IAAIC,KAAJ,EAAW;QACT,6CAAyBA,KAAzB;QAAA,IAAOI,MAAP;QAAA,IAAeC,MAAf;;QACA,oBAAiB,IAAAC,mBAAA,EAAaP,CAAb,EAAgB,MAAKQ,OAAL,CAAaC,OAA7B,CAAjB;QAAA;QAAA,IAAOC,EAAP;QAAA,IAAWC,EAAX;;QACA,oBAAqBN,MAAM,CAACO,KAAP,EAArB;QAAA;QAAA,IAAOC,IAAP;QAAA,IAAaC,IAAb;;QACA,oBAAqBR,MAAM,CAACM,KAAP,EAArB;QAAA;QAAA,IAAOG,IAAP;QAAA,IAAaC,IAAb;;QAEA,IAAIN,EAAE,IAAIG,IAAN,IAAcH,EAAE,IAAII,IAApB,IAA4BH,EAAE,IAAIK,IAAlC,IAA0CL,EAAE,IAAII,IAApD,EAA0D;UACxD,MAAKZ,YAAL,CAAkBC,IAAlB,CAAuB,kBAAvB,EAA2CJ,CAA3C;QACD,CAFD,MAEO;UACL,MAA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hB,C"}
1
+ {"version":3,"file":"Plot.js","names":["PlotRoot","props","uniqueId","React","createRef","makeDataHintsContainer","makeDataHintsHandlers","dataStructureHints","e","scale","asProps","eventEmitter","emit","xScale","yScale","eventToPoint","rootRef","current","pX","pY","range","minX","maxX","maxY","minY","EventEmitter","data","width","height","yScaleDomain","domain","length","dataHintsHandler","setPointsDensity","Math","abs","$rootProps","size","SPlot","Box","styles","Children","a11yAltTextConfig","label","locale","sstyled","handlerMouseMove","handlerMouseLeave","plotId","Component","style","keyboardFocusEnhance","createComponent"],"sources":["../../src/Plot.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport EventEmitter from '@semcore/utils/lib/eventEmitter';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { eventToPoint, uniqueId } from './utils';\nimport { PlotA11yModule } from './a11y/PlotA11yModule';\nimport { makeDataHintsHandlers, makeDataHintsContainer } from './a11y/hints';\n\nimport style from './style/plot.shadow.css';\n\nclass PlotRoot extends Component {\n static displayName = 'Plot';\n static style = style;\n\n constructor(props) {\n super(props);\n this.eventEmitter = props.eventEmitter || new EventEmitter();\n }\n\n static defaultProps = () => ({\n width: 0,\n height: 0,\n });\n\n static enhance = [keyboardFocusEnhance()];\n\n plotId = uniqueId();\n\n rootRef = React.createRef();\n\n dataStructureHints = makeDataHintsContainer();\n dataHintsHandler = makeDataHintsHandlers(this.dataStructureHints);\n\n handlerMouseMove = (e) => {\n const { scale } = this.asProps;\n this.eventEmitter.emit(`onMouseMoveRoot`, e);\n\n if (scale) {\n const [xScale, yScale] = scale;\n const [pX, pY] = eventToPoint(e, this.rootRef.current);\n const [minX, maxX] = xScale.range();\n const [maxY, minY] = yScale.range();\n\n if (pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) {\n this.eventEmitter.emit('onMouseMoveChart', e);\n } else {\n this.eventEmitter.emit('onMouseLeaveChart', e);\n }\n }\n };\n\n handlerMouseLeave = (e) => {\n this.eventEmitter.emit(`onMouseLeaveRoot`, e);\n this.eventEmitter.emit('onMouseLeaveChart', e);\n };\n\n setContext() {\n const { scale, data, width, height } = this.asProps;\n\n const yScaleDomain = scale?.[1]?.domain?.();\n if (yScaleDomain?.length && data?.length) {\n this.dataHintsHandler.setPointsDensity(\n data.length / width,\n Math.abs(yScaleDomain[1] - yScaleDomain[0]) / height,\n );\n }\n\n return {\n $rootProps: {\n size: [width, height],\n data: data,\n scale: scale,\n eventEmitter: this.eventEmitter,\n rootRef: this.rootRef,\n dataHintsHandler: this.dataHintsHandler,\n },\n };\n }\n\n render() {\n const SPlot = Root;\n const { styles, width, height, Children, data, a11yAltTextConfig, label, locale } =\n this.asProps;\n\n if (!width || !height) return null;\n\n return sstyled(styles)(\n <>\n <SPlot\n render={Box}\n tag=\"svg\"\n __excludeProps={['data', 'scale']}\n ref={this.rootRef}\n onMouseMove={this.handlerMouseMove}\n onMouseLeave={this.handlerMouseLeave}\n aria-label={label}\n tabIndex={0}\n >\n <Children />\n <foreignObject width=\"100%\" height=\"100%\" data-aria-only>\n <PlotA11yModule\n id={this.plotId}\n data={data}\n plotLabel={label}\n locale={locale}\n plotRef={this.rootRef}\n hints={this.dataStructureHints}\n config={a11yAltTextConfig}\n />\n </foreignObject>\n </SPlot>\n </>,\n );\n }\n}\n\nexport default createComponent(PlotRoot);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIMA,Q;;;;;EAIJ,kBAAYC,KAAZ,EAAmB;IAAA;;IAAA;IACjB,0BAAMA,KAAN;IADiB,2FAYV,IAAAC,eAAA,GAZU;IAAA,yGAcTC,iBAAA,CAAMC,SAAN,EAdS;IAAA,uGAgBE,IAAAC,6BAAA,GAhBF;IAAA,qGAiBA,IAAAC,4BAAA,EAAsB,MAAKC,kBAA3B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MAAR,CAAP,eACE,+EACE,gCAAC,KAAD;QAAA,OAEM,KAFN;QAAA,kBAGkB,CAAC,MAAD,EAAS,OAAT,CAHlB;QAAA,OAIO,KAAKxB,OAJZ;QAAA,eAKe,KAAK8B,gBALpB;QAAA,gBAMgB,KAAKC,iBANrB;QAAA,cAOcJ,KAPd;QAAA,YAQY;MARZ,yBAUE,gCAAC,QAAD,2BAVF,eAWE;QAAA,SAAqB,MAArB;QAAA,UAAmC,MAAnC;QAAA;MAAA,iBACE,gCAAC,8BAAD;QAAA,MACM,KAAKK,MADX;QAAA,QAEQtB,IAFR;QAAA,aAGaiB,KAHb;QAAA,UAIUC,MAJV;QAAA,WAKW,KAAK5B,OALhB;QAAA,SAMS,KAAKT,kBANd;QAAA,UAOUmC;MAPV,GADF,CAXF,CADF,CADF;IA2BD;;;EAvGoBO,e;;iCAAjBjD,Q,iBACiB,M;iCADjBA,Q,WAEWkD,K;iCAFXlD,Q,kBASkB;EAAA,OAAO;IAC3B2B,KAAK,EAAE,CADoB;IAE3BC,MAAM,EAAE;EAFmB,CAAP;AAAA,C;iCATlB5B,Q,aAca,CAAC,IAAAmD,gCAAA,GAAD,C;;eA4FJ,IAAAC,gBAAA,EAAgBpD,QAAhB,C"}
@@ -60,20 +60,20 @@ var style = (
60
60
  /*__reshadow_css_start__*/
61
61
  _core.sstyled.insert(
62
62
  /*__inner_css_start__*/
63
- ".___SRadian_idv3p_gg_{cursor:pointer;fill:#008ff8}.___SLine_idv3p_gg_{stroke:#008ff8}.___SLine_idv3p_gg_.__color_idv3p_gg_{stroke:var(--color_idv3p)}.___SCap_idv3p_gg_{transition:r .1s}.___SLabel_idv3p_gg_{fill:var(--color_idv3p);cursor:var(--text-cursor_idv3p)}.___SRadian_idv3p_gg_:hover .___SLabel_idv3p_gg_{fill:var(--color-hovered_idv3p)}@media (prefers-reduced-motion){.___SLineCap_idv3p_gg_{transition:none}}"
63
+ ".___SRadian_1klv3_gg_{cursor:pointer;fill:#008ff8}.___SLine_1klv3_gg_{stroke:#008ff8}.___SLine_1klv3_gg_.__color_1klv3_gg_{stroke:var(--color_1klv3)}.___SCap_1klv3_gg_{transition:r .1s}.___SLabel_1klv3_gg_{fill:var(--color_1klv3);cursor:var(--text-cursor_1klv3)}.___SRadian_1klv3_gg_:hover .___SLabel_1klv3_gg_{fill:var(--color-hovered_1klv3)}@media (prefers-reduced-motion){.___SLineCap_1klv3_gg_{transition:none}}"
64
64
  /*__inner_css_end__*/
65
- , "idv3p_gg_")
65
+ , "1klv3_gg_")
66
66
  /*__reshadow_css_end__*/
67
67
  , {
68
- "__SRadian": "___SRadian_idv3p_gg_",
69
- "__SLine": "___SLine_idv3p_gg_",
70
- "_color": "__color_idv3p_gg_",
71
- "--color": "--color_idv3p",
72
- "__SCap": "___SCap_idv3p_gg_",
73
- "__SLabel": "___SLabel_idv3p_gg_",
74
- "--text-cursor": "--text-cursor_idv3p",
75
- "--color-hovered": "--color-hovered_idv3p",
76
- "__SLineCap": "___SLineCap_idv3p_gg_"
68
+ "__SRadian": "___SRadian_1klv3_gg_",
69
+ "__SLine": "___SLine_1klv3_gg_",
70
+ "_color": "__color_1klv3_gg_",
71
+ "--color": "--color_1klv3",
72
+ "__SCap": "___SCap_1klv3_gg_",
73
+ "__SLabel": "___SLabel_1klv3_gg_",
74
+ "--text-cursor": "--text-cursor_1klv3",
75
+ "--color-hovered": "--color-hovered_1klv3",
76
+ "__SLineCap": "___SLineCap_1klv3_gg_"
77
77
  });
78
78
  var baseAngle = -Math.PI / 2; // The top vertical line
79
79
 
@@ -42,19 +42,19 @@ var style = (
42
42
  /*__reshadow_css_start__*/
43
43
  _core.sstyled.insert(
44
44
  /*__inner_css_start__*/
45
- ".___SReferenceLine_qdqgh_gg_{fill:none;stroke:#a9abb6}.___STitle_qdqgh_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_qdqgh)}.___STitle_qdqgh_gg_._position_top_qdqgh_gg_{text-anchor:middle}.___STitle_qdqgh_gg_._position_bottom_qdqgh_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_qdqgh_gg_._position_right_qdqgh_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_qdqgh_gg_._position_left_qdqgh_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_qdqgh_gg_{fill:rgba(196,199,207,.2)}"
45
+ ".___SReferenceLine_1rx9u_gg_{fill:none;stroke:#a9abb6}.___STitle_1rx9u_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1rx9u)}.___STitle_1rx9u_gg_._position_top_1rx9u_gg_{text-anchor:middle}.___STitle_1rx9u_gg_._position_bottom_1rx9u_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1rx9u_gg_._position_right_1rx9u_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1rx9u_gg_._position_left_1rx9u_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_1rx9u_gg_{fill:rgba(196,199,207,.2)}"
46
46
  /*__inner_css_end__*/
47
- , "qdqgh_gg_")
47
+ , "1rx9u_gg_")
48
48
  /*__reshadow_css_end__*/
49
49
  , {
50
- "__SReferenceLine": "___SReferenceLine_qdqgh_gg_",
51
- "__STitle": "___STitle_qdqgh_gg_",
52
- "--transform-origin": "--transform-origin_qdqgh",
53
- "_position_top": "_position_top_qdqgh_gg_",
54
- "_position_bottom": "_position_bottom_qdqgh_gg_",
55
- "_position_right": "_position_right_qdqgh_gg_",
56
- "_position_left": "_position_left_qdqgh_gg_",
57
- "__SBackground": "___SBackground_qdqgh_gg_"
50
+ "__SReferenceLine": "___SReferenceLine_1rx9u_gg_",
51
+ "__STitle": "___STitle_1rx9u_gg_",
52
+ "--transform-origin": "--transform-origin_1rx9u",
53
+ "_position_top": "_position_top_1rx9u_gg_",
54
+ "_position_bottom": "_position_bottom_1rx9u_gg_",
55
+ "_position_right": "_position_right_1rx9u_gg_",
56
+ "_position_left": "_position_left_1rx9u_gg_",
57
+ "__SBackground": "___SBackground_1rx9u_gg_"
58
58
  });
59
59
  var MAP_ORIENTATION = {
60
60
  left: 'vertical',
@@ -52,16 +52,16 @@ var style = (
52
52
  /*__reshadow_css_start__*/
53
53
  _core.sstyled.insert(
54
54
  /*__inner_css_start__*/
55
- ".___SScatterPlot_7lqcg_gg_{fill:#2bb3ff;transition-property:cx,cy;transition-duration:var(--duration_7lqcg);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_7lqcg_gg_:hover{opacity:.8}.___SScatterPlot_7lqcg_gg_.__color_7lqcg_gg_{fill:var(--color_7lqcg)}.___SValue_7lqcg_gg_{text-anchor:middle;font-size:10px;stroke:#008ff8}.___SValue_7lqcg_gg_.__color_7lqcg_gg_{stroke:var(--color_7lqcg)}"
55
+ ".___SScatterPlot_1t8iw_gg_{fill:#2bb3ff;transition-property:cx,cy;transition-duration:var(--duration_1t8iw);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_1t8iw_gg_:hover{opacity:.8}.___SScatterPlot_1t8iw_gg_.__color_1t8iw_gg_{fill:var(--color_1t8iw)}.___SValue_1t8iw_gg_{text-anchor:middle;font-size:10px;stroke:#008ff8}.___SValue_1t8iw_gg_.__color_1t8iw_gg_{stroke:var(--color_1t8iw)}"
56
56
  /*__inner_css_end__*/
57
- , "7lqcg_gg_")
57
+ , "1t8iw_gg_")
58
58
  /*__reshadow_css_end__*/
59
59
  , {
60
- "__SScatterPlot": "___SScatterPlot_7lqcg_gg_",
61
- "--duration": "--duration_7lqcg",
62
- "_color": "__color_7lqcg_gg_",
63
- "--color": "--color_7lqcg",
64
- "__SValue": "___SValue_7lqcg_gg_"
60
+ "__SScatterPlot": "___SScatterPlot_1t8iw_gg_",
61
+ "--duration": "--duration_1t8iw",
62
+ "_color": "__color_1t8iw_gg_",
63
+ "--color": "--color_1t8iw",
64
+ "__SValue": "___SValue_1t8iw_gg_"
65
65
  });
66
66
 
67
67
  var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
@@ -60,17 +60,17 @@ var style = (
60
60
  /*__reshadow_css_start__*/
61
61
  _core.sstyled.insert(
62
62
  /*__inner_css_start__*/
63
- ".___STooltip_rcs1h_gg_{font-size:12px;line-height:1.33;position:relative;background-color:#fff;border-radius:6px;border:1px solid #e0e1e9;box-sizing:border-box;box-shadow:0px 1px 12px 0px rgba(25, 27, 35, 0.15);padding:12px}.___STitle_rcs1h_gg_{color:#6c6e79;margin-bottom:8px}.___SDotGroup_rcs1h_gg_{display:flex;align-items:center}.___SDot_rcs1h_gg_{width:8px;height:8px;border-radius:50%;margin-right:8px;background:#2bb3ff}.___SDot_rcs1h_gg_.__color_rcs1h_gg_{background:var(--color_rcs1h)}"
63
+ ".___STooltip_1q94t_gg_{font-size:12px;line-height:1.33;position:relative;background-color:#fff;border-radius:6px;border:1px solid #e0e1e9;box-sizing:border-box;box-shadow:0px 1px 12px 0px rgba(25, 27, 35, 0.15);padding:12px}.___STitle_1q94t_gg_{color:#6c6e79;margin-bottom:8px}.___SDotGroup_1q94t_gg_{display:flex;align-items:center}.___SDot_1q94t_gg_{width:8px;height:8px;border-radius:50%;margin-right:8px;background:#2bb3ff}.___SDot_1q94t_gg_.__color_1q94t_gg_{background:var(--color_1q94t)}"
64
64
  /*__inner_css_end__*/
65
- , "rcs1h_gg_")
65
+ , "1q94t_gg_")
66
66
  /*__reshadow_css_end__*/
67
67
  , {
68
- "__STooltip": "___STooltip_rcs1h_gg_",
69
- "__STitle": "___STitle_rcs1h_gg_",
70
- "__SDotGroup": "___SDotGroup_rcs1h_gg_",
71
- "__SDot": "___SDot_rcs1h_gg_",
72
- "_color": "__color_rcs1h_gg_",
73
- "--color": "--color_rcs1h"
68
+ "__STooltip": "___STooltip_1q94t_gg_",
69
+ "__STitle": "___STitle_1q94t_gg_",
70
+ "__SDotGroup": "___SDotGroup_1q94t_gg_",
71
+ "__SDot": "___SDot_1q94t_gg_",
72
+ "_color": "__color_1q94t_gg_",
73
+ "--color": "--color_1q94t"
74
74
  });
75
75
 
76
76
  var TooltipRoot = /*#__PURE__*/function (_Component) {
package/lib/cjs/Venn.js CHANGED
@@ -48,16 +48,16 @@ var style = (
48
48
  /*__reshadow_css_start__*/
49
49
  _core.sstyled.insert(
50
50
  /*__inner_css_start__*/
51
- ".___SCircle_1v0kl_gg_{fill:#59ddaa;stroke:#fff;stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1v0kl);transition-timing-function:ease-in-out}.___SCircle_1v0kl_gg_:hover{fill-opacity:.7}.___SCircle_1v0kl_gg_.__color_1v0kl_gg_{fill:var(--color_1v0kl)}.___SIntersection_1v0kl_gg_{stroke:#fff;stroke-width:2px;fill-opacity:0}.___SIntersection_1v0kl_gg_:hover{fill-opacity:.1}"
51
+ ".___SCircle_1uyw5_gg_{fill:#59ddaa;stroke:#fff;stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1uyw5);transition-timing-function:ease-in-out}.___SCircle_1uyw5_gg_:hover{fill-opacity:.7}.___SCircle_1uyw5_gg_.__color_1uyw5_gg_{fill:var(--color_1uyw5)}.___SIntersection_1uyw5_gg_{stroke:#fff;stroke-width:2px;fill-opacity:0}.___SIntersection_1uyw5_gg_:hover{fill-opacity:.1}"
52
52
  /*__inner_css_end__*/
53
- , "1v0kl_gg_")
53
+ , "1uyw5_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "__SCircle": "___SCircle_1v0kl_gg_",
57
- "--duration": "--duration_1v0kl",
58
- "_color": "__color_1v0kl_gg_",
59
- "--color": "--color_1v0kl",
60
- "__SIntersection": "___SIntersection_1v0kl_gg_"
56
+ "__SCircle": "___SCircle_1uyw5_gg_",
57
+ "--duration": "--duration_1uyw5",
58
+ "_color": "__color_1uyw5_gg_",
59
+ "--color": "--color_1uyw5",
60
+ "__SIntersection": "___SIntersection_1uyw5_gg_"
61
61
  });
62
62
 
63
63
  var VennRoot = /*#__PURE__*/function (_Component) {
@@ -40,12 +40,12 @@ var styles = (
40
40
  /*__reshadow_css_start__*/
41
41
  _core.sstyled.insert(
42
42
  /*__inner_css_start__*/
43
- ".___SPlotA11yModule_1njz2_gg_{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1njz2_gg_:focus{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all;pointer-events:all;opacity:1}"
43
+ ".___SPlotA11yModule_9npn1_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_9npn1_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}"
44
44
  /*__inner_css_end__*/
45
- , "1njz2_gg_")
45
+ , "9npn1_gg_")
46
46
  /*__reshadow_css_end__*/
47
47
  , {
48
- "__SPlotA11yModule": "___SPlotA11yModule_1njz2_gg_"
48
+ "__SPlotA11yModule": "___SPlotA11yModule_9npn1_gg_"
49
49
  });
50
50
  var globalWasFocused = false;
51
51
  var globalNavWithKeyboard = false;
@@ -44,13 +44,13 @@ var styles = (
44
44
  /*__reshadow_css_start__*/
45
45
  _core.sstyled.insert(
46
46
  /*__inner_css_start__*/
47
- ".___SPlotA11yView_16bhw_gg_{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:#fff;color:#000;border:3px solid #000;font-size:10px;padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_16bhw_gg_:focus,.___SPlotA11yView_16bhw_gg_.__focus-within_16bhw_gg_{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:100;position:relative;display:block}.___SPlotA11yView_16bhw_gg_:focus,.___SPlotA11yView_16bhw_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:100;position:relative;display:block}.___SPlotA11yView_16bhw_gg_ a{cursor:pointer;text-decoration:underline;margin-bottom:8px;display:block}.___SPlotA11yView_16bhw_gg_ table,.___SPlotA11yView_16bhw_gg_ td,.___SPlotA11yView_16bhw_gg_ th{border:1px solid #000}"
47
+ ".___SPlotA11yView_f421s_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:#fff;color:#000;border:3px solid #000;font-size:10px;padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_f421s_gg_:focus,.___SPlotA11yView_f421s_gg_.__focus-within_f421s_gg_{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:100;position:relative;display:block}.___SPlotA11yView_f421s_gg_:focus,.___SPlotA11yView_f421s_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:100;position:relative;display:block}.___SPlotA11yView_f421s_gg_ a{cursor:pointer;text-decoration:underline;margin-bottom:8px;display:block}.___SPlotA11yView_f421s_gg_ table,.___SPlotA11yView_f421s_gg_ td,.___SPlotA11yView_f421s_gg_ th{border:1px solid #000}"
48
48
  /*__inner_css_end__*/
49
- , "16bhw_gg_")
49
+ , "f421s_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SPlotA11yView": "___SPlotA11yView_16bhw_gg_",
53
- "_focus-within": "__focus-within_16bhw_gg_"
52
+ "__SPlotA11yView": "___SPlotA11yView_f421s_gg_",
53
+ "_focus-within": "__focus-within_f421s_gg_"
54
54
  });
55
55
 
56
56
  var PlotA11yView = function PlotA11yView(_ref3) {
@@ -10,6 +10,10 @@ SPlot:focus {
10
10
  text-decoration: none;
11
11
  }
12
12
 
13
+ foreignObject[data-aria-only] {
14
+ pointer-events: none;
15
+ }
16
+
13
17
  SPlot[keyboardFocused] {
14
18
  border: 1px solid var(--blue-400);
15
19
  box-shadow: var(--keyboard-focus);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=Area.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\nimport { CurveFactory } from 'd3-shape';\n\nexport interface IAreaProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis*/\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n}\n\nexport interface IAreaDotsProps extends IContext {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n}\n\nexport interface IAreaDotsContext {\n /** Value element of data */\n value?: any;\n /** Index element of data */\n index?: number;\n}\n\nexport interface IAreaNullProps extends IContext {\n /** Hide property */\n hide?: boolean;\n}\n\ndeclare const Area: (<T>(props: CProps<IAreaProps & T>) => ReturnEl) & {\n Dots: <T>(props: CProps<IAreaDotsProps & T, IAreaDotsContext>) => ReturnEl;\n Null: <T>(props: CProps<IAreaNullProps & T>) => ReturnEl;\n Line: <T>(props: CProps<IContext & T>) => ReturnEl;\n};\n\nexport default Area;\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=Axis.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Axis.d.js","names":[],"sources":["../../../src/types/Axis.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\n\nexport interface IXAxisProps extends IContext {\n /** The position of the axis relative chart\n * @default 'button' */\n position?: 'top' | 'right' | 'bottom' | 'left' | number;\n /** Element hide property\n * @default false */\n hide?: boolean;\n /** Values for axis ticks */\n ticks?: any[];\n}\n\nexport interface IYAxisProps extends IContext {\n /** The position of the axis relative chart\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left' | number;\n /** Element hide property\n * @default true */\n hide?: boolean;\n /** Values for axis ticks */\n ticks?: any[];\n}\n\nexport interface IAxisTicksProps extends IContext {\n /** The position of the axis relative chart */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Element hide property */\n hide?: boolean;\n /** Values for axis ticks */\n ticks?: any[];\n}\n\nexport interface IAxisGridProps extends IContext {\n /** Values for axis ticks */\n ticks?: any[];\n}\n\nexport interface IAxisTitleProps extends IContext {\n /** The position of the axis relative chart */\n position?: 'top' | 'right' | 'bottom' | 'left';\n}\n\nexport interface IAxisTicksContext {\n /** Value element of data */\n value: any;\n /** Index element of data */\n index: number;\n}\n\ndeclare const XAxis: (<T>(props: CProps<IXAxisProps & T>) => ReturnEl) & {\n Ticks: <T>(props: CProps<IAxisTicksProps & T, IAxisTicksContext>) => ReturnEl;\n Grid: <T>(props: CProps<IAxisGridProps & T>) => ReturnEl;\n Title: <T>(props: CProps<IAxisTitleProps & T>) => ReturnEl;\n};\n\ndeclare const YAxis: (<T>(props: CProps<IYAxisProps & T>) => ReturnEl) & {\n Ticks: <T>(props: CProps<IAxisTicksProps & T, IAxisTicksContext>) => ReturnEl;\n Grid: <T>(props: CProps<IAxisGridProps & T>) => ReturnEl;\n Title: <T>(props: CProps<IAxisTitleProps & T>) => ReturnEl;\n};\n\nexport { XAxis, YAxis };\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=Bar.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Bar.d.js","names":[],"sources":["../../../src/types/Bar.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\n\nexport interface IBarProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of curvature\n * @default 2\n */\n r?: number | number[];\n /** Minimal height\n * @default 4\n */\n hMin?: number;\n}\n\nexport interface IBarContext {\n /** Value element of data */\n value: any;\n /** Index element of data */\n index: number;\n}\n\nexport interface IBackgroundProps extends IContext {\n /** Coordinate x */\n x?: number | string;\n /** Coordinate y */\n y?: number | string;\n /** Value element of data */\n value?: any;\n /** Width rect */\n width?: number | string;\n /** Height rect */\n height?: number | string;\n}\n\ndeclare const Bar: (<T>(props: CProps<IBarProps & T, IBarContext>) => ReturnEl) & {\n Background: <T>(props: CProps<IBackgroundProps & T>) => ReturnEl;\n};\n\nexport default Bar;\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=Bubble.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Bubble.d.js","names":[],"sources":["../../../src/types/Bubble.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\n\nexport interface IBubbleProps extends IContext {\n /** Field from data for XAxis */\n x: string;\n /** Field from data for YAxis */\n y: string;\n /** Field from data for circle radius */\n value: string;\n /** Field from data for circle label */\n label?: string;\n /** Circle color */\n color?: string;\n /** Cross in the center of the bubble\n * @default true\n */\n markedCross?: boolean;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n}\n\nexport interface IBubbleContext {\n /** Index element of data */\n index: number;\n}\n\ndeclare const Bubble: <T>(props: CProps<IBubbleProps & T, IBubbleContext>) => ReturnEl;\n\nexport default Bubble;\n"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=ClipPath.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClipPath.d.js","names":[],"sources":["../../../src/types/ClipPath.d.ts"],"sourcesContent":["import React from 'react';\nimport { CProps, ReturnEl } from '@semcore/core';\n\nexport interface IClipPath {\n /**\n * HTML tag name for the displayed item\n * @default rect\n */\n tag?: string;\n /**\n * HTML selector\n */\n id?: string;\n /**\n * CSS property\n */\n transition?: string;\n /**\n * Function which run after mounted clipPath\n */\n setAttributeTag?: (rect: React.ReactNode) => void;\n}\n\ndeclare const ClipPath: <T>(props: CProps<IClipPath & T>) => ReturnEl;\n\nexport default ClipPath;\n"],"mappings":""}