@semcore/d3-chart 2.4.10 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/lib/cjs/Area.js +9 -9
  3. package/lib/cjs/Axis.js +14 -14
  4. package/lib/cjs/Bar.js +17 -10
  5. package/lib/cjs/Bar.js.map +1 -1
  6. package/lib/cjs/Bubble.js +10 -10
  7. package/lib/cjs/Donut.js +7 -7
  8. package/lib/cjs/Dots.js +9 -9
  9. package/lib/cjs/HorizontalBar.js +8 -8
  10. package/lib/cjs/Hover.js +4 -4
  11. package/lib/cjs/Line.js +8 -8
  12. package/lib/cjs/Plot.js +4 -4
  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/types/Bar.d.js.map +1 -1
  21. package/lib/cjs/utils.js +8 -1
  22. package/lib/cjs/utils.js.map +1 -1
  23. package/lib/es6/Area.js +9 -9
  24. package/lib/es6/Axis.js +14 -14
  25. package/lib/es6/Bar.js +17 -10
  26. package/lib/es6/Bar.js.map +1 -1
  27. package/lib/es6/Bubble.js +10 -10
  28. package/lib/es6/Donut.js +7 -7
  29. package/lib/es6/Dots.js +9 -9
  30. package/lib/es6/HorizontalBar.js +8 -8
  31. package/lib/es6/Hover.js +4 -4
  32. package/lib/es6/Line.js +8 -8
  33. package/lib/es6/Plot.js +4 -4
  34. package/lib/es6/RadialTree.js +11 -11
  35. package/lib/es6/ReferenceLine.js +10 -10
  36. package/lib/es6/ScatterPlot.js +7 -7
  37. package/lib/es6/Tooltip.js +8 -8
  38. package/lib/es6/Venn.js +7 -7
  39. package/lib/es6/a11y/PlotA11yModule.js +3 -3
  40. package/lib/es6/a11y/PlotA11yView.js +4 -4
  41. package/lib/es6/types/Bar.d.js.map +1 -1
  42. package/lib/es6/utils.js +8 -1
  43. package/lib/es6/utils.js.map +1 -1
  44. package/lib/types/Bar.d.ts +4 -0
  45. package/lib/types/utils.d.ts +1 -1
  46. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [2.5.0] - 2022-11-10
6
+
7
+ ### Fixed
8
+
9
+ - Fixed support handling of bars event handling with `paddingOuter`.
10
+
11
+ ### Added
12
+
13
+ - `Bar` component now supports `onClick` handler with bar data in callback.
14
+
5
15
  ## [2.4.10] - 2022-11-03
6
16
 
7
17
  ### Changed
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_1ocxy_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_1ocxy_gg_.__color_1ocxy_gg_{fill:var(--color_1ocxy)}.___SAreaLine_1ocxy_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_1ocxy_gg_.__color_1ocxy_gg_{stroke:var(--color_1ocxy)}.___SArea_1ocxy_gg_,.___SAreaLine_1ocxy_gg_{transition-property:d;transition-duration:var(--duration_1ocxy);transition-timing-function:ease-in-out}.___SNull_1ocxy_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_1ocxy_gg_.__hide_1ocxy_gg_{display:none}"
51
+ ".___SArea_lwqjm_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_lwqjm_gg_.__color_lwqjm_gg_{fill:var(--color_lwqjm)}.___SAreaLine_lwqjm_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_lwqjm_gg_.__color_lwqjm_gg_{stroke:var(--color_lwqjm)}.___SArea_lwqjm_gg_,.___SAreaLine_lwqjm_gg_{transition-property:d;transition-duration:var(--duration_lwqjm);transition-timing-function:ease-in-out}.___SNull_lwqjm_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_lwqjm_gg_.__hide_lwqjm_gg_{display:none}"
52
52
  /*__inner_css_end__*/
53
- , "1ocxy_gg_")
53
+ , "lwqjm_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "__SArea": "___SArea_1ocxy_gg_",
57
- "_color": "__color_1ocxy_gg_",
58
- "--color": "--color_1ocxy",
59
- "__SAreaLine": "___SAreaLine_1ocxy_gg_",
60
- "--duration": "--duration_1ocxy",
61
- "__SNull": "___SNull_1ocxy_gg_",
62
- "_hide": "__hide_1ocxy_gg_"
56
+ "__SArea": "___SArea_lwqjm_gg_",
57
+ "_color": "__color_lwqjm_gg_",
58
+ "--color": "--color_lwqjm",
59
+ "__SAreaLine": "___SAreaLine_lwqjm_gg_",
60
+ "--duration": "--duration_lwqjm",
61
+ "__SNull": "___SNull_lwqjm_gg_",
62
+ "_hide": "__hide_lwqjm_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_1sss4_gg_{stroke:#c4c7cf}.___SAxis_1sss4_gg_.__hide_1sss4_gg_{display:none}.___STick_1sss4_gg_{font-size:12px;fill:#6c6e79}.___STick_1sss4_gg_.__hide_1sss4_gg_{display:none}.___SGrid_1sss4_gg_{fill:transparent;stroke:#e0e1e9}.___STitle_1sss4_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1sss4)}.___STitle_1sss4_gg_._position_top_1sss4_gg_{text-anchor:middle}.___STitle_1sss4_gg_._position_bottom_1sss4_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1sss4_gg_._position_right_1sss4_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1sss4_gg_._position_left_1sss4_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_1sss4_gg_._position_top_1sss4_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_1sss4_gg_._position_bottom_1sss4_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_1sss4_gg_._position_right_1sss4_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_1sss4_gg_._position_left_1sss4_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_1sss4_gg_._position_custom_0_1sss4_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_1sss4_gg_._position_custom_1_1sss4_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
47
+ ".___SAxis_x03oy_gg_{stroke:#c4c7cf}.___SAxis_x03oy_gg_.__hide_x03oy_gg_{display:none}.___STick_x03oy_gg_{font-size:12px;fill:#6c6e79}.___STick_x03oy_gg_.__hide_x03oy_gg_{display:none}.___SGrid_x03oy_gg_{fill:transparent;stroke:#e0e1e9}.___STitle_x03oy_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_x03oy)}.___STitle_x03oy_gg_._position_top_x03oy_gg_{text-anchor:middle}.___STitle_x03oy_gg_._position_bottom_x03oy_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_x03oy_gg_._position_right_x03oy_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_x03oy_gg_._position_left_x03oy_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_x03oy_gg_._position_top_x03oy_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_x03oy_gg_._position_bottom_x03oy_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_x03oy_gg_._position_right_x03oy_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_x03oy_gg_._position_left_x03oy_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_x03oy_gg_._position_custom_0_x03oy_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_x03oy_gg_._position_custom_1_x03oy_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
48
48
  /*__inner_css_end__*/
49
- , "1sss4_gg_")
49
+ , "x03oy_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SAxis": "___SAxis_1sss4_gg_",
53
- "_hide": "__hide_1sss4_gg_",
54
- "__STick": "___STick_1sss4_gg_",
55
- "__SGrid": "___SGrid_1sss4_gg_",
56
- "__STitle": "___STitle_1sss4_gg_",
57
- "--transform-origin": "--transform-origin_1sss4",
58
- "_position_top": "_position_top_1sss4_gg_",
59
- "_position_bottom": "_position_bottom_1sss4_gg_",
60
- "_position_right": "_position_right_1sss4_gg_",
61
- "_position_left": "_position_left_1sss4_gg_",
62
- "_position_custom_0": "_position_custom_0_1sss4_gg_",
63
- "_position_custom_1": "_position_custom_1_1sss4_gg_"
52
+ "__SAxis": "___SAxis_x03oy_gg_",
53
+ "_hide": "__hide_x03oy_gg_",
54
+ "__STick": "___STick_x03oy_gg_",
55
+ "__SGrid": "___SGrid_x03oy_gg_",
56
+ "__STitle": "___STitle_x03oy_gg_",
57
+ "--transform-origin": "--transform-origin_x03oy",
58
+ "_position_top": "_position_top_x03oy_gg_",
59
+ "_position_bottom": "_position_bottom_x03oy_gg_",
60
+ "_position_right": "_position_right_x03oy_gg_",
61
+ "_position_left": "_position_left_x03oy_gg_",
62
+ "_position_custom_0": "_position_custom_0_x03oy_gg_",
63
+ "_position_custom_1": "_position_custom_1_x03oy_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_fgctm_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_fgctm);transition-timing-function:ease-in-out}.___SBar_fgctm_gg_.__color_fgctm_gg_{fill:var(--color_fgctm)}.___SBar_fgctm_gg_.__hide_fgctm_gg_{display:none}.___SBackground_fgctm_gg_{fill:#c4c7cf}"
47
+ ".___SBar_14rd5_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_14rd5);transition-timing-function:ease-in-out}.___SBar_14rd5_gg_.__color_14rd5_gg_{fill:var(--color_14rd5)}.___SBar_14rd5_gg_.__hide_14rd5_gg_{display:none}.___SBackground_14rd5_gg_{fill:#c4c7cf}"
48
48
  /*__inner_css_end__*/
49
- , "fgctm_gg_")
49
+ , "14rd5_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SBar": "___SBar_fgctm_gg_",
53
- "--duration": "--duration_fgctm",
54
- "_color": "__color_fgctm_gg_",
55
- "--color": "--color_fgctm",
56
- "_hide": "__hide_fgctm_gg_",
57
- "__SBackground": "___SBackground_fgctm_gg_"
52
+ "__SBar": "___SBar_14rd5_gg_",
53
+ "--duration": "--duration_14rd5",
54
+ "_color": "__color_14rd5_gg_",
55
+ "--color": "--color_14rd5",
56
+ "_hide": "__hide_14rd5_gg_",
57
+ "__SBackground": "___SBackground_14rd5_gg_"
58
58
  });
59
59
 
60
60
  var BarRoot = /*#__PURE__*/function (_Component) {
@@ -120,7 +120,8 @@ var BarRoot = /*#__PURE__*/function (_Component) {
120
120
  r = _this$asProps3.r,
121
121
  hMin = _this$asProps3.hMin,
122
122
  widthProps = _this$asProps3.width,
123
- groupKey = _this$asProps3.groupKey;
123
+ groupKey = _this$asProps3.groupKey,
124
+ onClick = _this$asProps3.onClick;
124
125
 
125
126
  var _scale = (0, _slicedToArray2["default"])(scale, 2),
126
127
  xScale = _scale[0],
@@ -129,6 +130,11 @@ var BarRoot = /*#__PURE__*/function (_Component) {
129
130
  var barY = yScale(Math.max((_d$y = d[y0]) !== null && _d$y !== void 0 ? _d$y : 0, d[y])) + offset[1] - (Object.is(d[y], 0) ? hMin : 0);
130
131
  var barX = xScale(d[x]) + offset[0];
131
132
  var height = Math.abs(yScale(d[y]) - Math.min(yScale(yScale.domain()[0]), yScale((_d$y2 = d[y0]) !== null && _d$y2 !== void 0 ? _d$y2 : 0))) || hMin;
133
+
134
+ var handleClick = function handleClick(event) {
135
+ return onClick === null || onClick === void 0 ? void 0 : onClick(d, event);
136
+ };
137
+
132
138
  var width = widthProps || (0, _utils.getBandwidth)(xScale);
133
139
  var dSvg = getRect({
134
140
  x: barX,
@@ -150,7 +156,7 @@ var BarRoot = /*#__PURE__*/function (_Component) {
150
156
  "key": "bar-".concat(i),
151
157
  "render": "path",
152
158
  "clipPath": "url(#".concat(uid, ")"),
153
- "__excludeProps": ['data', 'scale', 'value'],
159
+ "__excludeProps": ['data', 'scale', 'value', 'onClick'],
154
160
  "childrenPosition": "above",
155
161
  "value": d,
156
162
  "index": i,
@@ -161,6 +167,7 @@ var BarRoot = /*#__PURE__*/function (_Component) {
161
167
  "width": width,
162
168
  "height": height,
163
169
  "d": dSvg,
170
+ "onClickCapture": handleClick,
164
171
  "use:duration": "".concat(duration, "ms")
165
172
  }));
166
173
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Bar.js","names":["BarRoot","props","index","asProps","x","data","value","duration","uid","selectRect","transition","selection","selectAll","selectRectNode","node","getAttribute","attr","animationBar","d","i","SBar","Element","styles","color","y","y0","scale","hide","offset","r","hMin","widthProps","width","groupKey","xScale","yScale","barY","Math","max","Object","is","barX","height","abs","min","domain","getBandwidth","dSvg","getRect","radius","Array","isArray","position","dataHintsHandler","describeGroupedValues","describeValueEntity","sstyled","size","map","renderBar","bind","Component","style","uniqueIDEnhancement","Background","SBackground","yRange","range","bandwidth","roundedPath","createElement"],"sources":["../../src/Bar.jsx"],"sourcesContent":["import React from 'react';\nimport { transition } from 'd3-transition';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport ClipPath from './ClipPath';\nimport { getBandwidth, roundedPath } from './utils';\n\nimport style from './style/bar.shadow.css';\n\nclass BarRoot extends Component {\n static displayName = 'Bar';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = {\n offset: [0, 0],\n duration: 500,\n r: 2,\n hMin: 4,\n };\n\n getBackgroundProps(props, index) {\n const { x, data } = this.asProps;\n return {\n value: data[index][x],\n };\n }\n\n animationBar() {\n const { duration, uid } = this.asProps;\n const selectRect = transition().selection().selectAll(`#${uid} rect`);\n const selectRectNode = selectRect.node();\n\n if (duration > 0 && selectRectNode && selectRectNode.getAttribute('y') !== '0') {\n selectRect.transition().duration(duration).attr('y', 0);\n }\n }\n\n componentDidUpdate() {\n this.animationBar();\n }\n\n componentDidMount() {\n this.animationBar();\n }\n\n renderBar(d, i) {\n const SBar = this.Element;\n const {\n styles,\n color,\n x,\n y,\n y0,\n scale,\n hide,\n offset,\n duration,\n uid,\n r,\n hMin,\n width: widthProps,\n groupKey,\n } = this.asProps;\n\n const [xScale, yScale] = scale;\n const barY = yScale(Math.max(d[y0] ?? 0, d[y])) + offset[1] - (Object.is(d[y], 0) ? hMin : 0);\n const barX = xScale(d[x]) + offset[0];\n const height =\n Math.abs(yScale(d[y]) - Math.min(yScale(yScale.domain()[0]), yScale(d[y0] ?? 0))) || hMin;\n const width = widthProps || getBandwidth(xScale);\n const dSvg = getRect({\n x: barX,\n y: barY,\n width,\n height,\n radius: Array.isArray(r) ? r[i] : r,\n position: d[y] > 0 || Object.is(d[y], 0) ? 'top' : 'bottom',\n });\n\n if (groupKey) {\n this.asProps.dataHintsHandler.describeGroupedValues(groupKey, y);\n } else {\n this.asProps.dataHintsHandler.describeValueEntity(`${i}.${y}`, groupKey ?? d[x]);\n }\n\n return sstyled(styles)(\n <SBar\n aria-hidden\n key={`bar-${i}`}\n render=\"path\"\n clipPath={`url(#${uid})`}\n __excludeProps={['data', 'scale', 'value']}\n childrenPosition=\"above\"\n value={d}\n index={i}\n hide={hide}\n color={color}\n x={barX}\n y={barY}\n width={width}\n height={height}\n d={dSvg}\n use:duration={`${duration}ms`}\n />,\n );\n }\n render() {\n const { data, uid, size, duration } = this.asProps;\n return (\n <>\n {data.map(this.renderBar.bind(this))}\n {duration && (\n <ClipPath\n aria-hidden\n key={`${uid}-animation`}\n id={uid}\n x=\"0\"\n y={size[1]}\n width={size[0]}\n height={`${size[1]}px`}\n />\n )}\n </>\n );\n }\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, value } = props;\n\n const [xScale, yScale] = scale;\n const yRange = yScale.range();\n\n return sstyled(styles)(\n <SBackground\n aria-hidden\n render=\"rect\"\n childrenPosition=\"above\"\n width={xScale.bandwidth()}\n height={yRange[0] - yRange[1]}\n x={xScale(value)}\n y={yRange[1]}\n />,\n );\n}\n\nfunction getRect({ x, y, width, height, radius, position }) {\n if (height <= radius) return '';\n if (radius) {\n if (position === 'top')\n return roundedPath(x, y, width, height, radius, true, true, false, false);\n return roundedPath(x, y, width, height, radius, false, false, true, true);\n }\n return roundedPath(x, y, width, height, radius);\n}\n\nexport default createElement(BarRoot, { Background });\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;IAIMA,O;;;;;;;;;;;;WAYJ,4BAAmBC,KAAnB,EAA0BC,KAA1B,EAAiC;MAC/B,oBAAoB,KAAKC,OAAzB;MAAA,IAAQC,CAAR,iBAAQA,CAAR;MAAA,IAAWC,IAAX,iBAAWA,IAAX;MACA,OAAO;QACLC,KAAK,EAAED,IAAI,CAACH,KAAD,CAAJ,CAAYE,CAAZ;MADF,CAAP;IAGD;;;WAED,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IACV,IAAIG,QAAQ,KAAK,KAAjB,EACE,OAAO,IAAAiB,kBAAA,EAAYjE,CAAZ,EAAeoB,CAAf,EAAkBQ,KAAlB,EAAyBU,MAAzB,EAAiCO,MAAjC,EAAyC,IAAzC,EAA+C,IAA/C,EAAqD,KAArD,EAA4D,KAA5D,CAAP;IACF,OAAO,IAAAoB,kBAAA,EAAYjE,CAAZ,EAAeoB,CAAf,EAAkBQ,KAAlB,EAAyBU,MAAzB,EAAiCO,MAAjC,EAAyC,KAAzC,EAAgD,KAAhD,EAAuD,IAAvD,EAA6D,IAA7D,CAAP;EACD;;EACD,OAAO,IAAAoB,kBAAA,EAAYjE,CAAZ,EAAeoB,CAAf,EAAkBQ,KAAlB,EAAyBU,MAAzB,EAAiCO,MAAjC,CAAP;AACD;;eAEc,IAAAqB,yBAAA,EAActE,OAAd,EAAuB;EAAEgE,UAAU,EAAVA;AAAF,CAAvB,C"}
1
+ {"version":3,"file":"Bar.js","names":["BarRoot","props","index","asProps","x","data","value","duration","uid","selectRect","transition","selection","selectAll","selectRectNode","node","getAttribute","attr","animationBar","d","i","SBar","Element","styles","color","y","y0","scale","hide","offset","r","hMin","widthProps","width","groupKey","onClick","xScale","yScale","barY","Math","max","Object","is","barX","height","abs","min","domain","handleClick","event","getBandwidth","dSvg","getRect","radius","Array","isArray","position","dataHintsHandler","describeGroupedValues","describeValueEntity","sstyled","size","map","renderBar","bind","Component","style","uniqueIDEnhancement","Background","SBackground","yRange","range","bandwidth","roundedPath","createElement"],"sources":["../../src/Bar.jsx"],"sourcesContent":["import React from 'react';\nimport { transition } from 'd3-transition';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport ClipPath from './ClipPath';\nimport { getBandwidth, roundedPath } from './utils';\n\nimport style from './style/bar.shadow.css';\n\nclass BarRoot extends Component {\n static displayName = 'Bar';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = {\n offset: [0, 0],\n duration: 500,\n r: 2,\n hMin: 4,\n };\n\n getBackgroundProps(props, index) {\n const { x, data } = this.asProps;\n return {\n value: data[index][x],\n };\n }\n\n animationBar() {\n const { duration, uid } = this.asProps;\n const selectRect = transition().selection().selectAll(`#${uid} rect`);\n const selectRectNode = selectRect.node();\n\n if (duration > 0 && selectRectNode && selectRectNode.getAttribute('y') !== '0') {\n selectRect.transition().duration(duration).attr('y', 0);\n }\n }\n\n componentDidUpdate() {\n this.animationBar();\n }\n\n componentDidMount() {\n this.animationBar();\n }\n\n renderBar(d, i) {\n const SBar = this.Element;\n const {\n styles,\n color,\n x,\n y,\n y0,\n scale,\n hide,\n offset,\n duration,\n uid,\n r,\n hMin,\n width: widthProps,\n groupKey,\n onClick,\n } = this.asProps;\n\n const [xScale, yScale] = scale;\n const barY = yScale(Math.max(d[y0] ?? 0, d[y])) + offset[1] - (Object.is(d[y], 0) ? hMin : 0);\n const barX = xScale(d[x]) + offset[0];\n const height =\n Math.abs(yScale(d[y]) - Math.min(yScale(yScale.domain()[0]), yScale(d[y0] ?? 0))) || hMin;\n const handleClick = (event) => onClick?.(d, event);\n const width = widthProps || getBandwidth(xScale);\n const dSvg = getRect({\n x: barX,\n y: barY,\n width,\n height,\n radius: Array.isArray(r) ? r[i] : r,\n position: d[y] > 0 || Object.is(d[y], 0) ? 'top' : 'bottom',\n });\n\n if (groupKey) {\n this.asProps.dataHintsHandler.describeGroupedValues(groupKey, y);\n } else {\n this.asProps.dataHintsHandler.describeValueEntity(`${i}.${y}`, groupKey ?? d[x]);\n }\n\n return sstyled(styles)(\n <SBar\n aria-hidden\n key={`bar-${i}`}\n render=\"path\"\n clipPath={`url(#${uid})`}\n __excludeProps={['data', 'scale', 'value', 'onClick']}\n childrenPosition=\"above\"\n value={d}\n index={i}\n hide={hide}\n color={color}\n x={barX}\n y={barY}\n width={width}\n height={height}\n d={dSvg}\n onClickCapture={handleClick}\n use:duration={`${duration}ms`}\n />,\n );\n }\n render() {\n const { data, uid, size, duration } = this.asProps;\n return (\n <>\n {data.map(this.renderBar.bind(this))}\n {duration && (\n <ClipPath\n aria-hidden\n key={`${uid}-animation`}\n id={uid}\n x=\"0\"\n y={size[1]}\n width={size[0]}\n height={`${size[1]}px`}\n />\n )}\n </>\n );\n }\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, value } = props;\n\n const [xScale, yScale] = scale;\n const yRange = yScale.range();\n\n return sstyled(styles)(\n <SBackground\n aria-hidden\n render=\"rect\"\n childrenPosition=\"above\"\n width={xScale.bandwidth()}\n height={yRange[0] - yRange[1]}\n x={xScale(value)}\n y={yRange[1]}\n />,\n );\n}\n\nfunction getRect({ x, y, width, height, radius, position }) {\n if (height <= radius) return '';\n if (radius) {\n if (position === 'top')\n return roundedPath(x, y, width, height, radius, true, true, false, false);\n return roundedPath(x, y, width, height, radius, false, false, true, true);\n }\n return roundedPath(x, y, width, height, radius);\n}\n\nexport default createElement(BarRoot, { Background });\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;IAIMA,O;;;;;;;;;;;;WAYJ,4BAAmBC,KAAnB,EAA0BC,KAA1B,EAAiC;MAC/B,oBAAoB,KAAKC,OAAzB;MAAA,IAAQC,CAAR,iBAAQA,CAAR;MAAA,IAAWC,IAAX,iBAAWA,IAAX;MACA,OAAO;QACLC,KAAK,EAAED,IAAI,CAACH,KAAD,CAAJ,CAAYE,CAAZ;MADF,CAAP;IAGD;;;WAED,wBAAe;MACb,qBAA0B,KAAKD,OAA/B;MAAA,IAAQI,QAAR,kBAAQA,QAAR;MAAA,IAAkBC,GAAlB,kBAAkBA,GAAlB;MACA,IAAMC,UAAU,GAAG,IAAAC,wBAAA,IAAaC,SAAb,GAAyBC,SAAzB,YAAuCJ,GAAvC,WAAnB;MACA,IAAMK,cAAc,GAAGJ,UAAU,CAACK,IAAX,EAAvB;;MAEA,IAA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E,OAAO,IAAAiB,kBAAA,EAAYpE,CAAZ,EAAeoB,CAAf,EAAkBQ,KAAlB,EAAyBW,MAAzB,EAAiCS,MAAjC,EAAyC,IAAzC,EAA+C,IAA/C,EAAqD,KAArD,EAA4D,KAA5D,CAAP;IACF,OAAO,IAAAoB,kBAAA,EAAYpE,CAAZ,EAAeoB,CAAf,EAAkBQ,KAAlB,EAAyBW,MAAzB,EAAiCS,MAAjC,EAAyC,KAAzC,EAAgD,KAAhD,EAAuD,IAAvD,EAA6D,IAA7D,CAAP;EACD;;EACD,OAAO,IAAAoB,kBAAA,EAAYpE,CAAZ,EAAeoB,CAAf,EAAkBQ,KAAlB,EAAyBW,MAAzB,EAAiCS,MAAjC,CAAP;AACD;;eAEc,IAAAqB,yBAAA,EAAczE,OAAd,EAAuB;EAAEmE,UAAU,EAAVA;AAAF,CAAvB,C"}
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_11vyj_gg_{fill:#2bb3ff;stroke:#fff;stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_11vyj);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_11vyj_gg_:hover{opacity:.8}.___SBubble_11vyj_gg_.__color_11vyj_gg_{fill:var(--color_11vyj)}.___SCenter_11vyj_gg_{text-anchor:middle;font-size:11px;stroke:#2bb3ff}.___SCenter_11vyj_gg_.__color_11vyj_gg_{stroke:var(--color_11vyj)}.___SLabel_11vyj_gg_{fill:#2bb3ff}.___SLabel_11vyj_gg_._position_right_11vyj_gg_{text-anchor:end}.___SLabel_11vyj_gg_._position_left_11vyj_gg_{text-anchor:start}.___SLabel_11vyj_gg_.__color_11vyj_gg_{fill:var(--color_11vyj)}"
59
+ ".___SBubble_16zqm_gg_{fill:#2bb3ff;stroke:#fff;stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_16zqm);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_16zqm_gg_:hover{opacity:.8}.___SBubble_16zqm_gg_.__color_16zqm_gg_{fill:var(--color_16zqm)}.___SCenter_16zqm_gg_{text-anchor:middle;font-size:11px;stroke:#2bb3ff}.___SCenter_16zqm_gg_.__color_16zqm_gg_{stroke:var(--color_16zqm)}.___SLabel_16zqm_gg_{fill:#2bb3ff}.___SLabel_16zqm_gg_._position_right_16zqm_gg_{text-anchor:end}.___SLabel_16zqm_gg_._position_left_16zqm_gg_{text-anchor:start}.___SLabel_16zqm_gg_.__color_16zqm_gg_{fill:var(--color_16zqm)}"
60
60
  /*__inner_css_end__*/
61
- , "11vyj_gg_")
61
+ , "16zqm_gg_")
62
62
  /*__reshadow_css_end__*/
63
63
  , {
64
- "__SBubble": "___SBubble_11vyj_gg_",
65
- "--duration": "--duration_11vyj",
66
- "_color": "__color_11vyj_gg_",
67
- "--color": "--color_11vyj",
68
- "__SCenter": "___SCenter_11vyj_gg_",
69
- "__SLabel": "___SLabel_11vyj_gg_",
70
- "_position_right": "_position_right_11vyj_gg_",
71
- "_position_left": "_position_left_11vyj_gg_"
64
+ "__SBubble": "___SBubble_16zqm_gg_",
65
+ "--duration": "--duration_16zqm",
66
+ "_color": "__color_16zqm_gg_",
67
+ "--color": "--color_16zqm",
68
+ "__SCenter": "___SCenter_16zqm_gg_",
69
+ "__SLabel": "___SLabel_16zqm_gg_",
70
+ "_position_right": "_position_right_16zqm_gg_",
71
+ "_position_left": "_position_left_16zqm_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_i5d6o_gg_{stroke:#fff;fill:#2bb3ff}.___SPie_i5d6o_gg_.__color_i5d6o_gg_{fill:var(--color_i5d6o)}.___SEmptyData_i5d6o_gg_{fill:#e0e1e9}.___SEmptyData_i5d6o_gg_.__color_i5d6o_gg_{fill:var(--color_i5d6o)}.___SLabel_i5d6o_gg_{text-anchor:middle;vertical-anchor:middle}"
69
+ ".___SPie_19g0u_gg_{stroke:#fff;fill:#2bb3ff}.___SPie_19g0u_gg_.__color_19g0u_gg_{fill:var(--color_19g0u)}.___SEmptyData_19g0u_gg_{fill:#e0e1e9}.___SEmptyData_19g0u_gg_.__color_19g0u_gg_{fill:var(--color_19g0u)}.___SLabel_19g0u_gg_{text-anchor:middle;vertical-anchor:middle}"
70
70
  /*__inner_css_end__*/
71
- , "i5d6o_gg_")
71
+ , "19g0u_gg_")
72
72
  /*__reshadow_css_end__*/
73
73
  , {
74
- "__SPie": "___SPie_i5d6o_gg_",
75
- "_color": "__color_i5d6o_gg_",
76
- "--color": "--color_i5d6o",
77
- "__SEmptyData": "___SEmptyData_i5d6o_gg_",
78
- "__SLabel": "___SLabel_i5d6o_gg_"
74
+ "__SPie": "___SPie_19g0u_gg_",
75
+ "_color": "__color_19g0u_gg_",
76
+ "--color": "--color_19g0u",
77
+ "__SEmptyData": "___SEmptyData_19g0u_gg_",
78
+ "__SLabel": "___SLabel_19g0u_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_12n29_gg_ .___SDot_12n29_gg_{transition-duration:var(--duration_12n29)}.___SDot_12n29_gg_{stroke-width:2px;stroke:#fff;r:6px;fill:#2bb3ff;transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_12n29_gg_.__hide_12n29_gg_{display:none}.___SDot_12n29_gg_.__active_12n29_gg_{r:8px}.___SDot_12n29_gg_.__color_12n29_gg_{fill:var(--color_12n29)}"
35
+ ".___SDots_2cywu_gg_ .___SDot_2cywu_gg_{transition-duration:var(--duration_2cywu)}.___SDot_2cywu_gg_{stroke-width:2px;stroke:#fff;r:6px;fill:#2bb3ff;transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_2cywu_gg_.__hide_2cywu_gg_{display:none}.___SDot_2cywu_gg_.__active_2cywu_gg_{r:8px}.___SDot_2cywu_gg_.__color_2cywu_gg_{fill:var(--color_2cywu)}"
36
36
  /*__inner_css_end__*/
37
- , "12n29_gg_")
37
+ , "2cywu_gg_")
38
38
  /*__reshadow_css_end__*/
39
39
  , {
40
- "__SDots": "___SDots_12n29_gg_",
41
- "__SDot": "___SDot_12n29_gg_",
42
- "--duration": "--duration_12n29",
43
- "_hide": "__hide_12n29_gg_",
44
- "_active": "__active_12n29_gg_",
45
- "_color": "__color_12n29_gg_",
46
- "--color": "--color_12n29"
40
+ "__SDots": "___SDots_2cywu_gg_",
41
+ "__SDot": "___SDot_2cywu_gg_",
42
+ "--duration": "--duration_2cywu",
43
+ "_hide": "__hide_2cywu_gg_",
44
+ "_active": "__active_2cywu_gg_",
45
+ "_color": "__color_2cywu_gg_",
46
+ "--color": "--color_2cywu"
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_fgctm_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_fgctm);transition-timing-function:ease-in-out}.___SBar_fgctm_gg_.__color_fgctm_gg_{fill:var(--color_fgctm)}.___SBar_fgctm_gg_.__hide_fgctm_gg_{display:none}.___SBackground_fgctm_gg_{fill:#c4c7cf}"
45
+ ".___SBar_14rd5_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_14rd5);transition-timing-function:ease-in-out}.___SBar_14rd5_gg_.__color_14rd5_gg_{fill:var(--color_14rd5)}.___SBar_14rd5_gg_.__hide_14rd5_gg_{display:none}.___SBackground_14rd5_gg_{fill:#c4c7cf}"
46
46
  /*__inner_css_end__*/
47
- , "fgctm_gg_")
47
+ , "14rd5_gg_")
48
48
  /*__reshadow_css_end__*/
49
49
  , {
50
- "__SBar": "___SBar_fgctm_gg_",
51
- "--duration": "--duration_fgctm",
52
- "_color": "__color_fgctm_gg_",
53
- "--color": "--color_fgctm",
54
- "_hide": "__hide_fgctm_gg_",
55
- "__SBackground": "___SBackground_fgctm_gg_"
50
+ "__SBar": "___SBar_14rd5_gg_",
51
+ "--duration": "--duration_14rd5",
52
+ "_color": "__color_14rd5_gg_",
53
+ "--color": "--color_14rd5",
54
+ "_hide": "__hide_14rd5_gg_",
55
+ "__SBackground": "___SBackground_14rd5_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_qwqec_gg_{stroke:#a9abb6}.___SHoverRect_qwqec_gg_{fill:rgba(196,199,207,.3)}"
47
+ ".___SHoverLine_11rp0_gg_{stroke:#a9abb6}.___SHoverRect_11rp0_gg_{fill:rgba(196,199,207,.3)}"
48
48
  /*__inner_css_end__*/
49
- , "qwqec_gg_")
49
+ , "11rp0_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SHoverLine": "___SHoverLine_qwqec_gg_",
53
- "__SHoverRect": "___SHoverRect_qwqec_gg_"
52
+ "__SHoverLine": "___SHoverLine_11rp0_gg_",
53
+ "__SHoverRect": "___SHoverRect_11rp0_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_1lea2_gg_{fill:transparent;stroke-width:3;stroke:#2bb3ff;transition-property:d;transition-duration:var(--duration_1lea2);transition-timing-function:ease-in-out}.___SLine_1lea2_gg_.__color_1lea2_gg_{stroke:var(--color_1lea2)}.___SLine_1lea2_gg_.__hide_1lea2_gg_{display:none}.___SNull_1lea2_gg_{fill:transparent;stroke:#c4c7cf;stroke-dasharray:4}.___SNull_1lea2_gg_.__hide_1lea2_gg_{display:none}"
49
+ ".___SLine_1cm3o_gg_{fill:transparent;stroke-width:3;stroke:#2bb3ff;transition-property:d;transition-duration:var(--duration_1cm3o);transition-timing-function:ease-in-out}.___SLine_1cm3o_gg_.__color_1cm3o_gg_{stroke:var(--color_1cm3o)}.___SLine_1cm3o_gg_.__hide_1cm3o_gg_{display:none}.___SNull_1cm3o_gg_{fill:transparent;stroke:#c4c7cf;stroke-dasharray:4}.___SNull_1cm3o_gg_.__hide_1cm3o_gg_{display:none}"
50
50
  /*__inner_css_end__*/
51
- , "1lea2_gg_")
51
+ , "1cm3o_gg_")
52
52
  /*__reshadow_css_end__*/
53
53
  , {
54
- "__SLine": "___SLine_1lea2_gg_",
55
- "--duration": "--duration_1lea2",
56
- "_color": "__color_1lea2_gg_",
57
- "--color": "--color_1lea2",
58
- "_hide": "__hide_1lea2_gg_",
59
- "__SNull": "___SNull_1lea2_gg_"
54
+ "__SLine": "___SLine_1cm3o_gg_",
55
+ "--duration": "--duration_1cm3o",
56
+ "_color": "__color_1cm3o_gg_",
57
+ "--color": "--color_1cm3o",
58
+ "_hide": "__hide_1cm3o_gg_",
59
+ "__SNull": "___SNull_1cm3o_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_1lczr_gg_{overflow:hidden}.___SPlot_1lczr_gg_:active,.___SPlot_1lczr_gg_:focus{outline:0;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_1lczr_gg_.__keyboardFocused_1lczr_gg_{border:1px solid #008ff8;box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}"
61
+ ".___SPlot_869m2_gg_{overflow:hidden}.___SPlot_869m2_gg_:active,.___SPlot_869m2_gg_:focus{outline:0;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_869m2_gg_.__keyboardFocused_869m2_gg_{border:1px solid #008ff8;box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}"
62
62
  /*__inner_css_end__*/
63
- , "1lczr_gg_")
63
+ , "869m2_gg_")
64
64
  /*__reshadow_css_end__*/
65
65
  , {
66
- "__SPlot": "___SPlot_1lczr_gg_",
67
- "_keyboardFocused": "__keyboardFocused_1lczr_gg_"
66
+ "__SPlot": "___SPlot_869m2_gg_",
67
+ "_keyboardFocused": "__keyboardFocused_869m2_gg_"
68
68
  });
69
69
 
70
70
  var PlotRoot = /*#__PURE__*/function (_Component) {
@@ -60,20 +60,20 @@ var style = (
60
60
  /*__reshadow_css_start__*/
61
61
  _core.sstyled.insert(
62
62
  /*__inner_css_start__*/
63
- ".___SRadian_1nrkh_gg_{cursor:pointer;fill:#008ff8}.___SLine_1nrkh_gg_{stroke:#008ff8}.___SLine_1nrkh_gg_.__color_1nrkh_gg_{stroke:var(--color_1nrkh)}.___SCap_1nrkh_gg_{transition:r .1s}.___SLabel_1nrkh_gg_{fill:var(--color_1nrkh);cursor:var(--text-cursor_1nrkh)}.___SRadian_1nrkh_gg_:hover .___SLabel_1nrkh_gg_{fill:var(--color-hovered_1nrkh)}@media (prefers-reduced-motion){.___SLineCap_1nrkh_gg_{transition:none}}"
63
+ ".___SRadian_19rfb_gg_{cursor:pointer;fill:#008ff8}.___SLine_19rfb_gg_{stroke:#008ff8}.___SLine_19rfb_gg_.__color_19rfb_gg_{stroke:var(--color_19rfb)}.___SCap_19rfb_gg_{transition:r .1s}.___SLabel_19rfb_gg_{fill:var(--color_19rfb);cursor:var(--text-cursor_19rfb)}.___SRadian_19rfb_gg_:hover .___SLabel_19rfb_gg_{fill:var(--color-hovered_19rfb)}@media (prefers-reduced-motion){.___SLineCap_19rfb_gg_{transition:none}}"
64
64
  /*__inner_css_end__*/
65
- , "1nrkh_gg_")
65
+ , "19rfb_gg_")
66
66
  /*__reshadow_css_end__*/
67
67
  , {
68
- "__SRadian": "___SRadian_1nrkh_gg_",
69
- "__SLine": "___SLine_1nrkh_gg_",
70
- "_color": "__color_1nrkh_gg_",
71
- "--color": "--color_1nrkh",
72
- "__SCap": "___SCap_1nrkh_gg_",
73
- "__SLabel": "___SLabel_1nrkh_gg_",
74
- "--text-cursor": "--text-cursor_1nrkh",
75
- "--color-hovered": "--color-hovered_1nrkh",
76
- "__SLineCap": "___SLineCap_1nrkh_gg_"
68
+ "__SRadian": "___SRadian_19rfb_gg_",
69
+ "__SLine": "___SLine_19rfb_gg_",
70
+ "_color": "__color_19rfb_gg_",
71
+ "--color": "--color_19rfb",
72
+ "__SCap": "___SCap_19rfb_gg_",
73
+ "__SLabel": "___SLabel_19rfb_gg_",
74
+ "--text-cursor": "--text-cursor_19rfb",
75
+ "--color-hovered": "--color-hovered_19rfb",
76
+ "__SLineCap": "___SLineCap_19rfb_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_1b4dz_gg_{fill:none;stroke:#a9abb6}.___STitle_1b4dz_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1b4dz)}.___STitle_1b4dz_gg_._position_top_1b4dz_gg_{text-anchor:middle}.___STitle_1b4dz_gg_._position_bottom_1b4dz_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1b4dz_gg_._position_right_1b4dz_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1b4dz_gg_._position_left_1b4dz_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_1b4dz_gg_{fill:rgba(196,199,207,.2)}"
45
+ ".___SReferenceLine_1d878_gg_{fill:none;stroke:#a9abb6}.___STitle_1d878_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1d878)}.___STitle_1d878_gg_._position_top_1d878_gg_{text-anchor:middle}.___STitle_1d878_gg_._position_bottom_1d878_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1d878_gg_._position_right_1d878_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1d878_gg_._position_left_1d878_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_1d878_gg_{fill:rgba(196,199,207,.2)}"
46
46
  /*__inner_css_end__*/
47
- , "1b4dz_gg_")
47
+ , "1d878_gg_")
48
48
  /*__reshadow_css_end__*/
49
49
  , {
50
- "__SReferenceLine": "___SReferenceLine_1b4dz_gg_",
51
- "__STitle": "___STitle_1b4dz_gg_",
52
- "--transform-origin": "--transform-origin_1b4dz",
53
- "_position_top": "_position_top_1b4dz_gg_",
54
- "_position_bottom": "_position_bottom_1b4dz_gg_",
55
- "_position_right": "_position_right_1b4dz_gg_",
56
- "_position_left": "_position_left_1b4dz_gg_",
57
- "__SBackground": "___SBackground_1b4dz_gg_"
50
+ "__SReferenceLine": "___SReferenceLine_1d878_gg_",
51
+ "__STitle": "___STitle_1d878_gg_",
52
+ "--transform-origin": "--transform-origin_1d878",
53
+ "_position_top": "_position_top_1d878_gg_",
54
+ "_position_bottom": "_position_bottom_1d878_gg_",
55
+ "_position_right": "_position_right_1d878_gg_",
56
+ "_position_left": "_position_left_1d878_gg_",
57
+ "__SBackground": "___SBackground_1d878_gg_"
58
58
  });
59
59
  var side2direction = {
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_14136_gg_{fill:#2bb3ff;transition-property:cx,cy;transition-duration:var(--duration_14136);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_14136_gg_:hover{opacity:.8}.___SScatterPlot_14136_gg_.__color_14136_gg_{fill:var(--color_14136)}.___SValue_14136_gg_{text-anchor:middle;font-size:10px;stroke:#008ff8}.___SValue_14136_gg_.__color_14136_gg_{stroke:var(--color_14136)}"
55
+ ".___SScatterPlot_5p9ij_gg_{fill:#2bb3ff;transition-property:cx,cy;transition-duration:var(--duration_5p9ij);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_5p9ij_gg_:hover{opacity:.8}.___SScatterPlot_5p9ij_gg_.__color_5p9ij_gg_{fill:var(--color_5p9ij)}.___SValue_5p9ij_gg_{text-anchor:middle;font-size:10px;stroke:#008ff8}.___SValue_5p9ij_gg_.__color_5p9ij_gg_{stroke:var(--color_5p9ij)}"
56
56
  /*__inner_css_end__*/
57
- , "14136_gg_")
57
+ , "5p9ij_gg_")
58
58
  /*__reshadow_css_end__*/
59
59
  , {
60
- "__SScatterPlot": "___SScatterPlot_14136_gg_",
61
- "--duration": "--duration_14136",
62
- "_color": "__color_14136_gg_",
63
- "--color": "--color_14136",
64
- "__SValue": "___SValue_14136_gg_"
60
+ "__SScatterPlot": "___SScatterPlot_5p9ij_gg_",
61
+ "--duration": "--duration_5p9ij",
62
+ "_color": "__color_5p9ij_gg_",
63
+ "--color": "--color_5p9ij",
64
+ "__SValue": "___SValue_5p9ij_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_1bgm5_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_1bgm5_gg_{color:#6c6e79;margin-bottom:8px}.___SDotGroup_1bgm5_gg_{display:flex;align-items:center}.___SDot_1bgm5_gg_{width:8px;height:8px;border-radius:50%;margin-right:8px;background:#2bb3ff}.___SDot_1bgm5_gg_.__color_1bgm5_gg_{background:var(--color_1bgm5)}"
63
+ ".___STooltip_nckfk_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_nckfk_gg_{color:#6c6e79;margin-bottom:8px}.___SDotGroup_nckfk_gg_{display:flex;align-items:center}.___SDot_nckfk_gg_{width:8px;height:8px;border-radius:50%;margin-right:8px;background:#2bb3ff}.___SDot_nckfk_gg_.__color_nckfk_gg_{background:var(--color_nckfk)}"
64
64
  /*__inner_css_end__*/
65
- , "1bgm5_gg_")
65
+ , "nckfk_gg_")
66
66
  /*__reshadow_css_end__*/
67
67
  , {
68
- "__STooltip": "___STooltip_1bgm5_gg_",
69
- "__STitle": "___STitle_1bgm5_gg_",
70
- "__SDotGroup": "___SDotGroup_1bgm5_gg_",
71
- "__SDot": "___SDot_1bgm5_gg_",
72
- "_color": "__color_1bgm5_gg_",
73
- "--color": "--color_1bgm5"
68
+ "__STooltip": "___STooltip_nckfk_gg_",
69
+ "__STitle": "___STitle_nckfk_gg_",
70
+ "__SDotGroup": "___SDotGroup_nckfk_gg_",
71
+ "__SDot": "___SDot_nckfk_gg_",
72
+ "_color": "__color_nckfk_gg_",
73
+ "--color": "--color_nckfk"
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_1bokb_gg_{fill:#59ddaa;stroke:#fff;stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1bokb);transition-timing-function:ease-in-out}.___SCircle_1bokb_gg_:hover{fill-opacity:.7}.___SCircle_1bokb_gg_.__color_1bokb_gg_{fill:var(--color_1bokb)}.___SIntersection_1bokb_gg_{stroke:#fff;stroke-width:2px;fill-opacity:0}.___SIntersection_1bokb_gg_:hover{fill-opacity:.1}"
51
+ ".___SCircle_1m4wt_gg_{fill:#59ddaa;stroke:#fff;stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1m4wt);transition-timing-function:ease-in-out}.___SCircle_1m4wt_gg_:hover{fill-opacity:.7}.___SCircle_1m4wt_gg_.__color_1m4wt_gg_{fill:var(--color_1m4wt)}.___SIntersection_1m4wt_gg_{stroke:#fff;stroke-width:2px;fill-opacity:0}.___SIntersection_1m4wt_gg_:hover{fill-opacity:.1}"
52
52
  /*__inner_css_end__*/
53
- , "1bokb_gg_")
53
+ , "1m4wt_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "__SCircle": "___SCircle_1bokb_gg_",
57
- "--duration": "--duration_1bokb",
58
- "_color": "__color_1bokb_gg_",
59
- "--color": "--color_1bokb",
60
- "__SIntersection": "___SIntersection_1bokb_gg_"
56
+ "__SCircle": "___SCircle_1m4wt_gg_",
57
+ "--duration": "--duration_1m4wt",
58
+ "_color": "__color_1m4wt_gg_",
59
+ "--color": "--color_1m4wt",
60
+ "__SIntersection": "___SIntersection_1m4wt_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_1bnt8_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1bnt8_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}"
43
+ ".___SPlotA11yModule_1pq5e_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1pq5e_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}"
44
44
  /*__inner_css_end__*/
45
- , "1bnt8_gg_")
45
+ , "1pq5e_gg_")
46
46
  /*__reshadow_css_end__*/
47
47
  , {
48
- "__SPlotA11yModule": "___SPlotA11yModule_1bnt8_gg_"
48
+ "__SPlotA11yModule": "___SPlotA11yModule_1pq5e_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_1lzys_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_1lzys_gg_:focus,.___SPlotA11yView_1lzys_gg_.__focus-within_1lzys_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_1lzys_gg_:focus,.___SPlotA11yView_1lzys_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_1lzys_gg_ a{cursor:pointer;text-decoration:underline;margin-bottom:8px;display:block}.___SPlotA11yView_1lzys_gg_ table,.___SPlotA11yView_1lzys_gg_ td,.___SPlotA11yView_1lzys_gg_ th{border:1px solid #000}"
47
+ ".___SPlotA11yView_89tww_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_89tww_gg_:focus,.___SPlotA11yView_89tww_gg_.__focus-within_89tww_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_89tww_gg_:focus,.___SPlotA11yView_89tww_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_89tww_gg_ a{cursor:pointer;text-decoration:underline;margin-bottom:8px;display:block}.___SPlotA11yView_89tww_gg_ table,.___SPlotA11yView_89tww_gg_ td,.___SPlotA11yView_89tww_gg_ th{border:1px solid #000}"
48
48
  /*__inner_css_end__*/
49
- , "1lzys_gg_")
49
+ , "89tww_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SPlotA11yView": "___SPlotA11yView_1lzys_gg_",
53
- "_focus-within": "__focus-within_1lzys_gg_"
52
+ "__SPlotA11yView": "___SPlotA11yView_89tww_gg_",
53
+ "_focus-within": "__focus-within_89tww_gg_"
54
54
  });
55
55
 
56
56
  var PlotA11yView = function PlotA11yView(_ref3) {
@@ -1 +1 @@
1
- {"version":3,"file":"Bar.d.js","names":[],"sources":["../../../src/types/Bar.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\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: MapProps<IBarProps & T, IBarContext>) => ReturnEl) & {\n Background: <T>(props: MapProps<IBackgroundProps & T>) => ReturnEl;\n};\n\nexport default Bar;\n"],"mappings":""}
1
+ {"version":3,"file":"Bar.d.js","names":[],"sources":["../../../src/types/Bar.d.ts"],"sourcesContent":["import { ReturnEl } from '@semcore/core';\nimport { MapProps } from './Plot';\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 * Bar click handler\n */\n onClick?: (data: { [key: string]: number }, event: Event) => void;\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: MapProps<IBarProps & T, IBarContext>) => ReturnEl) & {\n Background: <T>(props: MapProps<IBackgroundProps & T>) => ReturnEl;\n};\n\nexport default Bar;\n"],"mappings":""}