@semcore/d3-chart 2.4.8 → 2.4.10

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.
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.4.10] - 2022-11-03
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/popper` [4.13.3 ~> 4.13.4]).
10
+
11
+ ## [2.4.9] - 2022-11-03
12
+
13
+ ### Fixed
14
+
15
+ - Fixed hover and active animated for `Donut` chart.
16
+
5
17
  ## [2.4.8] - 2022-11-02
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_1uicu_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_1uicu_gg_.__color_1uicu_gg_{fill:var(--color_1uicu)}.___SAreaLine_1uicu_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_1uicu_gg_.__color_1uicu_gg_{stroke:var(--color_1uicu)}.___SArea_1uicu_gg_,.___SAreaLine_1uicu_gg_{transition-property:d;transition-duration:var(--duration_1uicu);transition-timing-function:ease-in-out}.___SNull_1uicu_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_1uicu_gg_.__hide_1uicu_gg_{display:none}"
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}"
52
52
  /*__inner_css_end__*/
53
- , "1uicu_gg_")
53
+ , "1ocxy_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "__SArea": "___SArea_1uicu_gg_",
57
- "_color": "__color_1uicu_gg_",
58
- "--color": "--color_1uicu",
59
- "__SAreaLine": "___SAreaLine_1uicu_gg_",
60
- "--duration": "--duration_1uicu",
61
- "__SNull": "___SNull_1uicu_gg_",
62
- "_hide": "__hide_1uicu_gg_"
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_"
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_15rvl_gg_{stroke:#c4c7cf}.___SAxis_15rvl_gg_.__hide_15rvl_gg_{display:none}.___STick_15rvl_gg_{font-size:12px;fill:#6c6e79}.___STick_15rvl_gg_.__hide_15rvl_gg_{display:none}.___SGrid_15rvl_gg_{fill:transparent;stroke:#e0e1e9}.___STitle_15rvl_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_15rvl)}.___STitle_15rvl_gg_._position_top_15rvl_gg_{text-anchor:middle}.___STitle_15rvl_gg_._position_bottom_15rvl_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_15rvl_gg_._position_right_15rvl_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_15rvl_gg_._position_left_15rvl_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_15rvl_gg_._position_top_15rvl_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_15rvl_gg_._position_bottom_15rvl_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_15rvl_gg_._position_right_15rvl_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_15rvl_gg_._position_left_15rvl_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_15rvl_gg_._position_custom_0_15rvl_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_15rvl_gg_._position_custom_1_15rvl_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
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}"
48
48
  /*__inner_css_end__*/
49
- , "15rvl_gg_")
49
+ , "1sss4_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SAxis": "___SAxis_15rvl_gg_",
53
- "_hide": "__hide_15rvl_gg_",
54
- "__STick": "___STick_15rvl_gg_",
55
- "__SGrid": "___SGrid_15rvl_gg_",
56
- "__STitle": "___STitle_15rvl_gg_",
57
- "--transform-origin": "--transform-origin_15rvl",
58
- "_position_top": "_position_top_15rvl_gg_",
59
- "_position_bottom": "_position_bottom_15rvl_gg_",
60
- "_position_right": "_position_right_15rvl_gg_",
61
- "_position_left": "_position_left_15rvl_gg_",
62
- "_position_custom_0": "_position_custom_0_15rvl_gg_",
63
- "_position_custom_1": "_position_custom_1_15rvl_gg_"
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_"
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_bbmmd_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_bbmmd);transition-timing-function:ease-in-out}.___SBar_bbmmd_gg_.__color_bbmmd_gg_{fill:var(--color_bbmmd)}.___SBar_bbmmd_gg_.__hide_bbmmd_gg_{display:none}.___SBackground_bbmmd_gg_{fill:#c4c7cf}"
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}"
48
48
  /*__inner_css_end__*/
49
- , "bbmmd_gg_")
49
+ , "fgctm_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SBar": "___SBar_bbmmd_gg_",
53
- "--duration": "--duration_bbmmd",
54
- "_color": "__color_bbmmd_gg_",
55
- "--color": "--color_bbmmd",
56
- "_hide": "__hide_bbmmd_gg_",
57
- "__SBackground": "___SBackground_bbmmd_gg_"
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_"
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_1un3j_gg_{fill:#2bb3ff;stroke:#fff;stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_1un3j);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_1un3j_gg_:hover{opacity:.8}.___SBubble_1un3j_gg_.__color_1un3j_gg_{fill:var(--color_1un3j)}.___SCenter_1un3j_gg_{text-anchor:middle;font-size:11px;stroke:#2bb3ff}.___SCenter_1un3j_gg_.__color_1un3j_gg_{stroke:var(--color_1un3j)}.___SLabel_1un3j_gg_{fill:#2bb3ff}.___SLabel_1un3j_gg_._position_right_1un3j_gg_{text-anchor:end}.___SLabel_1un3j_gg_._position_left_1un3j_gg_{text-anchor:start}.___SLabel_1un3j_gg_.__color_1un3j_gg_{fill:var(--color_1un3j)}"
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)}"
60
60
  /*__inner_css_end__*/
61
- , "1un3j_gg_")
61
+ , "11vyj_gg_")
62
62
  /*__reshadow_css_end__*/
63
63
  , {
64
- "__SBubble": "___SBubble_1un3j_gg_",
65
- "--duration": "--duration_1un3j",
66
- "_color": "__color_1un3j_gg_",
67
- "--color": "--color_1un3j",
68
- "__SCenter": "___SCenter_1un3j_gg_",
69
- "__SLabel": "___SLabel_1un3j_gg_",
70
- "_position_right": "_position_right_1un3j_gg_",
71
- "_position_left": "_position_left_1un3j_gg_"
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_"
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_1yoih_gg_{stroke:#fff;fill:#2bb3ff}.___SPie_1yoih_gg_.__color_1yoih_gg_{fill:var(--color_1yoih)}.___SEmptyData_1yoih_gg_{fill:#e0e1e9}.___SEmptyData_1yoih_gg_.__color_1yoih_gg_{fill:var(--color_1yoih)}.___SLabel_1yoih_gg_{text-anchor:middle;vertical-anchor:middle}"
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}"
70
70
  /*__inner_css_end__*/
71
- , "1yoih_gg_")
71
+ , "i5d6o_gg_")
72
72
  /*__reshadow_css_end__*/
73
73
  , {
74
- "__SPie": "___SPie_1yoih_gg_",
75
- "_color": "__color_1yoih_gg_",
76
- "--color": "--color_1yoih",
77
- "__SEmptyData": "___SEmptyData_1yoih_gg_",
78
- "__SLabel": "___SLabel_1yoih_gg_"
74
+ "__SPie": "___SPie_i5d6o_gg_",
75
+ "_color": "__color_i5d6o_gg_",
76
+ "--color": "--color_i5d6o",
77
+ "__SEmptyData": "___SEmptyData_i5d6o_gg_",
78
+ "__SLabel": "___SLabel_i5d6o_gg_"
79
79
  });
80
80
  var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
81
81
 
@@ -199,7 +199,6 @@ var DonutRoot = /*#__PURE__*/function (_Component) {
199
199
  var active = props.active,
200
200
  data = props.data,
201
201
  selector = props.selector;
202
- innerRadius = innerRadius > increaseFactor ? innerRadius - increaseFactor : innerRadius;
203
202
  var outerRadius = getOuterRadius(_this.asProps);
204
203
  active ? animationHoverPie({
205
204
  d: data,
@@ -1 +1 @@
1
- {"version":3,"file":"Donut.js","names":["DEFAULT_INSTANCE","Symbol","animationInitialPie","halfsize","d3Arc","d3ArcOut","arcs","activeIndexPie","_","ind","d","iStart","interpolate","Math","PI","startAngle","iEnd","endAngle","t","animationUpdatePie","_current","i","animationHoverPie","selector","duration","innerRadius","outerRadius","transition","selection","select","attrTween","min","max","arc","increaseFactor","getOuterRadius","size","width","height","minORmax","DonutRoot","canUseDOM","document","createElement","undefined","visible","props","x","clientX","y","clientY","eventEmitter","asProps","virtualElement","getBoundingClientRect","generateGetBoundingClientRect","CONSTANT","VIRTUAL_ELEMENT","emit","active","data","id","uid","top","right","bottom","left","Children","d3Pie","pieData","Object","entries","keys","React","toArray","getOriginChildren","reduce","acc","child","isValidElement","type","Donut","Pie","push","dataKey","filter","key","includes","sort","a","b","indexOf","minValue","cur","map","find","$animationActivePie","animationActivePie","onMouseMove","bindHandlerTooltip","onMouseLeave","onMouseOver","e","target","getAttribute","onMouseOut","prevProps","$rootProps","selectAll","each","dataHintsHandler","establishDataType","Element","k","getArcs","Component","style","uniqueIDEnhancement","pie","value","SPie","styles","color","name","other","useState","isMount","setIsMount","useEffect","describeValueEntity","sstyled","EmptyData","SEmptyData","Label","SLabel","children","setTitle"],"sources":["../../src/Donut.jsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { arc, pie } from 'd3-shape';\nimport { interpolate } from 'd3-interpolate';\nimport { transition } from 'd3-transition';\nimport { Component, sstyled } from '@semcore/core';\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport getOriginChildren from '@semcore/utils/lib/getOriginChildren';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport { CONSTANT } from './utils';\n\nimport style from './style/donut.shadow.css';\n\nconst DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');\n\nfunction animationInitialPie({ halfsize, d3Arc, d3ArcOut, arcs, activeIndexPie }) {\n return function (_, ind) {\n const d = arcs[ind];\n if (!d) return () => '';\n const iStart = interpolate(halfsize ? -Math.PI / 2 : 0, d.startAngle);\n const iEnd = interpolate(halfsize ? -Math.PI / 2 : 0, d.endAngle);\n return function (t) {\n d.startAngle = iStart(t);\n d.endAngle = iEnd(t);\n return ind === activeIndexPie ? d3ArcOut(d) : d3Arc(d);\n };\n };\n}\n\nfunction animationUpdatePie({ halfsize, arcs, d3Arc }) {\n return function (_, ind) {\n const d = arcs[ind];\n if (this._current) {\n const i = interpolate(this._current, d);\n this._current = i(0);\n return function (t) {\n return d3Arc(i(t));\n };\n } else {\n this._current = d;\n return animationInitialPie({ halfsize, arcs, d3Arc })(_, ind);\n }\n };\n}\n\nfunction animationHoverPie({ d, selector, duration, innerRadius, outerRadius }) {\n if (duration > 0) {\n transition()\n .selection()\n .select(selector)\n .transition()\n .duration(duration)\n .attrTween('d', function () {\n if (!d) return () => '';\n const [min, max] = outerRadius;\n const i = interpolate(min, max);\n return function (t) {\n const d3ArcOut = arc().innerRadius(innerRadius).outerRadius(i(t));\n return d3ArcOut(d);\n };\n });\n }\n}\n\nconst increaseFactor = 8;\n\nfunction getOuterRadius({ size, halfsize, outerRadius }) {\n const [width, height] = size;\n const minORmax = halfsize ? Math.max : Math.min;\n return outerRadius || minORmax(width - increaseFactor * 2, height - increaseFactor * 2) / 2;\n}\n\nclass DonutRoot extends Component {\n static displayName = 'Donut';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = ({\n innerRadius = 0,\n outerRadius,\n halfsize = false,\n $rootProps: { size },\n }) => {\n const d3Arc = arc()\n .outerRadius(getOuterRadius({ size, halfsize, outerRadius }))\n .innerRadius(innerRadius);\n\n const d3ArcOut = arc()\n .outerRadius(getOuterRadius({ size, halfsize, outerRadius }) + increaseFactor)\n .innerRadius(innerRadius);\n\n let d3Pie = pie()\n .sort(null)\n .value(([, value]) => value);\n d3Pie[DEFAULT_INSTANCE] = true;\n\n if (halfsize) {\n d3Pie = d3Pie.startAngle(-Math.PI / 2).endAngle(Math.PI / 2);\n }\n return {\n d3Pie,\n d3Arc,\n d3ArcOut,\n duration: 500,\n };\n };\n\n get id() {\n const { uid, id } = this.asProps;\n return id || uid;\n }\n\n virtualElement = canUseDOM() ? document.createElement('div') : {};\n activeIndexPie = undefined;\n\n generateGetBoundingClientRect(x = 0, y = 0) {\n return () => ({ width: 0, height: 0, top: y, right: x, bottom: y, left: x });\n }\n\n getArcs() {\n const { Children, data, d3Pie } = this.asProps;\n let pieData = Object.entries(data);\n\n if (d3Pie[DEFAULT_INSTANCE]) {\n const keys = React.Children.toArray(getOriginChildren(Children)).reduce((acc, child) => {\n if (React.isValidElement(child) && child.type === Donut.Pie) {\n acc.push(child.props.dataKey);\n }\n return acc;\n }, []);\n pieData = Object.entries(data)\n .filter(([key]) => keys.includes(key))\n .sort(([a], [b]) => (keys.indexOf(a) > keys.indexOf(b) ? 1 : -1));\n }\n const minValue =\n pieData.reduce((acc, cur) => {\n if (cur[1]) acc += cur[1];\n return acc;\n }, 0) / 100;\n pieData = pieData.map((d) => {\n if (d[1] && d[1] < minValue) d[1] = minValue;\n return d;\n });\n return d3Pie(pieData);\n }\n\n bindHandlerTooltip =\n (visible, props) =>\n ({ clientX: x, clientY: y }) => {\n const { eventEmitter } = this.asProps;\n this.virtualElement.getBoundingClientRect = this.generateGetBoundingClientRect(x, y);\n this.virtualElement[CONSTANT.VIRTUAL_ELEMENT] = true;\n eventEmitter.emit('onTooltipVisible', visible, props, this.virtualElement);\n };\n\n animationActivePie = (props) => {\n let { duration, innerRadius } = this.asProps;\n const { active, data, selector } = props;\n innerRadius = innerRadius > increaseFactor ? innerRadius - increaseFactor : innerRadius;\n const outerRadius = getOuterRadius(this.asProps);\n active\n ? animationHoverPie({\n d: data,\n selector: `#${this.id} ${selector}`,\n duration: duration === 0 ? 0 : 300,\n innerRadius,\n outerRadius: [outerRadius, outerRadius + increaseFactor],\n })\n : animationHoverPie({\n d: data,\n selector: `#${this.id} ${selector}`,\n duration: duration === 0 ? 0 : 300,\n innerRadius,\n outerRadius: [outerRadius + increaseFactor, outerRadius],\n });\n };\n\n getPieProps(props, ind) {\n const { d3Arc, d3ArcOut } = this.asProps;\n const { active } = props;\n const data = this.arcs.find((arc) => arc.data[0] === props.dataKey);\n if (active) {\n this.activeIndexPie = ind;\n }\n\n return {\n data,\n d3Arc,\n d3ArcOut,\n $animationActivePie: this.animationActivePie,\n onMouseMove: this.bindHandlerTooltip(true, props),\n onMouseLeave: this.bindHandlerTooltip(false, props),\n onMouseOver: (e) => {\n !active &&\n this.animationActivePie({\n active: true,\n data,\n selector: `[d=\"${e.target.getAttribute('d')}\"]`,\n });\n },\n onMouseOut: (e) => {\n !active &&\n this.animationActivePie({\n active: false,\n data,\n selector: `[d=\"${e.target.getAttribute('d')}\"]`,\n });\n },\n };\n }\n\n getEmptyDataProps() {\n const { d3Arc } = this.asProps;\n return {\n d3Arc,\n };\n }\n\n componentDidUpdate(prevProps) {\n const { data, duration, d3Arc, halfsize } = this.asProps;\n const arcs = this.arcs;\n if (prevProps.$rootProps.data !== data && duration > 0) {\n transition()\n .selection()\n .selectAll(`#${this.id} [data-ui-name=\"Donut.Pie\"]`)\n .transition()\n .duration(duration)\n .attrTween('d', animationUpdatePie({ d3Arc, arcs, halfsize }));\n }\n }\n\n componentDidMount() {\n const { duration, d3Arc, halfsize, d3ArcOut } = this.asProps;\n const arcs = this.arcs;\n\n if (duration > 0) {\n transition()\n .selection()\n .selectAll(`#${this.id} [data-ui-name=\"Donut.Pie\"]`)\n .each(function (_, ind) {\n this._current = arcs[ind];\n })\n .transition()\n .duration(duration)\n .attrTween(\n 'd',\n animationInitialPie({\n halfsize,\n d3Arc,\n d3ArcOut,\n arcs,\n activeIndexPie: this.activeIndexPie,\n }),\n );\n }\n }\n\n render() {\n const { halfsize, size } = this.asProps;\n this.asProps.dataHintsHandler.establishDataType('values-set');\n const [width, height] = size;\n const Element = this.Element;\n const k = halfsize ? 1 : 2;\n this.arcs = this.getArcs();\n return (\n <Element\n aria-hidden\n id={this.id}\n render=\"g\"\n childrenPosition=\"inside\"\n transform={`translate(${width / 2},${height / k})`}\n />\n );\n }\n}\n\nfunction Pie({\n Element: SPie,\n styles,\n d3Arc,\n data,\n color,\n $animationActivePie,\n active,\n d3ArcOut,\n name,\n dataKey,\n dataHintsHandler,\n ...other\n}) {\n const [isMount, setIsMount] = useState(false);\n\n useEffect(() => {\n // do not run animation on first render\n if (!isMount) {\n setIsMount(true);\n return;\n }\n if (active !== undefined && active !== null) {\n $animationActivePie({ ...other, active, data, selector: `[name=\"${other.name}\"]` });\n }\n }, [active]);\n\n dataHintsHandler.establishDataType('values-set');\n dataHintsHandler.describeValueEntity(dataKey, name);\n\n return sstyled(styles)(\n <SPie render=\"path\" color={color} d={active ? d3ArcOut(data) : d3Arc(data)} />,\n );\n}\n\nfunction EmptyData({ Element: SEmptyData, styles, d3Arc, color }) {\n return sstyled(styles)(\n <SEmptyData render=\"path\" color={color} d={d3Arc({ endAngle: Math.PI * 2, startAngle: 0 })} />,\n );\n}\n\nfunction Label({ Element: SLabel, styles, Children, children, dataHintsHandler }) {\n dataHintsHandler.setTitle('vertical', children);\n\n return sstyled(styles)(\n <SLabel render=\"text\" x=\"0\" y=\"0\" aria-hidden>\n <Children />\n </SLabel>,\n );\n}\n\nconst Donut = createElement(DonutRoot, { Pie, Label, EmptyData });\n\nexport default Donut;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AAJA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,gBAAgB,GAAGC,MAAM,CAAC,kBAAD,CAA/B;;AA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AAwB;EAAA,IAAhBrH,KAAgB,UAAhBA,KAAgB;EAAA,IAATsH,KAAS,UAATA,KAAS;EAChE,eAAO,IAAAQ,aAAA,EAAQT,MAAR,CAAP,eACE,gCAAC,UAAD;IAAA,UAAmB,MAAnB;IAAA,SAAiCC,KAAjC;IAAA,KAA2CtH,KAAK,CAAC;MAAEa,QAAQ,EAAEJ,IAAI,CAACC,EAAL,GAAU,CAAtB;MAAyBC,UAAU,EAAE;IAArC,CAAD;EAAhD,GADF;AAGD;;AAED,SAASsH,KAAT,SAAkF;EAAA;;EAAA,IAAxDC,MAAwD,UAAjEtB,OAAiE;EAAA,IAAhDS,MAAgD,UAAhDA,MAAgD;EAAA,IAAxCtD,QAAwC,UAAxCA,QAAwC;EAAA,IAA9BoE,QAA8B,UAA9BA,QAA8B;EAAA,IAApBzB,gBAAoB,UAApBA,gBAAoB;EAChFA,gBAAgB,CAAC0B,QAAjB,CAA0B,UAA1B,EAAsCD,QAAtC;EAEA,eAAO,IAAAL,aAAA,EAAQT,MAAR,CAAP,eACE,gCAAC,MAAD;IAAA,UAAe,MAAf;IAAA,KAAwB,GAAxB;IAAA,KAA8B,GAA9B;IAAA;EAAA,iBACE,gCAAC,QAAD,2BADF,CADF;AAKD;;AAED,IAAMxC,KAAK,GAAG,IAAAtC,yBAAA,EAAcH,SAAd,EAAyB;EAAE0C,GAAG,EAAHA,GAAF;EAAOmD,KAAK,EAALA,KAAP;EAAcF,SAAS,EAATA;AAAd,CAAzB,CAAd;eAEelD,K"}
1
+ {"version":3,"file":"Donut.js","names":["DEFAULT_INSTANCE","Symbol","animationInitialPie","halfsize","d3Arc","d3ArcOut","arcs","activeIndexPie","_","ind","d","iStart","interpolate","Math","PI","startAngle","iEnd","endAngle","t","animationUpdatePie","_current","i","animationHoverPie","selector","duration","innerRadius","outerRadius","transition","selection","select","attrTween","min","max","arc","increaseFactor","getOuterRadius","size","width","height","minORmax","DonutRoot","canUseDOM","document","createElement","undefined","visible","props","x","clientX","y","clientY","eventEmitter","asProps","virtualElement","getBoundingClientRect","generateGetBoundingClientRect","CONSTANT","VIRTUAL_ELEMENT","emit","active","data","id","uid","top","right","bottom","left","Children","d3Pie","pieData","Object","entries","keys","React","toArray","getOriginChildren","reduce","acc","child","isValidElement","type","Donut","Pie","push","dataKey","filter","key","includes","sort","a","b","indexOf","minValue","cur","map","find","$animationActivePie","animationActivePie","onMouseMove","bindHandlerTooltip","onMouseLeave","onMouseOver","e","target","getAttribute","onMouseOut","prevProps","$rootProps","selectAll","each","dataHintsHandler","establishDataType","Element","k","getArcs","Component","style","uniqueIDEnhancement","pie","value","SPie","styles","color","name","other","useState","isMount","setIsMount","useEffect","describeValueEntity","sstyled","EmptyData","SEmptyData","Label","SLabel","children","setTitle"],"sources":["../../src/Donut.jsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { arc, pie } from 'd3-shape';\nimport { interpolate } from 'd3-interpolate';\nimport { transition } from 'd3-transition';\nimport { Component, sstyled } from '@semcore/core';\nimport canUseDOM from '@semcore/utils/lib/canUseDOM';\nimport getOriginChildren from '@semcore/utils/lib/getOriginChildren';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport { CONSTANT } from './utils';\n\nimport style from './style/donut.shadow.css';\n\nconst DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');\n\nfunction animationInitialPie({ halfsize, d3Arc, d3ArcOut, arcs, activeIndexPie }) {\n return function (_, ind) {\n const d = arcs[ind];\n if (!d) return () => '';\n const iStart = interpolate(halfsize ? -Math.PI / 2 : 0, d.startAngle);\n const iEnd = interpolate(halfsize ? -Math.PI / 2 : 0, d.endAngle);\n return function (t) {\n d.startAngle = iStart(t);\n d.endAngle = iEnd(t);\n return ind === activeIndexPie ? d3ArcOut(d) : d3Arc(d);\n };\n };\n}\n\nfunction animationUpdatePie({ halfsize, arcs, d3Arc }) {\n return function (_, ind) {\n const d = arcs[ind];\n if (this._current) {\n const i = interpolate(this._current, d);\n this._current = i(0);\n return function (t) {\n return d3Arc(i(t));\n };\n } else {\n this._current = d;\n return animationInitialPie({ halfsize, arcs, d3Arc })(_, ind);\n }\n };\n}\n\nfunction animationHoverPie({ d, selector, duration, innerRadius, outerRadius }) {\n if (duration > 0) {\n transition()\n .selection()\n .select(selector)\n .transition()\n .duration(duration)\n .attrTween('d', function () {\n if (!d) return () => '';\n const [min, max] = outerRadius;\n const i = interpolate(min, max);\n return function (t) {\n const d3ArcOut = arc().innerRadius(innerRadius).outerRadius(i(t));\n return d3ArcOut(d);\n };\n });\n }\n}\n\nconst increaseFactor = 8;\n\nfunction getOuterRadius({ size, halfsize, outerRadius }) {\n const [width, height] = size;\n const minORmax = halfsize ? Math.max : Math.min;\n return outerRadius || minORmax(width - increaseFactor * 2, height - increaseFactor * 2) / 2;\n}\n\nclass DonutRoot extends Component {\n static displayName = 'Donut';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = ({\n innerRadius = 0,\n outerRadius,\n halfsize = false,\n $rootProps: { size },\n }) => {\n const d3Arc = arc()\n .outerRadius(getOuterRadius({ size, halfsize, outerRadius }))\n .innerRadius(innerRadius);\n\n const d3ArcOut = arc()\n .outerRadius(getOuterRadius({ size, halfsize, outerRadius }) + increaseFactor)\n .innerRadius(innerRadius);\n\n let d3Pie = pie()\n .sort(null)\n .value(([, value]) => value);\n d3Pie[DEFAULT_INSTANCE] = true;\n\n if (halfsize) {\n d3Pie = d3Pie.startAngle(-Math.PI / 2).endAngle(Math.PI / 2);\n }\n return {\n d3Pie,\n d3Arc,\n d3ArcOut,\n duration: 500,\n };\n };\n\n get id() {\n const { uid, id } = this.asProps;\n return id || uid;\n }\n\n virtualElement = canUseDOM() ? document.createElement('div') : {};\n activeIndexPie = undefined;\n\n generateGetBoundingClientRect(x = 0, y = 0) {\n return () => ({ width: 0, height: 0, top: y, right: x, bottom: y, left: x });\n }\n\n getArcs() {\n const { Children, data, d3Pie } = this.asProps;\n let pieData = Object.entries(data);\n\n if (d3Pie[DEFAULT_INSTANCE]) {\n const keys = React.Children.toArray(getOriginChildren(Children)).reduce((acc, child) => {\n if (React.isValidElement(child) && child.type === Donut.Pie) {\n acc.push(child.props.dataKey);\n }\n return acc;\n }, []);\n pieData = Object.entries(data)\n .filter(([key]) => keys.includes(key))\n .sort(([a], [b]) => (keys.indexOf(a) > keys.indexOf(b) ? 1 : -1));\n }\n const minValue =\n pieData.reduce((acc, cur) => {\n if (cur[1]) acc += cur[1];\n return acc;\n }, 0) / 100;\n pieData = pieData.map((d) => {\n if (d[1] && d[1] < minValue) d[1] = minValue;\n return d;\n });\n return d3Pie(pieData);\n }\n\n bindHandlerTooltip =\n (visible, props) =>\n ({ clientX: x, clientY: y }) => {\n const { eventEmitter } = this.asProps;\n this.virtualElement.getBoundingClientRect = this.generateGetBoundingClientRect(x, y);\n this.virtualElement[CONSTANT.VIRTUAL_ELEMENT] = true;\n eventEmitter.emit('onTooltipVisible', visible, props, this.virtualElement);\n };\n\n animationActivePie = (props) => {\n const { duration, innerRadius } = this.asProps;\n const { active, data, selector } = props;\n const outerRadius = getOuterRadius(this.asProps);\n active\n ? animationHoverPie({\n d: data,\n selector: `#${this.id} ${selector}`,\n duration: duration === 0 ? 0 : 300,\n innerRadius,\n outerRadius: [outerRadius, outerRadius + increaseFactor],\n })\n : animationHoverPie({\n d: data,\n selector: `#${this.id} ${selector}`,\n duration: duration === 0 ? 0 : 300,\n innerRadius,\n outerRadius: [outerRadius + increaseFactor, outerRadius],\n });\n };\n\n getPieProps(props, ind) {\n const { d3Arc, d3ArcOut } = this.asProps;\n const { active } = props;\n const data = this.arcs.find((arc) => arc.data[0] === props.dataKey);\n if (active) {\n this.activeIndexPie = ind;\n }\n\n return {\n data,\n d3Arc,\n d3ArcOut,\n $animationActivePie: this.animationActivePie,\n onMouseMove: this.bindHandlerTooltip(true, props),\n onMouseLeave: this.bindHandlerTooltip(false, props),\n onMouseOver: (e) => {\n !active &&\n this.animationActivePie({\n active: true,\n data,\n selector: `[d=\"${e.target.getAttribute('d')}\"]`,\n });\n },\n onMouseOut: (e) => {\n !active &&\n this.animationActivePie({\n active: false,\n data,\n selector: `[d=\"${e.target.getAttribute('d')}\"]`,\n });\n },\n };\n }\n\n getEmptyDataProps() {\n const { d3Arc } = this.asProps;\n return {\n d3Arc,\n };\n }\n\n componentDidUpdate(prevProps) {\n const { data, duration, d3Arc, halfsize } = this.asProps;\n const arcs = this.arcs;\n if (prevProps.$rootProps.data !== data && duration > 0) {\n transition()\n .selection()\n .selectAll(`#${this.id} [data-ui-name=\"Donut.Pie\"]`)\n .transition()\n .duration(duration)\n .attrTween('d', animationUpdatePie({ d3Arc, arcs, halfsize }));\n }\n }\n\n componentDidMount() {\n const { duration, d3Arc, halfsize, d3ArcOut } = this.asProps;\n const arcs = this.arcs;\n\n if (duration > 0) {\n transition()\n .selection()\n .selectAll(`#${this.id} [data-ui-name=\"Donut.Pie\"]`)\n .each(function (_, ind) {\n this._current = arcs[ind];\n })\n .transition()\n .duration(duration)\n .attrTween(\n 'd',\n animationInitialPie({\n halfsize,\n d3Arc,\n d3ArcOut,\n arcs,\n activeIndexPie: this.activeIndexPie,\n }),\n );\n }\n }\n\n render() {\n const { halfsize, size } = this.asProps;\n this.asProps.dataHintsHandler.establishDataType('values-set');\n const [width, height] = size;\n const Element = this.Element;\n const k = halfsize ? 1 : 2;\n this.arcs = this.getArcs();\n return (\n <Element\n aria-hidden\n id={this.id}\n render=\"g\"\n childrenPosition=\"inside\"\n transform={`translate(${width / 2},${height / k})`}\n />\n );\n }\n}\n\nfunction Pie({\n Element: SPie,\n styles,\n d3Arc,\n data,\n color,\n $animationActivePie,\n active,\n d3ArcOut,\n name,\n dataKey,\n dataHintsHandler,\n ...other\n}) {\n const [isMount, setIsMount] = useState(false);\n\n useEffect(() => {\n // do not run animation on first render\n if (!isMount) {\n setIsMount(true);\n return;\n }\n if (active !== undefined && active !== null) {\n $animationActivePie({ ...other, active, data, selector: `[name=\"${other.name}\"]` });\n }\n }, [active]);\n\n dataHintsHandler.establishDataType('values-set');\n dataHintsHandler.describeValueEntity(dataKey, name);\n\n return sstyled(styles)(\n <SPie render=\"path\" color={color} d={active ? d3ArcOut(data) : d3Arc(data)} />,\n );\n}\n\nfunction EmptyData({ Element: SEmptyData, styles, d3Arc, color }) {\n return sstyled(styles)(\n <SEmptyData render=\"path\" color={color} d={d3Arc({ endAngle: Math.PI * 2, startAngle: 0 })} />,\n );\n}\n\nfunction Label({ Element: SLabel, styles, Children, children, dataHintsHandler }) {\n dataHintsHandler.setTitle('vertical', children);\n\n return sstyled(styles)(\n <SLabel render=\"text\" x=\"0\" y=\"0\" aria-hidden>\n <Children />\n </SLabel>,\n );\n}\n\nconst Donut = createElement(DonutRoot, { Pie, Label, EmptyData });\n\nexport default Donut;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AAJA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,gBAAgB,GAAGC,MAAM,CAAC,kBAAD,CAA/B;;AAEA,SAASC,mBAAT,QAAkF;EAAA,IAAnDC,QAAmD,SAAnDA,QAAmD;EAAA,IAAzCC,KAAyC,SAAzCA,KAAyC;EAAA,IAAlCC,QAAkC,SAAlCA,QAAkC;EAAA,IAAxBC,IAAwB,SAAxBA,IAAwB;EAAA,IAAlBC,cAAkB,SAAlBA,cAAkB;EAChF,OAAO,UAAUC,CAAV,EAAaC,GAAb,EAAkB;IACvB,IAAMC,CAAC,GAAGJ,IAAI,CAACG,GAAD,CAAd;IACA,IAAI,CAACC,CAAL,EAAQ,OAAO;MAAA,OAAM,EAAN;IAAA,CAAP;IACR,IAAMC,MAAM,GAAG,IAAAC,0BAAA,EAAYT,QAAQ,GAAG,CAACU,IAAI,CAACC,EAAN,GAAW,CAAd,GAAkB,CAAtC,EAAyCJ,CAAC,CAACK,UAA3C,CAAf;IACA,IAAMC,IAAI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AAL,aAAA,EAAQT,MAAR,CAAP,eACE,gCAAC,MAAD;IAAA,UAAe,MAAf;IAAA,KAAwB,GAAxB;IAAA,KAA8B,GAA9B;IAAA;EAAA,iBACE,gCAAC,QAAD,2BADF,CADF;AAKD;;AAED,IAAMxC,KAAK,GAAG,IAAAtC,yBAAA,EAAcH,SAAd,EAAyB;EAAE0C,GAAG,EAAHA,GAAF;EAAOmD,KAAK,EAALA,KAAP;EAAcF,SAAS,EAATA;AAAd,CAAzB,CAAd;eAEelD,K"}
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_czaw2_gg_ .___SDot_czaw2_gg_{transition-duration:var(--duration_czaw2)}.___SDot_czaw2_gg_{stroke-width:2px;stroke:#fff;r:6px;fill:#2bb3ff;transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_czaw2_gg_.__hide_czaw2_gg_{display:none}.___SDot_czaw2_gg_.__active_czaw2_gg_{r:8px}.___SDot_czaw2_gg_.__color_czaw2_gg_{fill:var(--color_czaw2)}"
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)}"
36
36
  /*__inner_css_end__*/
37
- , "czaw2_gg_")
37
+ , "12n29_gg_")
38
38
  /*__reshadow_css_end__*/
39
39
  , {
40
- "__SDots": "___SDots_czaw2_gg_",
41
- "__SDot": "___SDot_czaw2_gg_",
42
- "--duration": "--duration_czaw2",
43
- "_hide": "__hide_czaw2_gg_",
44
- "_active": "__active_czaw2_gg_",
45
- "_color": "__color_czaw2_gg_",
46
- "--color": "--color_czaw2"
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"
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_bbmmd_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_bbmmd);transition-timing-function:ease-in-out}.___SBar_bbmmd_gg_.__color_bbmmd_gg_{fill:var(--color_bbmmd)}.___SBar_bbmmd_gg_.__hide_bbmmd_gg_{display:none}.___SBackground_bbmmd_gg_{fill:#c4c7cf}"
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}"
46
46
  /*__inner_css_end__*/
47
- , "bbmmd_gg_")
47
+ , "fgctm_gg_")
48
48
  /*__reshadow_css_end__*/
49
49
  , {
50
- "__SBar": "___SBar_bbmmd_gg_",
51
- "--duration": "--duration_bbmmd",
52
- "_color": "__color_bbmmd_gg_",
53
- "--color": "--color_bbmmd",
54
- "_hide": "__hide_bbmmd_gg_",
55
- "__SBackground": "___SBackground_bbmmd_gg_"
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_"
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_dlgw6_gg_{stroke:#a9abb6}.___SHoverRect_dlgw6_gg_{fill:rgba(196,199,207,.3)}"
47
+ ".___SHoverLine_qwqec_gg_{stroke:#a9abb6}.___SHoverRect_qwqec_gg_{fill:rgba(196,199,207,.3)}"
48
48
  /*__inner_css_end__*/
49
- , "dlgw6_gg_")
49
+ , "qwqec_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SHoverLine": "___SHoverLine_dlgw6_gg_",
53
- "__SHoverRect": "___SHoverRect_dlgw6_gg_"
52
+ "__SHoverLine": "___SHoverLine_qwqec_gg_",
53
+ "__SHoverRect": "___SHoverRect_qwqec_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_r2txj_gg_{fill:transparent;stroke-width:3;stroke:#2bb3ff;transition-property:d;transition-duration:var(--duration_r2txj);transition-timing-function:ease-in-out}.___SLine_r2txj_gg_.__color_r2txj_gg_{stroke:var(--color_r2txj)}.___SLine_r2txj_gg_.__hide_r2txj_gg_{display:none}.___SNull_r2txj_gg_{fill:transparent;stroke:#c4c7cf;stroke-dasharray:4}.___SNull_r2txj_gg_.__hide_r2txj_gg_{display:none}"
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}"
50
50
  /*__inner_css_end__*/
51
- , "r2txj_gg_")
51
+ , "1lea2_gg_")
52
52
  /*__reshadow_css_end__*/
53
53
  , {
54
- "__SLine": "___SLine_r2txj_gg_",
55
- "--duration": "--duration_r2txj",
56
- "_color": "__color_r2txj_gg_",
57
- "--color": "--color_r2txj",
58
- "_hide": "__hide_r2txj_gg_",
59
- "__SNull": "___SNull_r2txj_gg_"
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_"
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_1ps46_gg_{overflow:hidden}.___SPlot_1ps46_gg_:active,.___SPlot_1ps46_gg_:focus{outline:0;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_1ps46_gg_.__keyboardFocused_1ps46_gg_{border:1px solid #008ff8;box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}"
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)}"
62
62
  /*__inner_css_end__*/
63
- , "1ps46_gg_")
63
+ , "1lczr_gg_")
64
64
  /*__reshadow_css_end__*/
65
65
  , {
66
- "__SPlot": "___SPlot_1ps46_gg_",
67
- "_keyboardFocused": "__keyboardFocused_1ps46_gg_"
66
+ "__SPlot": "___SPlot_1lczr_gg_",
67
+ "_keyboardFocused": "__keyboardFocused_1lczr_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_g6fwx_gg_{cursor:pointer;fill:#008ff8}.___SLine_g6fwx_gg_{stroke:#008ff8}.___SLine_g6fwx_gg_.__color_g6fwx_gg_{stroke:var(--color_g6fwx)}.___SCap_g6fwx_gg_{transition:r .1s}.___SLabel_g6fwx_gg_{fill:var(--color_g6fwx);cursor:var(--text-cursor_g6fwx)}.___SRadian_g6fwx_gg_:hover .___SLabel_g6fwx_gg_{fill:var(--color-hovered_g6fwx)}@media (prefers-reduced-motion){.___SLineCap_g6fwx_gg_{transition:none}}"
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}}"
64
64
  /*__inner_css_end__*/
65
- , "g6fwx_gg_")
65
+ , "1nrkh_gg_")
66
66
  /*__reshadow_css_end__*/
67
67
  , {
68
- "__SRadian": "___SRadian_g6fwx_gg_",
69
- "__SLine": "___SLine_g6fwx_gg_",
70
- "_color": "__color_g6fwx_gg_",
71
- "--color": "--color_g6fwx",
72
- "__SCap": "___SCap_g6fwx_gg_",
73
- "__SLabel": "___SLabel_g6fwx_gg_",
74
- "--text-cursor": "--text-cursor_g6fwx",
75
- "--color-hovered": "--color-hovered_g6fwx",
76
- "__SLineCap": "___SLineCap_g6fwx_gg_"
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_"
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_1g3zy_gg_{fill:none;stroke:#a9abb6}.___STitle_1g3zy_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1g3zy)}.___STitle_1g3zy_gg_._position_top_1g3zy_gg_{text-anchor:middle}.___STitle_1g3zy_gg_._position_bottom_1g3zy_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1g3zy_gg_._position_right_1g3zy_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1g3zy_gg_._position_left_1g3zy_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_1g3zy_gg_{fill:rgba(196,199,207,.2)}"
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)}"
46
46
  /*__inner_css_end__*/
47
- , "1g3zy_gg_")
47
+ , "1b4dz_gg_")
48
48
  /*__reshadow_css_end__*/
49
49
  , {
50
- "__SReferenceLine": "___SReferenceLine_1g3zy_gg_",
51
- "__STitle": "___STitle_1g3zy_gg_",
52
- "--transform-origin": "--transform-origin_1g3zy",
53
- "_position_top": "_position_top_1g3zy_gg_",
54
- "_position_bottom": "_position_bottom_1g3zy_gg_",
55
- "_position_right": "_position_right_1g3zy_gg_",
56
- "_position_left": "_position_left_1g3zy_gg_",
57
- "__SBackground": "___SBackground_1g3zy_gg_"
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_"
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_171zj_gg_{fill:#2bb3ff;transition-property:cx,cy;transition-duration:var(--duration_171zj);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_171zj_gg_:hover{opacity:.8}.___SScatterPlot_171zj_gg_.__color_171zj_gg_{fill:var(--color_171zj)}.___SValue_171zj_gg_{text-anchor:middle;font-size:10px;stroke:#008ff8}.___SValue_171zj_gg_.__color_171zj_gg_{stroke:var(--color_171zj)}"
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)}"
56
56
  /*__inner_css_end__*/
57
- , "171zj_gg_")
57
+ , "14136_gg_")
58
58
  /*__reshadow_css_end__*/
59
59
  , {
60
- "__SScatterPlot": "___SScatterPlot_171zj_gg_",
61
- "--duration": "--duration_171zj",
62
- "_color": "__color_171zj_gg_",
63
- "--color": "--color_171zj",
64
- "__SValue": "___SValue_171zj_gg_"
60
+ "__SScatterPlot": "___SScatterPlot_14136_gg_",
61
+ "--duration": "--duration_14136",
62
+ "_color": "__color_14136_gg_",
63
+ "--color": "--color_14136",
64
+ "__SValue": "___SValue_14136_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_n7bly_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_n7bly_gg_{color:#6c6e79;margin-bottom:8px}.___SDotGroup_n7bly_gg_{display:flex;align-items:center}.___SDot_n7bly_gg_{width:8px;height:8px;border-radius:50%;margin-right:8px;background:#2bb3ff}.___SDot_n7bly_gg_.__color_n7bly_gg_{background:var(--color_n7bly)}"
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)}"
64
64
  /*__inner_css_end__*/
65
- , "n7bly_gg_")
65
+ , "1bgm5_gg_")
66
66
  /*__reshadow_css_end__*/
67
67
  , {
68
- "__STooltip": "___STooltip_n7bly_gg_",
69
- "__STitle": "___STitle_n7bly_gg_",
70
- "__SDotGroup": "___SDotGroup_n7bly_gg_",
71
- "__SDot": "___SDot_n7bly_gg_",
72
- "_color": "__color_n7bly_gg_",
73
- "--color": "--color_n7bly"
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"
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_16on8_gg_{fill:#59ddaa;stroke:#fff;stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_16on8);transition-timing-function:ease-in-out}.___SCircle_16on8_gg_:hover{fill-opacity:.7}.___SCircle_16on8_gg_.__color_16on8_gg_{fill:var(--color_16on8)}.___SIntersection_16on8_gg_{stroke:#fff;stroke-width:2px;fill-opacity:0}.___SIntersection_16on8_gg_:hover{fill-opacity:.1}"
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}"
52
52
  /*__inner_css_end__*/
53
- , "16on8_gg_")
53
+ , "1bokb_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "__SCircle": "___SCircle_16on8_gg_",
57
- "--duration": "--duration_16on8",
58
- "_color": "__color_16on8_gg_",
59
- "--color": "--color_16on8",
60
- "__SIntersection": "___SIntersection_16on8_gg_"
56
+ "__SCircle": "___SCircle_1bokb_gg_",
57
+ "--duration": "--duration_1bokb",
58
+ "_color": "__color_1bokb_gg_",
59
+ "--color": "--color_1bokb",
60
+ "__SIntersection": "___SIntersection_1bokb_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_uyg8n_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_uyg8n_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}"
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}"
44
44
  /*__inner_css_end__*/
45
- , "uyg8n_gg_")
45
+ , "1bnt8_gg_")
46
46
  /*__reshadow_css_end__*/
47
47
  , {
48
- "__SPlotA11yModule": "___SPlotA11yModule_uyg8n_gg_"
48
+ "__SPlotA11yModule": "___SPlotA11yModule_1bnt8_gg_"
49
49
  });
50
50
  var globalWasFocused = false;
51
51
  var globalNavWithKeyboard = false;