@semcore/d3-chart 2.4.5 → 2.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,27 +42,27 @@ var style = (
42
42
  /*__reshadow_css_start__*/
43
43
  _core.sstyled.insert(
44
44
  /*__inner_css_start__*/
45
- ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SReferenceLine_1t8oh_gg_ {\n fill: none;\n stroke: #a9abb6;\n}\n\n.___STitle_1t8oh_gg_ {\n font-size: 12px;\n fill: #6c6e79;\n transform-origin: var(--transform-origin_1t8oh);\n}\n\n.___STitle_1t8oh_gg_._position_top_1t8oh_gg_ {\n text-anchor: middle;\n}\n\n.___STitle_1t8oh_gg_._position_bottom_1t8oh_gg_ {\n text-anchor: middle;\n alignment-baseline: hanging;\n}\n\n.___STitle_1t8oh_gg_._position_right_1t8oh_gg_ {\n transform: rotate(-90deg);\n alignment-baseline: middle;\n text-anchor: middle;\n}\n\n.___STitle_1t8oh_gg_._position_left_1t8oh_gg_ {\n transform: rotate(-90deg);\n text-anchor: middle;\n alignment-baseline: middle;\n}\n\n.___SBackground_1t8oh_gg_ {\n fill: rgba(196, 199, 207, 0.2);\n}\n"
45
+ ".___SReferenceLine_1co9s_gg_{fill:none;stroke:#a9abb6}.___STitle_1co9s_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1co9s)}.___STitle_1co9s_gg_._position_top_1co9s_gg_{text-anchor:middle}.___STitle_1co9s_gg_._position_bottom_1co9s_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1co9s_gg_._position_right_1co9s_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1co9s_gg_._position_left_1co9s_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_1co9s_gg_{fill:rgba(196,199,207,.2)}"
46
46
  /*__inner_css_end__*/
47
- , "1t8oh_gg_")
47
+ , "1co9s_gg_")
48
48
  /*__reshadow_css_end__*/
49
49
  , {
50
- "__SReferenceLine": "___SReferenceLine_1t8oh_gg_",
51
- "__STitle": "___STitle_1t8oh_gg_",
52
- "--transform-origin": "--transform-origin_1t8oh",
53
- "_position_top": "_position_top_1t8oh_gg_",
54
- "_position_bottom": "_position_bottom_1t8oh_gg_",
55
- "_position_right": "_position_right_1t8oh_gg_",
56
- "_position_left": "_position_left_1t8oh_gg_",
57
- "__SBackground": "___SBackground_1t8oh_gg_"
50
+ "__SReferenceLine": "___SReferenceLine_1co9s_gg_",
51
+ "__STitle": "___STitle_1co9s_gg_",
52
+ "--transform-origin": "--transform-origin_1co9s",
53
+ "_position_top": "_position_top_1co9s_gg_",
54
+ "_position_bottom": "_position_bottom_1co9s_gg_",
55
+ "_position_right": "_position_right_1co9s_gg_",
56
+ "_position_left": "_position_left_1co9s_gg_",
57
+ "__SBackground": "___SBackground_1co9s_gg_"
58
58
  });
59
- var MAP_ORIENTATION = {
59
+ var side2direction = {
60
60
  left: 'vertical',
61
61
  right: 'vertical',
62
62
  top: 'horizontal',
63
63
  bottom: 'horizontal'
64
64
  };
65
- var MAP_POSITION_LINE = {
65
+ var lineDirection2props = {
66
66
  vertical: function vertical(_ref4, value) {
67
67
  var _ref5 = (0, _slicedToArray2["default"])(_ref4, 2),
68
68
  xScale = _ref5[0],
@@ -71,10 +71,10 @@ var MAP_POSITION_LINE = {
71
71
  var yRange = yScale.range();
72
72
  var x = (0, _utils.scaleOfBandwidth)(xScale, value);
73
73
  return {
74
- x: x,
75
- y: yRange[1],
76
- width: 0.1,
77
- height: yRange[0] - yRange[1]
74
+ x1: x,
75
+ x2: x,
76
+ y1: yRange[0],
77
+ y2: yRange[1]
78
78
  };
79
79
  },
80
80
  horizontal: function horizontal(_ref6, value) {
@@ -85,16 +85,15 @@ var MAP_POSITION_LINE = {
85
85
  var xRange = xScale.range();
86
86
  var y = (0, _utils.scaleOfBandwidth)(yScale, value);
87
87
  return {
88
- x: xRange[0],
89
- y: y,
90
- width: xRange[1] - xRange[0],
91
- height: 0.1
88
+ x1: xRange[0],
89
+ x2: xRange[1],
90
+ y1: y,
91
+ y2: y
92
92
  };
93
93
  }
94
94
  };
95
- var OFFSET_TITLE = 10;
96
- var MAP_POSITION_TITlE = {
97
- left: function left(_ref8, value) {
95
+ var rectDirection2props = {
96
+ vertical: function vertical(_ref8, value) {
98
97
  var _ref9 = (0, _slicedToArray2["default"])(_ref8, 2),
99
98
  xScale = _ref9[0],
100
99
  yScale = _ref9[1];
@@ -102,44 +101,75 @@ var MAP_POSITION_TITlE = {
102
101
  var yRange = yScale.range();
103
102
  var x = (0, _utils.scaleOfBandwidth)(xScale, value);
104
103
  return {
105
- x: x - OFFSET_TITLE,
106
- y: (yRange[0] + yRange[1]) / 2
104
+ x: x,
105
+ y: yRange[1],
106
+ width: 100,
107
+ height: yRange[0] - yRange[1]
107
108
  };
108
109
  },
109
- right: function right(_ref10, value) {
110
+ horizontal: function horizontal(_ref10, value) {
110
111
  var _ref11 = (0, _slicedToArray2["default"])(_ref10, 2),
111
112
  xScale = _ref11[0],
112
113
  yScale = _ref11[1];
113
114
 
115
+ var xRange = xScale.range();
116
+ var y = (0, _utils.scaleOfBandwidth)(yScale, value);
117
+ return {
118
+ x: xRange[0],
119
+ y: y,
120
+ width: xRange[1] - xRange[0],
121
+ height: 100
122
+ };
123
+ }
124
+ };
125
+ var titleOffset = 10;
126
+ var titleSideToProps = {
127
+ left: function left(_ref12, value) {
128
+ var _ref13 = (0, _slicedToArray2["default"])(_ref12, 2),
129
+ xScale = _ref13[0],
130
+ yScale = _ref13[1];
131
+
114
132
  var yRange = yScale.range();
115
133
  var x = (0, _utils.scaleOfBandwidth)(xScale, value);
116
134
  return {
117
- x: x + OFFSET_TITLE,
135
+ x: x - titleOffset,
118
136
  y: (yRange[0] + yRange[1]) / 2
119
137
  };
120
138
  },
121
- top: function top(_ref12, value) {
122
- var _ref13 = (0, _slicedToArray2["default"])(_ref12, 2),
123
- xScale = _ref13[0],
124
- yScale = _ref13[1];
139
+ right: function right(_ref14, value) {
140
+ var _ref15 = (0, _slicedToArray2["default"])(_ref14, 2),
141
+ xScale = _ref15[0],
142
+ yScale = _ref15[1];
143
+
144
+ var yRange = yScale.range();
145
+ var x = (0, _utils.scaleOfBandwidth)(xScale, value);
146
+ return {
147
+ x: x + titleOffset,
148
+ y: (yRange[0] + yRange[1]) / 2
149
+ };
150
+ },
151
+ top: function top(_ref16, value) {
152
+ var _ref17 = (0, _slicedToArray2["default"])(_ref16, 2),
153
+ xScale = _ref17[0],
154
+ yScale = _ref17[1];
125
155
 
126
156
  var xRange = xScale.range();
127
157
  var y = (0, _utils.scaleOfBandwidth)(yScale, value);
128
158
  return {
129
159
  x: (xRange[1] + xRange[0]) / 2,
130
- y: y - OFFSET_TITLE
160
+ y: y - titleOffset
131
161
  };
132
162
  },
133
- bottom: function bottom(_ref14, value) {
134
- var _ref15 = (0, _slicedToArray2["default"])(_ref14, 2),
135
- xScale = _ref15[0],
136
- yScale = _ref15[1];
163
+ bottom: function bottom(_ref18, value) {
164
+ var _ref19 = (0, _slicedToArray2["default"])(_ref18, 2),
165
+ xScale = _ref19[0],
166
+ yScale = _ref19[1];
137
167
 
138
168
  var xRange = xScale.range();
139
169
  var y = (0, _utils.scaleOfBandwidth)(yScale, value);
140
170
  return {
141
171
  x: (xRange[1] + xRange[0]) / 2,
142
- y: y + OFFSET_TITLE
172
+ y: y + titleOffset
143
173
  };
144
174
  }
145
175
  };
@@ -189,12 +219,12 @@ var ReferenceLineRoot = /*#__PURE__*/function (_Component) {
189
219
  value = _this$asProps3.value,
190
220
  color = _this$asProps3.color,
191
221
  styles = _this$asProps3.styles;
192
- var pos = MAP_POSITION_LINE[MAP_ORIENTATION[position]];
222
+ var positionProps = lineDirection2props[side2direction[position]];
193
223
  return _ref = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(SReferenceLine, _ref.cn("SReferenceLine", _objectSpread({
194
- "render": "rect",
224
+ "render": "line",
195
225
  "__excludeProps": ['data', 'scale', 'format', 'value', 'color'],
196
226
  "stroke": color
197
- }, pos(scale, value)))), title && /*#__PURE__*/_react["default"].createElement(ReferenceLine.Title, null, title));
227
+ }, positionProps(scale, value)))), title && /*#__PURE__*/_react["default"].createElement(ReferenceLine.Title, null, title));
198
228
  }
199
229
  }]);
200
230
  return ReferenceLineRoot;
@@ -215,9 +245,9 @@ function Title(props) {
215
245
  position = props.position,
216
246
  value = props.value;
217
247
 
218
- var _MAP_POSITION_TITlE$p = MAP_POSITION_TITlE[position](scale, value),
219
- x = _MAP_POSITION_TITlE$p.x,
220
- y = _MAP_POSITION_TITlE$p.y;
248
+ var _titleSideToProps$pos = titleSideToProps[position](scale, value),
249
+ x = _titleSideToProps$pos.x,
250
+ y = _titleSideToProps$pos.y;
221
251
 
222
252
  var sstyles = (0, _core.sstyled)(styles);
223
253
  var sTitleStyles = sstyles.cn('STitle', {
@@ -242,11 +272,11 @@ function Background(props) {
242
272
  scale = props.scale,
243
273
  position = props.position,
244
274
  value = props.value;
245
- var pos = MAP_POSITION_LINE[MAP_ORIENTATION[position]];
275
+ var positionProps = rectDirection2props[side2direction[position]];
246
276
  return _ref3 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SBackground, _ref3.cn("SBackground", _objectSpread({
247
277
  "render": "rect",
248
278
  "childrenPosition": "inside"
249
- }, pos(scale, value))));
279
+ }, positionProps(scale, value))));
250
280
  }
251
281
 
252
282
  var ReferenceLine = (0, _createElement["default"])(ReferenceLineRoot, {
@@ -1 +1 @@
1
- {"version":3,"file":"ReferenceLine.js","names":["MAP_ORIENTATION","left","right","top","bottom","MAP_POSITION_LINE","vertical","value","xScale","yScale","yRange","range","x","scaleOfBandwidth","y","width","height","horizontal","xRange","OFFSET_TITLE","MAP_POSITION_TITlE","ReferenceLineRoot","asProps","position","SReferenceLine","Element","title","scale","color","styles","pos","sstyled","Component","style","Title","props","STitle","sstyles","sTitleStyles","cn","toFixed","className","Background","SBackground","ReferenceLine","createElement"],"sources":["../../src/ReferenceLine.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference-line.shadow.css';\n\nconst MAP_ORIENTATION = {\n left: 'vertical',\n right: 'vertical',\n top: 'horizontal',\n bottom: 'horizontal',\n};\n\nconst MAP_POSITION_LINE = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x,\n y: yRange[1],\n width: 0.1,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height: 0.1,\n };\n },\n};\n\nconst OFFSET_TITLE = 10;\nconst MAP_POSITION_TITlE = {\n left: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x - OFFSET_TITLE,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n right: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x + OFFSET_TITLE,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n top: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y - OFFSET_TITLE,\n };\n },\n bottom: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y + OFFSET_TITLE,\n };\n },\n};\n\nclass ReferenceLineRoot extends Component {\n static displayName = 'ReferenceLine';\n static style = style;\n static defaultProps = {\n position: 'left',\n };\n\n getTitleProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n getBackgroundProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n render() {\n const SReferenceLine = this.Element;\n const { title, scale, position, value, color, styles } = this.asProps;\n const pos = MAP_POSITION_LINE[MAP_ORIENTATION[position]];\n\n return sstyled(styles)(\n <>\n <SReferenceLine\n render=\"rect\"\n __excludeProps={['data', 'scale', 'format', 'value', 'color']}\n stroke={color}\n {...pos(scale, value)}\n />\n {title && <ReferenceLine.Title>{title}</ReferenceLine.Title>}\n </>,\n );\n }\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, value } = props;\n const { x, y } = MAP_POSITION_TITlE[position](scale, value);\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n render=\"text\"\n childrenPosition=\"inside\"\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n position={position}\n x={x}\n y={y}\n />,\n );\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position, value } = props;\n const pos = MAP_POSITION_LINE[MAP_ORIENTATION[position]];\n\n return sstyled(styles)(\n <SBackground render=\"rect\" childrenPosition=\"inside\" {...pos(scale, value)} />,\n );\n}\n\nconst ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n});\n\nexport default ReferenceLine;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAEA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,eAAe,GAAG;EACtBC,IAAI,EAAE,UADgB;EAEtBC,KAAK,EAAE,UAFe;EAGtBC,GAAG,EAAE,YAHiB;EAItBC,MAAM,EAAE;AAJc,CAAxB;AAOA,IAAMC,iBAAiB,GAAG;EACxBC,QAAQ,EAAE,yBAAmBC,KAAnB,EA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AMuB,GAAG,GAAGzB,iBAAiB,CAACL,eAAe,CAACuB,QAAD,CAAhB,CAA7B;EAEA,eAAO,IAAAQ,aAAA,EAAQF,MAAR,CAAP,eACE,gCAAC,WAAD;IAAA,UAAoB,MAApB;IAAA,oBAA4C;EAA5C,GAAyDC,GAAG,CAACH,KAAD,EAAQpB,KAAR,CAA5D,GADF;AAGD;;AAED,IAAMqC,aAAa,GAAG,IAAAC,yBAAA,EAAcxB,iBAAd,EAAiC;EACrDa,KAAK,EAALA,KADqD;EAErDQ,UAAU,EAAVA;AAFqD,CAAjC,CAAtB;eAKeE,a"}
1
+ {"version":3,"file":"ReferenceLine.js","names":["side2direction","left","right","top","bottom","lineDirection2props","vertical","value","xScale","yScale","yRange","range","x","scaleOfBandwidth","x1","x2","y1","y2","horizontal","xRange","y","rectDirection2props","width","height","titleOffset","titleSideToProps","ReferenceLineRoot","asProps","position","SReferenceLine","Element","title","scale","color","styles","positionProps","sstyled","Component","style","Title","props","STitle","sstyles","sTitleStyles","cn","toFixed","className","Background","SBackground","ReferenceLine","createElement"],"sources":["../../src/ReferenceLine.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference-line.shadow.css';\n\nconst side2direction = {\n left: 'vertical',\n right: 'vertical',\n top: 'horizontal',\n bottom: 'horizontal',\n};\n\nconst lineDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x1: x,\n x2: x,\n y1: yRange[0],\n y2: yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x1: xRange[0],\n x2: xRange[1],\n y1: y,\n y2: y,\n };\n },\n};\n\nconst rectDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x,\n y: yRange[1],\n width: 100,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height: 100,\n };\n },\n};\n\nconst titleOffset = 10;\nconst titleSideToProps = {\n left: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x - titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n right: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x + titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n top: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y - titleOffset,\n };\n },\n bottom: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y + titleOffset,\n };\n },\n};\n\nclass ReferenceLineRoot extends Component {\n static displayName = 'ReferenceLine';\n static style = style;\n static defaultProps = {\n position: 'left',\n };\n\n getTitleProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n getBackgroundProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n render() {\n const SReferenceLine = this.Element;\n const { title, scale, position, value, color, styles } = this.asProps;\n const positionProps = lineDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <>\n <SReferenceLine\n render=\"line\"\n __excludeProps={['data', 'scale', 'format', 'value', 'color']}\n stroke={color}\n {...positionProps(scale, value)}\n />\n {title && <ReferenceLine.Title>{title}</ReferenceLine.Title>}\n </>,\n );\n }\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, value } = props;\n const { x, y } = titleSideToProps[position](scale, value);\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n render=\"text\"\n childrenPosition=\"inside\"\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n position={position}\n x={x}\n y={y}\n />,\n );\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position, value } = props;\n const positionProps = rectDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <SBackground render=\"rect\" childrenPosition=\"inside\" {...positionProps(scale, value)} />,\n );\n}\n\nconst ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n});\n\nexport default ReferenceLine;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAEA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,cAAc,GAAG;EACrBC,IAAI,EAAE,UADe;EAErBC,KAAK,EAAE,UAFc;EAGrBC,GAAG,EAAE,YAHgB;EAIrBC,MAAM,EAAE;AAJa,CAAvB;AAOA,IAAMC,mBAAmB,GAAG;EAC1BC,QAAQ,EAAE,yBAAmBC,KAAnB,EAA6B;IAAA;IAAA,IAA3BC,MAA2B;IAAA,IAAnBC,MAAmB;;IACrC,IAAMC,MAAM,GAAGD,MAAM,CAACE,KAAP,EAAf;IACA,IAAMC,CAAC,GAAG,IAAAC,uBAAA,EAAiBL,MAAjB,EAAyBD,KAAzB,CAAV;IACA,OAAO;MACLO,EAAE,EAAEF,CADC;MAELG,EAAE,EAAEH,CAFC;MAGLI,EAAE,EAAEN,MAAM,CAAC,CAAD,CAHL;MAILO,EAAE,EAAEP,MAAM,CAAC,CAAD;IAJL,CAAP;EAMD,CAVyB;EAW1BQ,UAAU,EAAE,2BAAmBX,KAAnB,EAA6B;IAAA;IAAA,IAA3BC,MAA2B;IAAA,IAAnBC,MAAmB;;IACvC,IAAMU,MAAM,GAAGX,MAAM,CAACG,KAAP,EAAf;IACA,IAAMS,CAAC,GAAG,IAAAP,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AApB,EAA2B;EAAA;;EACzB,IAAiBQ,WAAjB,GAAiER,KAAjE,CAAQV,OAAR;EAAA,IAA8BI,MAA9B,GAAiEM,KAAjE,CAA8BN,MAA9B;EAAA,IAAsCF,KAAtC,GAAiEQ,KAAjE,CAAsCR,KAAtC;EAAA,IAA6CJ,QAA7C,GAAiEY,KAAjE,CAA6CZ,QAA7C;EAAA,IAAuDrB,KAAvD,GAAiEiC,KAAjE,CAAuDjC,KAAvD;EACA,IAAM4B,aAAa,GAAGd,mBAAmB,CAACrB,cAAc,CAAC4B,QAAD,CAAf,CAAzC;EAEA,eAAO,IAAAQ,aAAA,EAAQF,MAAR,CAAP,eACE,gCAAC,WAAD;IAAA,UAAoB,MAApB;IAAA,oBAA4C;EAA5C,GAAyDC,aAAa,CAACH,KAAD,EAAQzB,KAAR,CAAtE,GADF;AAGD;;AAED,IAAM0C,aAAa,GAAG,IAAAC,yBAAA,EAAcxB,iBAAd,EAAiC;EACrDa,KAAK,EAALA,KADqD;EAErDQ,UAAU,EAAVA;AAFqD,CAAjC,CAAtB;eAKeE,a"}
@@ -52,16 +52,16 @@ var style = (
52
52
  /*__reshadow_css_start__*/
53
53
  _core.sstyled.insert(
54
54
  /*__inner_css_start__*/
55
- ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SScatterPlot_5eyaz_gg_ {\n fill: #2bb3ff;\n transition-property: cx, cy;\n transition-duration: var(--duration_5eyaz);\n transition-timing-function: ease-in-out;\n opacity: 0.5\n}\n\n.___SScatterPlot_5eyaz_gg_:hover {\n opacity: 0.8;\n }\n\n.___SScatterPlot_5eyaz_gg_.__color_5eyaz_gg_ {\n fill: var(--color_5eyaz);\n}\n\n.___SValue_5eyaz_gg_ {\n text-anchor: middle;\n font-size: 10px;\n stroke: #008ff8;\n}\n\n.___SValue_5eyaz_gg_.__color_5eyaz_gg_ {\n stroke: var(--color_5eyaz);\n}\n"
55
+ ".___SScatterPlot_1mawy_gg_{fill:#2bb3ff;transition-property:cx,cy;transition-duration:var(--duration_1mawy);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_1mawy_gg_:hover{opacity:.8}.___SScatterPlot_1mawy_gg_.__color_1mawy_gg_{fill:var(--color_1mawy)}.___SValue_1mawy_gg_{text-anchor:middle;font-size:10px;stroke:#008ff8}.___SValue_1mawy_gg_.__color_1mawy_gg_{stroke:var(--color_1mawy)}"
56
56
  /*__inner_css_end__*/
57
- , "5eyaz_gg_")
57
+ , "1mawy_gg_")
58
58
  /*__reshadow_css_end__*/
59
59
  , {
60
- "__SScatterPlot": "___SScatterPlot_5eyaz_gg_",
61
- "--duration": "--duration_5eyaz",
62
- "_color": "__color_5eyaz_gg_",
63
- "--color": "--color_5eyaz",
64
- "__SValue": "___SValue_5eyaz_gg_"
60
+ "__SScatterPlot": "___SScatterPlot_1mawy_gg_",
61
+ "--duration": "--duration_1mawy",
62
+ "_color": "__color_1mawy_gg_",
63
+ "--color": "--color_1mawy",
64
+ "__SValue": "___SValue_1mawy_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
- ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___STooltip_1pe41_gg_ {\n font-size: 12px;\n line-height: 1.33;\n position: relative;\n background-color: #fff;\n border-radius: 6px;\n border: 1px solid #e0e1e9;\n box-sizing: border-box;\n box-shadow: 0px 1px 12px 0px rgba(25, 27, 35, 0.15);\n padding: 12px;\n}\n\n.___STitle_1pe41_gg_ {\n color: #6c6e79;\n margin-bottom: 8px;\n}\n\n.___SDotGroup_1pe41_gg_ {\n display: flex;\n align-items: center;\n}\n\n.___SDot_1pe41_gg_ {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n margin-right: 8px;\n background: #2bb3ff;\n}\n\n.___SDot_1pe41_gg_.__color_1pe41_gg_ {\n background: var(--color_1pe41);\n}\n"
63
+ ".___STooltip_rfk5a_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_rfk5a_gg_{color:#6c6e79;margin-bottom:8px}.___SDotGroup_rfk5a_gg_{display:flex;align-items:center}.___SDot_rfk5a_gg_{width:8px;height:8px;border-radius:50%;margin-right:8px;background:#2bb3ff}.___SDot_rfk5a_gg_.__color_rfk5a_gg_{background:var(--color_rfk5a)}"
64
64
  /*__inner_css_end__*/
65
- , "1pe41_gg_")
65
+ , "rfk5a_gg_")
66
66
  /*__reshadow_css_end__*/
67
67
  , {
68
- "__STooltip": "___STooltip_1pe41_gg_",
69
- "__STitle": "___STitle_1pe41_gg_",
70
- "__SDotGroup": "___SDotGroup_1pe41_gg_",
71
- "__SDot": "___SDot_1pe41_gg_",
72
- "_color": "__color_1pe41_gg_",
73
- "--color": "--color_1pe41"
68
+ "__STooltip": "___STooltip_rfk5a_gg_",
69
+ "__STitle": "___STitle_rfk5a_gg_",
70
+ "__SDotGroup": "___SDotGroup_rfk5a_gg_",
71
+ "__SDot": "___SDot_rfk5a_gg_",
72
+ "_color": "__color_rfk5a_gg_",
73
+ "--color": "--color_rfk5a"
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_cu40g_gg_ {\n fill: #59ddaa;\n stroke: #fff;\n stroke-width: 2px;\n fill-opacity: 0.5;\n transition-property: cx, cy;\n transition-duration: var(--duration_cu40g);\n transition-timing-function: ease-in-out\n}\n\n.___SCircle_cu40g_gg_:hover {\n fill-opacity: 0.7;\n }\n\n.___SCircle_cu40g_gg_.__color_cu40g_gg_ {\n fill: var(--color_cu40g);\n}\n\n.___SIntersection_cu40g_gg_ {\n stroke: #fff;\n stroke-width: 2px;\n fill-opacity: 0\n}\n\n.___SIntersection_cu40g_gg_:hover {\n fill-opacity: 0.1;\n }\n"
51
+ ".___SCircle_y54uo_gg_{fill:#59ddaa;stroke:#fff;stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_y54uo);transition-timing-function:ease-in-out}.___SCircle_y54uo_gg_:hover{fill-opacity:.7}.___SCircle_y54uo_gg_.__color_y54uo_gg_{fill:var(--color_y54uo)}.___SIntersection_y54uo_gg_{stroke:#fff;stroke-width:2px;fill-opacity:0}.___SIntersection_y54uo_gg_:hover{fill-opacity:.1}"
52
52
  /*__inner_css_end__*/
53
- , "cu40g_gg_")
53
+ , "y54uo_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "__SCircle": "___SCircle_cu40g_gg_",
57
- "--duration": "--duration_cu40g",
58
- "_color": "__color_cu40g_gg_",
59
- "--color": "--color_cu40g",
60
- "__SIntersection": "___SIntersection_cu40g_gg_"
56
+ "__SCircle": "___SCircle_y54uo_gg_",
57
+ "--duration": "--duration_y54uo",
58
+ "_color": "__color_y54uo_gg_",
59
+ "--color": "--color_y54uo",
60
+ "__SIntersection": "___SIntersection_y54uo_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
- ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SPlotA11yModule_1wl2v_gg_ {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n pointer-events: none;\n opacity: 0;\n}\n\n.___SPlotA11yModule_1wl2v_gg_:focus {\n -webkit-user-select: all;\n -moz-user-select: all;\n user-select: all;\n pointer-events: all;\n opacity: 1;\n}\n"
43
+ ".___SPlotA11yModule_sviuq_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_sviuq_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}"
44
44
  /*__inner_css_end__*/
45
- , "1wl2v_gg_")
45
+ , "sviuq_gg_")
46
46
  /*__reshadow_css_end__*/
47
47
  , {
48
- "__SPlotA11yModule": "___SPlotA11yModule_1wl2v_gg_"
48
+ "__SPlotA11yModule": "___SPlotA11yModule_sviuq_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
- ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SPlotA11yView_1okjv_gg_ {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n pointer-events: none;\n opacity: 0;\n background-color: white;\n color: black;\n border: 3px solid black;\n font-size: 10px;\n padding: 2px;\n width: 200px;\n height: 200px;\n max-width: 80%;\n max-height: 80%;\n overflow: auto;\n}\n\n.___SPlotA11yView_1okjv_gg_.__focus-within_1okjv_gg_,\n.___SPlotA11yView_1okjv_gg_:focus {\n -webkit-user-select: all;\n -moz-user-select: all;\n user-select: all;\n pointer-events: all;\n opacity: 1;\n z-index: 100;\n position: relative;\n display: block;\n}\n\n.___SPlotA11yView_1okjv_gg_:focus-within,\n.___SPlotA11yView_1okjv_gg_:focus {\n -webkit-user-select: all;\n -moz-user-select: all;\n user-select: all;\n pointer-events: all;\n opacity: 1;\n z-index: 100;\n position: relative;\n display: block;\n}\n\n.___SPlotA11yView_1okjv_gg_ a {\n cursor: pointer;\n text-decoration: underline;\n margin-bottom: 8px;\n display: block;\n}\n\n.___SPlotA11yView_1okjv_gg_ table,\n.___SPlotA11yView_1okjv_gg_ td,\n.___SPlotA11yView_1okjv_gg_ th {\n border: 1px solid black;\n}\n"
47
+ ".___SPlotA11yView_p7ja3_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_p7ja3_gg_:focus,.___SPlotA11yView_p7ja3_gg_.__focus-within_p7ja3_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_p7ja3_gg_:focus,.___SPlotA11yView_p7ja3_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_p7ja3_gg_ a{cursor:pointer;text-decoration:underline;margin-bottom:8px;display:block}.___SPlotA11yView_p7ja3_gg_ table,.___SPlotA11yView_p7ja3_gg_ td,.___SPlotA11yView_p7ja3_gg_ th{border:1px solid #000}"
48
48
  /*__inner_css_end__*/
49
- , "1okjv_gg_")
49
+ , "p7ja3_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SPlotA11yView": "___SPlotA11yView_1okjv_gg_",
53
- "_focus-within": "__focus-within_1okjv_gg_"
52
+ "__SPlotA11yView": "___SPlotA11yView_p7ja3_gg_",
53
+ "_focus-within": "__focus-within_p7ja3_gg_"
54
54
  });
55
55
 
56
56
  var PlotA11yView = function PlotA11yView(_ref3) {
package/lib/es6/Area.js CHANGED
@@ -26,18 +26,18 @@ var style = (
26
26
  /*__reshadow_css_start__*/
27
27
  _sstyled.insert(
28
28
  /*__inner_css_start__*/
29
- ".___SArea_oo67a_gg_ {\n fill: #2bb3ff;\n fill-opacity: 0.2;\n}\n\n.___SArea_oo67a_gg_.__color_oo67a_gg_ {\n fill: var(--color_oo67a);\n}\n\n.___SAreaLine_oo67a_gg_ {\n stroke: #2bb3ff;\n stroke-width: 3;\n fill: transparent;\n}\n\n.___SAreaLine_oo67a_gg_.__color_oo67a_gg_ {\n stroke: var(--color_oo67a);\n}\n\n.___SArea_oo67a_gg_,\n.___SAreaLine_oo67a_gg_ {\n transition-property: d;\n transition-duration: var(--duration_oo67a);\n transition-timing-function: ease-in-out;\n}\n\n.___SNull_oo67a_gg_ {\n fill: transparent;\n stroke: #8a8e9b;\n stroke-dasharray: 4;\n}\n\n.___SNull_oo67a_gg_.__hide_oo67a_gg_ {\n display: none;\n}\n"
29
+ ".___SArea_5d4tg_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_5d4tg_gg_.__color_5d4tg_gg_{fill:var(--color_5d4tg)}.___SAreaLine_5d4tg_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_5d4tg_gg_.__color_5d4tg_gg_{stroke:var(--color_5d4tg)}.___SArea_5d4tg_gg_,.___SAreaLine_5d4tg_gg_{transition-property:d;transition-duration:var(--duration_5d4tg);transition-timing-function:ease-in-out}.___SNull_5d4tg_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_5d4tg_gg_.__hide_5d4tg_gg_{display:none}"
30
30
  /*__inner_css_end__*/
31
- , "oo67a_gg_")
31
+ , "5d4tg_gg_")
32
32
  /*__reshadow_css_end__*/
33
33
  , {
34
- "__SArea": "___SArea_oo67a_gg_",
35
- "_color": "__color_oo67a_gg_",
36
- "--color": "--color_oo67a",
37
- "__SAreaLine": "___SAreaLine_oo67a_gg_",
38
- "--duration": "--duration_oo67a",
39
- "__SNull": "___SNull_oo67a_gg_",
40
- "_hide": "__hide_oo67a_gg_"
34
+ "__SArea": "___SArea_5d4tg_gg_",
35
+ "_color": "__color_5d4tg_gg_",
36
+ "--color": "--color_5d4tg",
37
+ "__SAreaLine": "___SAreaLine_5d4tg_gg_",
38
+ "--duration": "--duration_5d4tg",
39
+ "__SNull": "___SNull_5d4tg_gg_",
40
+ "_hide": "__hide_5d4tg_gg_"
41
41
  });
42
42
 
43
43
  var AreaRoot = /*#__PURE__*/function (_Component) {
package/lib/es6/Axis.js CHANGED
@@ -27,23 +27,23 @@ var style = (
27
27
  /*__reshadow_css_start__*/
28
28
  _sstyled.insert(
29
29
  /*__inner_css_start__*/
30
- ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SAxis_e59iq_gg_ {\n stroke: #c4c7cf;\n}\n\n.___SAxis_e59iq_gg_.__hide_e59iq_gg_ {\n display: none;\n}\n\n.___STick_e59iq_gg_ {\n font-size: 12px;\n fill: #6c6e79;\n}\n\n.___STick_e59iq_gg_.__hide_e59iq_gg_ {\n display: none;\n}\n\n.___SGrid_e59iq_gg_ {\n fill: transparent;\n stroke: #e0e1e9;\n}\n\n.___STitle_e59iq_gg_ {\n font-size: 12px;\n fill: #6c6e79;\n transform-origin: var(--transform-origin_e59iq);\n}\n\n.___STitle_e59iq_gg_._position_top_e59iq_gg_ {\n text-anchor: middle;\n}\n\n.___STitle_e59iq_gg_._position_bottom_e59iq_gg_ {\n text-anchor: middle;\n alignment-baseline: hanging;\n}\n\n.___STitle_e59iq_gg_._position_right_e59iq_gg_ {\n transform: rotate(-90deg);\n alignment-baseline: middle;\n text-anchor: middle;\n}\n\n.___STitle_e59iq_gg_._position_left_e59iq_gg_ {\n transform: rotate(-90deg);\n text-anchor: middle;\n alignment-baseline: middle;\n}\n\n.___STick_e59iq_gg_._position_top_e59iq_gg_ {\n transform: translateY(-12px);\n text-anchor: middle;\n}\n\n.___STick_e59iq_gg_._position_bottom_e59iq_gg_ {\n transform: translateY(12px);\n text-anchor: middle;\n alignment-baseline: hanging;\n}\n\n.___STick_e59iq_gg_._position_right_e59iq_gg_ {\n transform: translateX(16px);\n text-anchor: start;\n alignment-baseline: middle;\n}\n\n.___STick_e59iq_gg_._position_left_e59iq_gg_ {\n transform: translateX(-16px);\n text-anchor: end;\n alignment-baseline: middle;\n}\n\n.___STick_e59iq_gg_._position_custom_0_e59iq_gg_ {\n transform: translateY(12px);\n text-anchor: middle;\n alignment-baseline: hanging;\n}\n\n.___STick_e59iq_gg_._position_custom_1_e59iq_gg_ {\n transform: translateX(-16px);\n text-anchor: end;\n alignment-baseline: middle;\n}\n"
30
+ ".___SAxis_130py_gg_{stroke:#c4c7cf}.___SAxis_130py_gg_.__hide_130py_gg_{display:none}.___STick_130py_gg_{font-size:12px;fill:#6c6e79}.___STick_130py_gg_.__hide_130py_gg_{display:none}.___SGrid_130py_gg_{fill:transparent;stroke:#e0e1e9}.___STitle_130py_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_130py)}.___STitle_130py_gg_._position_top_130py_gg_{text-anchor:middle}.___STitle_130py_gg_._position_bottom_130py_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_130py_gg_._position_right_130py_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_130py_gg_._position_left_130py_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_130py_gg_._position_top_130py_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_130py_gg_._position_bottom_130py_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_130py_gg_._position_right_130py_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_130py_gg_._position_left_130py_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_130py_gg_._position_custom_0_130py_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_130py_gg_._position_custom_1_130py_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
31
31
  /*__inner_css_end__*/
32
- , "e59iq_gg_")
32
+ , "130py_gg_")
33
33
  /*__reshadow_css_end__*/
34
34
  , {
35
- "__SAxis": "___SAxis_e59iq_gg_",
36
- "_hide": "__hide_e59iq_gg_",
37
- "__STick": "___STick_e59iq_gg_",
38
- "__SGrid": "___SGrid_e59iq_gg_",
39
- "__STitle": "___STitle_e59iq_gg_",
40
- "--transform-origin": "--transform-origin_e59iq",
41
- "_position_top": "_position_top_e59iq_gg_",
42
- "_position_bottom": "_position_bottom_e59iq_gg_",
43
- "_position_right": "_position_right_e59iq_gg_",
44
- "_position_left": "_position_left_e59iq_gg_",
45
- "_position_custom_0": "_position_custom_0_e59iq_gg_",
46
- "_position_custom_1": "_position_custom_1_e59iq_gg_"
35
+ "__SAxis": "___SAxis_130py_gg_",
36
+ "_hide": "__hide_130py_gg_",
37
+ "__STick": "___STick_130py_gg_",
38
+ "__SGrid": "___SGrid_130py_gg_",
39
+ "__STitle": "___STitle_130py_gg_",
40
+ "--transform-origin": "--transform-origin_130py",
41
+ "_position_top": "_position_top_130py_gg_",
42
+ "_position_bottom": "_position_bottom_130py_gg_",
43
+ "_position_right": "_position_right_130py_gg_",
44
+ "_position_left": "_position_left_130py_gg_",
45
+ "_position_custom_0": "_position_custom_0_130py_gg_",
46
+ "_position_custom_1": "_position_custom_1_130py_gg_"
47
47
  });
48
48
  var CUSTOM_0 = Symbol('custom_0');
49
49
  var CUSTOM_1 = Symbol('custom_1');
package/lib/es6/Bar.js CHANGED
@@ -24,17 +24,17 @@ var style = (
24
24
  /*__reshadow_css_start__*/
25
25
  _sstyled.insert(
26
26
  /*__inner_css_start__*/
27
- ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SBar_z81l7_gg_ {\n fill: #2bb3ff;\n transition-property: height, width, y;\n transition-duration: var(--duration_z81l7);\n transition-timing-function: ease-in-out;\n}\n\n.___SBar_z81l7_gg_.__color_z81l7_gg_ {\n fill: var(--color_z81l7);\n}\n\n.___SBar_z81l7_gg_.__hide_z81l7_gg_ {\n display: none;\n}\n\n.___SBackground_z81l7_gg_ {\n fill: #c4c7cf;\n}\n"
27
+ ".___SBar_10ufx_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_10ufx);transition-timing-function:ease-in-out}.___SBar_10ufx_gg_.__color_10ufx_gg_{fill:var(--color_10ufx)}.___SBar_10ufx_gg_.__hide_10ufx_gg_{display:none}.___SBackground_10ufx_gg_{fill:#c4c7cf}"
28
28
  /*__inner_css_end__*/
29
- , "z81l7_gg_")
29
+ , "10ufx_gg_")
30
30
  /*__reshadow_css_end__*/
31
31
  , {
32
- "__SBar": "___SBar_z81l7_gg_",
33
- "--duration": "--duration_z81l7",
34
- "_color": "__color_z81l7_gg_",
35
- "--color": "--color_z81l7",
36
- "_hide": "__hide_z81l7_gg_",
37
- "__SBackground": "___SBackground_z81l7_gg_"
32
+ "__SBar": "___SBar_10ufx_gg_",
33
+ "--duration": "--duration_10ufx",
34
+ "_color": "__color_10ufx_gg_",
35
+ "--color": "--color_10ufx",
36
+ "_hide": "__hide_10ufx_gg_",
37
+ "__SBackground": "___SBackground_10ufx_gg_"
38
38
  });
39
39
 
40
40
  var BarRoot = /*#__PURE__*/function (_Component) {
package/lib/es6/Bubble.js CHANGED
@@ -32,19 +32,19 @@ var style = (
32
32
  /*__reshadow_css_start__*/
33
33
  _sstyled.insert(
34
34
  /*__inner_css_start__*/
35
- ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SBubble_133hi_gg_ {\n fill: #2bb3ff;\n stroke: #fff;\n stroke-width: 2px;\n transition-property: cx, cy;\n transition-duration: var(--duration_133hi);\n transition-timing-function: ease-in-out;\n opacity: 0.5\n}\n\n.___SBubble_133hi_gg_:hover {\n opacity: 0.8;\n }\n\n.___SBubble_133hi_gg_.__color_133hi_gg_ {\n fill: var(--color_133hi);\n}\n\n.___SCenter_133hi_gg_ {\n text-anchor: middle;\n font-size: 11px;\n stroke: #2bb3ff;\n}\n\n.___SCenter_133hi_gg_.__color_133hi_gg_ {\n stroke: var(--color_133hi);\n}\n\n.___SLabel_133hi_gg_ {\n fill: #2bb3ff;\n}\n\n.___SLabel_133hi_gg_._position_right_133hi_gg_ {\n text-anchor: end;\n}\n\n.___SLabel_133hi_gg_._position_left_133hi_gg_ {\n text-anchor: start;\n}\n\n.___SLabel_133hi_gg_.__color_133hi_gg_ {\n fill: var(--color_133hi);\n}\n"
35
+ ".___SBubble_u3846_gg_{fill:#2bb3ff;stroke:#fff;stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_u3846);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_u3846_gg_:hover{opacity:.8}.___SBubble_u3846_gg_.__color_u3846_gg_{fill:var(--color_u3846)}.___SCenter_u3846_gg_{text-anchor:middle;font-size:11px;stroke:#2bb3ff}.___SCenter_u3846_gg_.__color_u3846_gg_{stroke:var(--color_u3846)}.___SLabel_u3846_gg_{fill:#2bb3ff}.___SLabel_u3846_gg_._position_right_u3846_gg_{text-anchor:end}.___SLabel_u3846_gg_._position_left_u3846_gg_{text-anchor:start}.___SLabel_u3846_gg_.__color_u3846_gg_{fill:var(--color_u3846)}"
36
36
  /*__inner_css_end__*/
37
- , "133hi_gg_")
37
+ , "u3846_gg_")
38
38
  /*__reshadow_css_end__*/
39
39
  , {
40
- "__SBubble": "___SBubble_133hi_gg_",
41
- "--duration": "--duration_133hi",
42
- "_color": "__color_133hi_gg_",
43
- "--color": "--color_133hi",
44
- "__SCenter": "___SCenter_133hi_gg_",
45
- "__SLabel": "___SLabel_133hi_gg_",
46
- "_position_right": "_position_right_133hi_gg_",
47
- "_position_left": "_position_left_133hi_gg_"
40
+ "__SBubble": "___SBubble_u3846_gg_",
41
+ "--duration": "--duration_u3846",
42
+ "_color": "__color_u3846_gg_",
43
+ "--color": "--color_u3846",
44
+ "__SCenter": "___SCenter_u3846_gg_",
45
+ "__SLabel": "___SLabel_u3846_gg_",
46
+ "_position_right": "_position_right_u3846_gg_",
47
+ "_position_left": "_position_left_u3846_gg_"
48
48
  });
49
49
 
50
50
  var BubbleRoot = /*#__PURE__*/function (_Component) {
package/lib/es6/Donut.js CHANGED
@@ -34,16 +34,16 @@ var style = (
34
34
  /*__reshadow_css_start__*/
35
35
  _sstyled.insert(
36
36
  /*__inner_css_start__*/
37
- ":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SPie_wtta4_gg_ {\n stroke: #ffffff;\n fill: #2bb3ff;\n}\n\n.___SPie_wtta4_gg_.__color_wtta4_gg_ {\n fill: var(--color_wtta4);\n}\n\n.___SEmptyData_wtta4_gg_ {\n fill: #e0e1e9;\n}\n\n.___SEmptyData_wtta4_gg_.__color_wtta4_gg_ {\n fill: var(--color_wtta4);\n}\n\n.___SLabel_wtta4_gg_ {\n text-anchor: middle;\n vertical-anchor: middle;\n}\n"
37
+ ".___SPie_141mu_gg_{stroke:#fff;fill:#2bb3ff}.___SPie_141mu_gg_.__color_141mu_gg_{fill:var(--color_141mu)}.___SEmptyData_141mu_gg_{fill:#e0e1e9}.___SEmptyData_141mu_gg_.__color_141mu_gg_{fill:var(--color_141mu)}.___SLabel_141mu_gg_{text-anchor:middle;vertical-anchor:middle}"
38
38
  /*__inner_css_end__*/
39
- , "wtta4_gg_")
39
+ , "141mu_gg_")
40
40
  /*__reshadow_css_end__*/
41
41
  , {
42
- "__SPie": "___SPie_wtta4_gg_",
43
- "_color": "__color_wtta4_gg_",
44
- "--color": "--color_wtta4",
45
- "__SEmptyData": "___SEmptyData_wtta4_gg_",
46
- "__SLabel": "___SLabel_wtta4_gg_"
42
+ "__SPie": "___SPie_141mu_gg_",
43
+ "_color": "__color_141mu_gg_",
44
+ "--color": "--color_141mu",
45
+ "__SEmptyData": "___SEmptyData_141mu_gg_",
46
+ "__SLabel": "___SLabel_141mu_gg_"
47
47
  });
48
48
  var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
49
49
 
@@ -391,12 +391,12 @@ _defineProperty(DonutRoot, "defaultProps", function (_ref18) {
391
391
  size: size,
392
392
  halfsize: halfsize,
393
393
  outerRadius: outerRadius
394
- })).innerRadius(innerRadius > increaseFactor ? innerRadius - increaseFactor : innerRadius);
394
+ })).innerRadius(innerRadius);
395
395
  var d3ArcOut = arc().outerRadius(getOuterRadius({
396
396
  size: size,
397
397
  halfsize: halfsize,
398
398
  outerRadius: outerRadius
399
- }) + increaseFactor).innerRadius(innerRadius > increaseFactor ? innerRadius - increaseFactor : innerRadius);
399
+ }) + increaseFactor).innerRadius(innerRadius);
400
400
  var d3Pie = pie().sort(null).value(function (_ref19) {
401
401
  var _ref20 = _slicedToArray(_ref19, 2),
402
402
  value = _ref20[1];