@semcore/d3-chart 2.2.4 → 2.2.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [2.2.7] - 2022-08-18
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/animation` [1.5.7 ~> 1.5.8], `@semcore/utils` [3.36.0 ~> 3.37.0]).
10
+
11
+ ## [2.2.6] - 2022-08-11
12
+
13
+ ### Changed
14
+
15
+ - Version patch update due to children dependencies update (`@semcore/animation` [1.5.6 ~> 1.5.7], `@semcore/utils` [3.35.1 ~> 3.36.0]).
16
+
17
+ ## [2.2.5] - 2022-08-04
18
+
19
+ ### Fix
20
+
21
+ - Fixed `ResponsiveContainer` memory leak on unmount.
22
+
5
23
  ## [2.2.4] - 2022-08-02
6
24
 
7
25
  ### Fix
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_1v8sj_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_1v8sj_gg_.__color_1v8sj_gg_{fill:var(--color_1v8sj)}.___SAreaLine_1v8sj_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_1v8sj_gg_.__color_1v8sj_gg_{stroke:var(--color_1v8sj)}.___SArea_1v8sj_gg_,.___SAreaLine_1v8sj_gg_{transition-property:d;transition-duration:var(--duration_1v8sj);transition-timing-function:ease-in-out}.___SNull_1v8sj_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_1v8sj_gg_.__hide_1v8sj_gg_{display:none}"
51
+ ".___SArea_intct_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_intct_gg_.__color_intct_gg_{fill:var(--color_intct)}.___SAreaLine_intct_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_intct_gg_.__color_intct_gg_{stroke:var(--color_intct)}.___SArea_intct_gg_,.___SAreaLine_intct_gg_{transition-property:d;transition-duration:var(--duration_intct);transition-timing-function:ease-in-out}.___SNull_intct_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_intct_gg_.__hide_intct_gg_{display:none}"
52
52
  /*__inner_css_end__*/
53
- , "1v8sj_gg_")
53
+ , "intct_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "__SArea": "___SArea_1v8sj_gg_",
57
- "_color": "__color_1v8sj_gg_",
58
- "--color": "--color_1v8sj",
59
- "__SAreaLine": "___SAreaLine_1v8sj_gg_",
60
- "--duration": "--duration_1v8sj",
61
- "__SNull": "___SNull_1v8sj_gg_",
62
- "_hide": "__hide_1v8sj_gg_"
56
+ "__SArea": "___SArea_intct_gg_",
57
+ "_color": "__color_intct_gg_",
58
+ "--color": "--color_intct",
59
+ "__SAreaLine": "___SAreaLine_intct_gg_",
60
+ "--duration": "--duration_intct",
61
+ "__SNull": "___SNull_intct_gg_",
62
+ "_hide": "__hide_intct_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_esw7q_gg_{stroke:#c4c7cf}.___SAxis_esw7q_gg_.__hide_esw7q_gg_{display:none}.___STick_esw7q_gg_{font-size:12px;fill:#6c6e79}.___STick_esw7q_gg_.__hide_esw7q_gg_{display:none}.___SGrid_esw7q_gg_{fill:transparent;stroke:#e0e1e9}.___STitle_esw7q_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_esw7q)}.___STitle_esw7q_gg_._position_top_esw7q_gg_{text-anchor:middle}.___STitle_esw7q_gg_._position_bottom_esw7q_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_esw7q_gg_._position_right_esw7q_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_esw7q_gg_._position_left_esw7q_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_esw7q_gg_._position_top_esw7q_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_esw7q_gg_._position_bottom_esw7q_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_esw7q_gg_._position_right_esw7q_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_esw7q_gg_._position_left_esw7q_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_esw7q_gg_._position_custom_0_esw7q_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_esw7q_gg_._position_custom_1_esw7q_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
47
+ ".___SAxis_1l59y_gg_{stroke:#c4c7cf}.___SAxis_1l59y_gg_.__hide_1l59y_gg_{display:none}.___STick_1l59y_gg_{font-size:12px;fill:#6c6e79}.___STick_1l59y_gg_.__hide_1l59y_gg_{display:none}.___SGrid_1l59y_gg_{fill:transparent;stroke:#e0e1e9}.___STitle_1l59y_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1l59y)}.___STitle_1l59y_gg_._position_top_1l59y_gg_{text-anchor:middle}.___STitle_1l59y_gg_._position_bottom_1l59y_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1l59y_gg_._position_right_1l59y_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1l59y_gg_._position_left_1l59y_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_1l59y_gg_._position_top_1l59y_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_1l59y_gg_._position_bottom_1l59y_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_1l59y_gg_._position_right_1l59y_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_1l59y_gg_._position_left_1l59y_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_1l59y_gg_._position_custom_0_1l59y_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_1l59y_gg_._position_custom_1_1l59y_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
48
48
  /*__inner_css_end__*/
49
- , "esw7q_gg_")
49
+ , "1l59y_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SAxis": "___SAxis_esw7q_gg_",
53
- "_hide": "__hide_esw7q_gg_",
54
- "__STick": "___STick_esw7q_gg_",
55
- "__SGrid": "___SGrid_esw7q_gg_",
56
- "__STitle": "___STitle_esw7q_gg_",
57
- "--transform-origin": "--transform-origin_esw7q",
58
- "_position_top": "_position_top_esw7q_gg_",
59
- "_position_bottom": "_position_bottom_esw7q_gg_",
60
- "_position_right": "_position_right_esw7q_gg_",
61
- "_position_left": "_position_left_esw7q_gg_",
62
- "_position_custom_0": "_position_custom_0_esw7q_gg_",
63
- "_position_custom_1": "_position_custom_1_esw7q_gg_"
52
+ "__SAxis": "___SAxis_1l59y_gg_",
53
+ "_hide": "__hide_1l59y_gg_",
54
+ "__STick": "___STick_1l59y_gg_",
55
+ "__SGrid": "___SGrid_1l59y_gg_",
56
+ "__STitle": "___STitle_1l59y_gg_",
57
+ "--transform-origin": "--transform-origin_1l59y",
58
+ "_position_top": "_position_top_1l59y_gg_",
59
+ "_position_bottom": "_position_bottom_1l59y_gg_",
60
+ "_position_right": "_position_right_1l59y_gg_",
61
+ "_position_left": "_position_left_1l59y_gg_",
62
+ "_position_custom_0": "_position_custom_0_1l59y_gg_",
63
+ "_position_custom_1": "_position_custom_1_1l59y_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_1j8s7_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_1j8s7);transition-timing-function:ease-in-out}.___SBar_1j8s7_gg_.__color_1j8s7_gg_{fill:var(--color_1j8s7)}.___SBar_1j8s7_gg_.__hide_1j8s7_gg_{display:none}.___SBackground_1j8s7_gg_{fill:#c4c7cf}"
47
+ ".___SBar_1llxk_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_1llxk);transition-timing-function:ease-in-out}.___SBar_1llxk_gg_.__color_1llxk_gg_{fill:var(--color_1llxk)}.___SBar_1llxk_gg_.__hide_1llxk_gg_{display:none}.___SBackground_1llxk_gg_{fill:#c4c7cf}"
48
48
  /*__inner_css_end__*/
49
- , "1j8s7_gg_")
49
+ , "1llxk_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SBar": "___SBar_1j8s7_gg_",
53
- "--duration": "--duration_1j8s7",
54
- "_color": "__color_1j8s7_gg_",
55
- "--color": "--color_1j8s7",
56
- "_hide": "__hide_1j8s7_gg_",
57
- "__SBackground": "___SBackground_1j8s7_gg_"
52
+ "__SBar": "___SBar_1llxk_gg_",
53
+ "--duration": "--duration_1llxk",
54
+ "_color": "__color_1llxk_gg_",
55
+ "--color": "--color_1llxk",
56
+ "_hide": "__hide_1llxk_gg_",
57
+ "__SBackground": "___SBackground_1llxk_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_1tej7_gg_{fill:#2bb3ff;stroke:#fff;stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_1tej7);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_1tej7_gg_:hover{opacity:.8}.___SBubble_1tej7_gg_.__color_1tej7_gg_{fill:var(--color_1tej7)}.___SCenter_1tej7_gg_{text-anchor:middle;font-size:11px;stroke:#2bb3ff}.___SCenter_1tej7_gg_.__color_1tej7_gg_{stroke:var(--color_1tej7)}.___SLabel_1tej7_gg_{fill:#2bb3ff}.___SLabel_1tej7_gg_._position_right_1tej7_gg_{text-anchor:end}.___SLabel_1tej7_gg_._position_left_1tej7_gg_{text-anchor:start}.___SLabel_1tej7_gg_.__color_1tej7_gg_{fill:var(--color_1tej7)}"
59
+ ".___SBubble_10nlx_gg_{fill:#2bb3ff;stroke:#fff;stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_10nlx);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_10nlx_gg_:hover{opacity:.8}.___SBubble_10nlx_gg_.__color_10nlx_gg_{fill:var(--color_10nlx)}.___SCenter_10nlx_gg_{text-anchor:middle;font-size:11px;stroke:#2bb3ff}.___SCenter_10nlx_gg_.__color_10nlx_gg_{stroke:var(--color_10nlx)}.___SLabel_10nlx_gg_{fill:#2bb3ff}.___SLabel_10nlx_gg_._position_right_10nlx_gg_{text-anchor:end}.___SLabel_10nlx_gg_._position_left_10nlx_gg_{text-anchor:start}.___SLabel_10nlx_gg_.__color_10nlx_gg_{fill:var(--color_10nlx)}"
60
60
  /*__inner_css_end__*/
61
- , "1tej7_gg_")
61
+ , "10nlx_gg_")
62
62
  /*__reshadow_css_end__*/
63
63
  , {
64
- "__SBubble": "___SBubble_1tej7_gg_",
65
- "--duration": "--duration_1tej7",
66
- "_color": "__color_1tej7_gg_",
67
- "--color": "--color_1tej7",
68
- "__SCenter": "___SCenter_1tej7_gg_",
69
- "__SLabel": "___SLabel_1tej7_gg_",
70
- "_position_right": "_position_right_1tej7_gg_",
71
- "_position_left": "_position_left_1tej7_gg_"
64
+ "__SBubble": "___SBubble_10nlx_gg_",
65
+ "--duration": "--duration_10nlx",
66
+ "_color": "__color_10nlx_gg_",
67
+ "--color": "--color_10nlx",
68
+ "__SCenter": "___SCenter_10nlx_gg_",
69
+ "__SLabel": "___SLabel_10nlx_gg_",
70
+ "_position_right": "_position_right_10nlx_gg_",
71
+ "_position_left": "_position_left_10nlx_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_1wudp_gg_{stroke:#fff;fill:#2bb3ff}.___SPie_1wudp_gg_.__color_1wudp_gg_{fill:var(--color_1wudp)}.___SEmptyData_1wudp_gg_{fill:#e0e1e9}.___SEmptyData_1wudp_gg_.__color_1wudp_gg_{fill:var(--color_1wudp)}.___SLabel_1wudp_gg_{text-anchor:middle;vertical-anchor:middle}"
69
+ ".___SPie_7r405_gg_{stroke:#fff;fill:#2bb3ff}.___SPie_7r405_gg_.__color_7r405_gg_{fill:var(--color_7r405)}.___SEmptyData_7r405_gg_{fill:#e0e1e9}.___SEmptyData_7r405_gg_.__color_7r405_gg_{fill:var(--color_7r405)}.___SLabel_7r405_gg_{text-anchor:middle;vertical-anchor:middle}"
70
70
  /*__inner_css_end__*/
71
- , "1wudp_gg_")
71
+ , "7r405_gg_")
72
72
  /*__reshadow_css_end__*/
73
73
  , {
74
- "__SPie": "___SPie_1wudp_gg_",
75
- "_color": "__color_1wudp_gg_",
76
- "--color": "--color_1wudp",
77
- "__SEmptyData": "___SEmptyData_1wudp_gg_",
78
- "__SLabel": "___SLabel_1wudp_gg_"
74
+ "__SPie": "___SPie_7r405_gg_",
75
+ "_color": "__color_7r405_gg_",
76
+ "--color": "--color_7r405",
77
+ "__SEmptyData": "___SEmptyData_7r405_gg_",
78
+ "__SLabel": "___SLabel_7r405_gg_"
79
79
  });
80
80
  var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
81
81
 
package/lib/cjs/Dots.js CHANGED
@@ -32,18 +32,18 @@ var style = (
32
32
  /*__reshadow_css_start__*/
33
33
  _core.sstyled.insert(
34
34
  /*__inner_css_start__*/
35
- ".___SDots_sn9lg_gg_ .___SDot_sn9lg_gg_{transition-duration:var(--duration_sn9lg)}.___SDot_sn9lg_gg_{stroke-width:2px;stroke:#fff;r:6px;fill:#2bb3ff;transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_sn9lg_gg_.__hide_sn9lg_gg_{display:none}.___SDot_sn9lg_gg_.__active_sn9lg_gg_{r:8px}.___SDot_sn9lg_gg_.__color_sn9lg_gg_{fill:var(--color_sn9lg)}"
35
+ ".___SDots_3fmth_gg_ .___SDot_3fmth_gg_{transition-duration:var(--duration_3fmth)}.___SDot_3fmth_gg_{stroke-width:2px;stroke:#fff;r:6px;fill:#2bb3ff;transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_3fmth_gg_.__hide_3fmth_gg_{display:none}.___SDot_3fmth_gg_.__active_3fmth_gg_{r:8px}.___SDot_3fmth_gg_.__color_3fmth_gg_{fill:var(--color_3fmth)}"
36
36
  /*__inner_css_end__*/
37
- , "sn9lg_gg_")
37
+ , "3fmth_gg_")
38
38
  /*__reshadow_css_end__*/
39
39
  , {
40
- "__SDots": "___SDots_sn9lg_gg_",
41
- "__SDot": "___SDot_sn9lg_gg_",
42
- "--duration": "--duration_sn9lg",
43
- "_hide": "__hide_sn9lg_gg_",
44
- "_active": "__active_sn9lg_gg_",
45
- "_color": "__color_sn9lg_gg_",
46
- "--color": "--color_sn9lg"
40
+ "__SDots": "___SDots_3fmth_gg_",
41
+ "__SDot": "___SDot_3fmth_gg_",
42
+ "--duration": "--duration_3fmth",
43
+ "_hide": "__hide_3fmth_gg_",
44
+ "_active": "__active_3fmth_gg_",
45
+ "_color": "__color_3fmth_gg_",
46
+ "--color": "--color_3fmth"
47
47
  });
48
48
  var EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];
49
49
 
@@ -42,15 +42,15 @@ var _ref = (
42
42
  /*__reshadow_css_start__*/
43
43
  (0, _core.__css__)(
44
44
  /*__inner_css_start__*/
45
- ".___SBar_1ptfs_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_1ptfs_gg_.__color_1ptfs_gg_{fill:var(--color)}.___SBar_1ptfs_gg_.__hide_1ptfs_gg_{display:none}.___SBackground_1ptfs_gg_{fill:#c4c7cf}"
45
+ ".___SBar_cfm4j_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_cfm4j_gg_.__color_cfm4j_gg_{fill:var(--color)}.___SBar_cfm4j_gg_.__hide_cfm4j_gg_{display:none}.___SBackground_cfm4j_gg_{fill:#c4c7cf}"
46
46
  /*__inner_css_end__*/
47
- , "18c2q6a_gg_")
47
+ , "27em4i_gg_")
48
48
  /*__reshadow_css_end__*/
49
49
  , {
50
- "__SBar": "___SBar_1ptfs_gg_",
51
- "_color": "__color_1ptfs_gg_",
52
- "_hide": "__hide_1ptfs_gg_",
53
- "__SBackground": "___SBackground_1ptfs_gg_"
50
+ "__SBar": "___SBar_cfm4j_gg_",
51
+ "_color": "__color_cfm4j_gg_",
52
+ "_hide": "__hide_cfm4j_gg_",
53
+ "__SBackground": "___SBackground_cfm4j_gg_"
54
54
  }),
55
55
  style = (0, _extends2["default"])({}, _ref);
56
56
 
@@ -42,17 +42,17 @@ var style = (
42
42
  /*__reshadow_css_start__*/
43
43
  _core.sstyled.insert(
44
44
  /*__inner_css_start__*/
45
- ".___SBar_1j8s7_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_1j8s7);transition-timing-function:ease-in-out}.___SBar_1j8s7_gg_.__color_1j8s7_gg_{fill:var(--color_1j8s7)}.___SBar_1j8s7_gg_.__hide_1j8s7_gg_{display:none}.___SBackground_1j8s7_gg_{fill:#c4c7cf}"
45
+ ".___SBar_1llxk_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_1llxk);transition-timing-function:ease-in-out}.___SBar_1llxk_gg_.__color_1llxk_gg_{fill:var(--color_1llxk)}.___SBar_1llxk_gg_.__hide_1llxk_gg_{display:none}.___SBackground_1llxk_gg_{fill:#c4c7cf}"
46
46
  /*__inner_css_end__*/
47
- , "1j8s7_gg_")
47
+ , "1llxk_gg_")
48
48
  /*__reshadow_css_end__*/
49
49
  , {
50
- "__SBar": "___SBar_1j8s7_gg_",
51
- "--duration": "--duration_1j8s7",
52
- "_color": "__color_1j8s7_gg_",
53
- "--color": "--color_1j8s7",
54
- "_hide": "__hide_1j8s7_gg_",
55
- "__SBackground": "___SBackground_1j8s7_gg_"
50
+ "__SBar": "___SBar_1llxk_gg_",
51
+ "--duration": "--duration_1llxk",
52
+ "_color": "__color_1llxk_gg_",
53
+ "--color": "--color_1llxk",
54
+ "_hide": "__hide_1llxk_gg_",
55
+ "__SBackground": "___SBackground_1llxk_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_z4284_gg_{stroke:#a9abb6}.___SHoverRect_z4284_gg_{fill:rgba(196,199,207,.3)}"
47
+ ".___SHoverLine_1k0tn_gg_{stroke:#a9abb6}.___SHoverRect_1k0tn_gg_{fill:rgba(196,199,207,.3)}"
48
48
  /*__inner_css_end__*/
49
- , "z4284_gg_")
49
+ , "1k0tn_gg_")
50
50
  /*__reshadow_css_end__*/
51
51
  , {
52
- "__SHoverLine": "___SHoverLine_z4284_gg_",
53
- "__SHoverRect": "___SHoverRect_z4284_gg_"
52
+ "__SHoverLine": "___SHoverLine_1k0tn_gg_",
53
+ "__SHoverRect": "___SHoverRect_1k0tn_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_1wqz9_gg_{fill:transparent;stroke-width:3;stroke:#2bb3ff;transition-property:d;transition-duration:var(--duration_1wqz9);transition-timing-function:ease-in-out}.___SLine_1wqz9_gg_.__color_1wqz9_gg_{stroke:var(--color_1wqz9)}.___SLine_1wqz9_gg_.__hide_1wqz9_gg_{display:none}.___SNull_1wqz9_gg_{fill:transparent;stroke:#c4c7cf;stroke-dasharray:4}.___SNull_1wqz9_gg_.__hide_1wqz9_gg_{display:none}"
49
+ ".___SLine_1p9qu_gg_{fill:transparent;stroke-width:3;stroke:#2bb3ff;transition-property:d;transition-duration:var(--duration_1p9qu);transition-timing-function:ease-in-out}.___SLine_1p9qu_gg_.__color_1p9qu_gg_{stroke:var(--color_1p9qu)}.___SLine_1p9qu_gg_.__hide_1p9qu_gg_{display:none}.___SNull_1p9qu_gg_{fill:transparent;stroke:#c4c7cf;stroke-dasharray:4}.___SNull_1p9qu_gg_.__hide_1p9qu_gg_{display:none}"
50
50
  /*__inner_css_end__*/
51
- , "1wqz9_gg_")
51
+ , "1p9qu_gg_")
52
52
  /*__reshadow_css_end__*/
53
53
  , {
54
- "__SLine": "___SLine_1wqz9_gg_",
55
- "--duration": "--duration_1wqz9",
56
- "_color": "__color_1wqz9_gg_",
57
- "--color": "--color_1wqz9",
58
- "_hide": "__hide_1wqz9_gg_",
59
- "__SNull": "___SNull_1wqz9_gg_"
54
+ "__SLine": "___SLine_1p9qu_gg_",
55
+ "--duration": "--duration_1p9qu",
56
+ "_color": "__color_1p9qu_gg_",
57
+ "--color": "--color_1p9qu",
58
+ "_hide": "__hide_1p9qu_gg_",
59
+ "__SNull": "___SNull_1p9qu_gg_"
60
60
  });
61
61
 
62
62
  var LineRoot = /*#__PURE__*/function (_Component) {
package/lib/cjs/Plot.js CHANGED
@@ -52,12 +52,12 @@ var style = (
52
52
  /*__reshadow_css_start__*/
53
53
  _core.sstyled.insert(
54
54
  /*__inner_css_start__*/
55
- ".___SPlot_1gqmg_gg_{overflow:hidden}"
55
+ ".___SPlot_1y0g0_gg_{overflow:hidden}"
56
56
  /*__inner_css_end__*/
57
- , "1gqmg_gg_")
57
+ , "1y0g0_gg_")
58
58
  /*__reshadow_css_end__*/
59
59
  , {
60
- "__SPlot": "___SPlot_1gqmg_gg_"
60
+ "__SPlot": "___SPlot_1y0g0_gg_"
61
61
  });
62
62
 
63
63
  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_4s3be_gg_{cursor:pointer;fill:#008ff8}.___SLine_4s3be_gg_{stroke:#008ff8}.___SLine_4s3be_gg_.__color_4s3be_gg_{stroke:var(--color_4s3be)}.___SCap_4s3be_gg_{transition:r .1s}.___SLabel_4s3be_gg_{fill:var(--color_4s3be);cursor:var(--text-cursor_4s3be)}.___SRadian_4s3be_gg_:hover .___SLabel_4s3be_gg_{fill:var(--color-hovered_4s3be)}@media (prefers-reduced-motion){.___SLineCap_4s3be_gg_{transition:none}}"
63
+ ".___SRadian_1b03n_gg_{cursor:pointer;fill:#008ff8}.___SLine_1b03n_gg_{stroke:#008ff8}.___SLine_1b03n_gg_.__color_1b03n_gg_{stroke:var(--color_1b03n)}.___SCap_1b03n_gg_{transition:r .1s}.___SLabel_1b03n_gg_{fill:var(--color_1b03n);cursor:var(--text-cursor_1b03n)}.___SRadian_1b03n_gg_:hover .___SLabel_1b03n_gg_{fill:var(--color-hovered_1b03n)}@media (prefers-reduced-motion){.___SLineCap_1b03n_gg_{transition:none}}"
64
64
  /*__inner_css_end__*/
65
- , "4s3be_gg_")
65
+ , "1b03n_gg_")
66
66
  /*__reshadow_css_end__*/
67
67
  , {
68
- "__SRadian": "___SRadian_4s3be_gg_",
69
- "__SLine": "___SLine_4s3be_gg_",
70
- "_color": "__color_4s3be_gg_",
71
- "--color": "--color_4s3be",
72
- "__SCap": "___SCap_4s3be_gg_",
73
- "__SLabel": "___SLabel_4s3be_gg_",
74
- "--text-cursor": "--text-cursor_4s3be",
75
- "--color-hovered": "--color-hovered_4s3be",
76
- "__SLineCap": "___SLineCap_4s3be_gg_"
68
+ "__SRadian": "___SRadian_1b03n_gg_",
69
+ "__SLine": "___SLine_1b03n_gg_",
70
+ "_color": "__color_1b03n_gg_",
71
+ "--color": "--color_1b03n",
72
+ "__SCap": "___SCap_1b03n_gg_",
73
+ "__SLabel": "___SLabel_1b03n_gg_",
74
+ "--text-cursor": "--text-cursor_1b03n",
75
+ "--color-hovered": "--color-hovered_1b03n",
76
+ "__SLineCap": "___SLineCap_1b03n_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_1cfvk_gg_{fill:none;stroke:#a9abb6}.___STitle_1cfvk_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1cfvk)}.___STitle_1cfvk_gg_._position_top_1cfvk_gg_{text-anchor:middle}.___STitle_1cfvk_gg_._position_bottom_1cfvk_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1cfvk_gg_._position_right_1cfvk_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1cfvk_gg_._position_left_1cfvk_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_1cfvk_gg_{fill:rgba(196,199,207,.2)}"
45
+ ".___SReferenceLine_98aec_gg_{fill:none;stroke:#a9abb6}.___STitle_98aec_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_98aec)}.___STitle_98aec_gg_._position_top_98aec_gg_{text-anchor:middle}.___STitle_98aec_gg_._position_bottom_98aec_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_98aec_gg_._position_right_98aec_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_98aec_gg_._position_left_98aec_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_98aec_gg_{fill:rgba(196,199,207,.2)}"
46
46
  /*__inner_css_end__*/
47
- , "1cfvk_gg_")
47
+ , "98aec_gg_")
48
48
  /*__reshadow_css_end__*/
49
49
  , {
50
- "__SReferenceLine": "___SReferenceLine_1cfvk_gg_",
51
- "__STitle": "___STitle_1cfvk_gg_",
52
- "--transform-origin": "--transform-origin_1cfvk",
53
- "_position_top": "_position_top_1cfvk_gg_",
54
- "_position_bottom": "_position_bottom_1cfvk_gg_",
55
- "_position_right": "_position_right_1cfvk_gg_",
56
- "_position_left": "_position_left_1cfvk_gg_",
57
- "__SBackground": "___SBackground_1cfvk_gg_"
50
+ "__SReferenceLine": "___SReferenceLine_98aec_gg_",
51
+ "__STitle": "___STitle_98aec_gg_",
52
+ "--transform-origin": "--transform-origin_98aec",
53
+ "_position_top": "_position_top_98aec_gg_",
54
+ "_position_bottom": "_position_bottom_98aec_gg_",
55
+ "_position_right": "_position_right_98aec_gg_",
56
+ "_position_left": "_position_left_98aec_gg_",
57
+ "__SBackground": "___SBackground_98aec_gg_"
58
58
  });
59
59
  var MAP_ORIENTATION = {
60
60
  left: 'vertical',
@@ -67,6 +67,7 @@ var ResponsiveContainerRoot = /*#__PURE__*/function (_Component) {
67
67
  var _this$asProps = _this.asProps,
68
68
  Children = _this$asProps.Children,
69
69
  aspect = _this$asProps.aspect;
70
+ if (!_this.$container) return;
70
71
  var _this$$container = _this.$container,
71
72
  width = _this$$container.clientWidth,
72
73
  height = _this$$container.clientHeight;
@@ -1 +1 @@
1
- {"version":3,"file":"ResponsiveContainer.js","names":["ResponsiveContainerRoot","props","React","createRef","trottle","entries","asProps","Children","aspect","$container","width","clientWidth","height","clientHeight","style","window","getComputedStyle","minHeight","Number","parseInt","getPropertyValue","maxHeight","size","fire","getOriginChildren","forceUpdate","observer","ResizeObserver","handleResize","containerRef","current","observe","disconnect","SResponsiveContainer","Box","styles","sstyled","Component","ResponsiveContainer","createComponent"],"sources":["../../src/ResponsiveContainer.jsx"],"sourcesContent":["import React from 'react';\nimport ResizeObserver from 'resize-observer-polyfill';\n\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport trottle from '@semcore/utils/lib/rafTrottle';\nimport fire from '@semcore/utils/lib/fire';\nimport getOriginChildren from '@semcore/utils/lib/getOriginChildren';\n\nclass ResponsiveContainerRoot extends Component {\n static displayName = 'ResponsiveContainer';\n\n containerRef = React.createRef();\n size = [0, 0];\n\n constructor(props) {\n super(props);\n this.observer = new ResizeObserver(this.handleResize);\n }\n\n get $container() {\n return this.containerRef.current;\n }\n\n handleResize = trottle((entries) => {\n const { Children, aspect } = this.asProps;\n let { clientWidth: width, clientHeight: height } = this.$container;\n\n if (aspect) {\n const style = window.getComputedStyle(this.$container);\n const minHeight = Number.parseInt(style.getPropertyValue('min-height'));\n const maxHeight = Number.parseInt(style.getPropertyValue('max-height'));\n height = width * aspect;\n\n if (height < minHeight) {\n height = minHeight;\n }\n if (height > maxHeight) {\n height = maxHeight;\n }\n }\n\n if (this.size[0] === width && this.size[1] === height) return;\n\n this.size = [width, height];\n\n fire(this, 'onResize', this.size, entries);\n\n if (typeof getOriginChildren(Children) === 'function') {\n this.forceUpdate();\n }\n });\n\n setContext() {\n const [width, height] = this.size;\n return {\n width,\n height,\n };\n }\n\n componentDidMount() {\n if (this.$container) {\n // TODO: may be we can increase perfomance here? (by lsroman)\n this.observer.observe(this.$container);\n }\n }\n\n // TODO component did update ref?\n\n componentWillUnmount() {\n this.observer.disconnect();\n }\n\n render() {\n const SResponsiveContainer = Root;\n const { styles } = this.asProps;\n return sstyled(styles)(<SResponsiveContainer render={Box} ref={this.containerRef} />);\n }\n}\n\nconst ResponsiveContainer = createComponent(ResponsiveContainerRoot);\n\nexport default ResponsiveContainer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;AAHA;;AACA;;AAGA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;IAEMA,uB;;;;;EAMJ,iCAAYC,KAAZ,EAAmB;IAAA;;IAAA;IACjB,0BAAMA,KAAN;IADiB,8GAHJC,iBAAA,CAAMC,SAAN,EAGI;IAAA,yFAFZ,CAAC,CAAD,EAAI,CAAJ,CAEY;IAAA,iGASJ,IAAAC,sBAAA,EAAQ,UAACC,OAAD,EAAa;MAClC,oBAA6B,MAAKC,OAAlC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,MAAlB,iBAAkBA,MAAlB;MACA,uBAAmD,MAAKC,UAAxD;MAAA,IAAmBC,KAAnB,oBAAMC,WAAN;MAAA,IAAwCC,MAAxC,oBAA0BC,YAA1B;;MAEA,IAAIL,MAAJ,EAAY;QACV,IAAMM,KAAK,GAAGC,MAAM,CAACC,gBAAP,CAAwB,MAAKP,UAA7B,CAAd;QACA,IAAMQ,SAAS,GAAGC,MAAM,CAACC,QAAP,CAAgBL,KAAK,CAACM,gBAAN,CAAuB,YAAvB,CAAhB,CAAlB;QACA,IAAMC,SAAS,GAAGH,MAAM,CAACC,QAAP,CAAgBL,KAAK,CAACM,gBAAN,CAAuB,YAAvB,CAAhB,CAAlB;QACAR,MAAM,GAAGF,KAAK,GAAGF,MAAjB;;QAEA,IAAII,MAAM,GAAGK,SAAb,EAAwB;UACtBL,MAAM,GAAGK,SAAT;QACD;;QACD,IAAIL,MAAM,GAAGS,SAAb,EAAwB;UACtBT,MAAM,GAAGS,SAAT;QACD;MACF;;MAED,IAAI,MAAKC,IAAL,CAAU,CAAV,MAAiBZ,KAAjB,IAA0B,MAAKY,IAAL,CAAU,CAAV,MAAiBV,MAA/C,EAAuD;MAEvD,MAAKU,IAAL,GAAY,CAACZ,KAAD,EAAQE,MAAR,CAAZ;MAEA,IAAAW,gBAAA,kDAAW,UAAX,EAAuB,MAAKD,IAA5B,EAAkCjB,OAAlC;;MAEA,IAAI,OAAO,IAAAmB,6BAAA,EAAkBjB,QAAlB,CAAP,KAAuC,UAA3C,EAAuD;QACrD,MAAKkB,WAAL;MACD;IACF,CA3Bc,CATI;IAEjB,MAAKC,QAAL,GAAgB,IAAIC,kCAAJ,CAAmB,MAAKC,YAAxB,CAAhB;IAFiB;EAGlB;;;;SAED,eAAiB;MACf,OAAO,KAAKC,YAAL,CAAkBC,OAAzB;IACD;;;WA+BD,sBAAa;MACX,iDAAwB,KAAKR,IAA7B;MAAA,IAAOZ,KAAP;MAAA,IAAcE,MAAd;;MACA,OAAO;QACLF,KAAK,EAALA,KADK;QAELE,MAAM,EAANA;MAFK,CAAP;IAID;;;WAED,6BAAoB;MAClB,IAAI,KAAKH,UAAT,EAAqB;QACnB;QACA,KAAKiB,QAAL,CAAcK,OAAd,CAAsB,KAAKtB,UAA3B;MACD;IACF,C,CAED;;;;WAEA,gCAAuB;MACrB,KAAKiB,QAAL,CAAcM,UAAd;IACD;;;WAED,kBAAS;MAAA;MAAA;;MACP,IAAMC,oBAAoB,GAE2BC,YAFrD;MACA,IAAQC,MAAR,GAAmB,KAAK7B,OAAxB,CAAQ6B,MAAR;MACA,eAAO,IAAAC,aAAA,EAAQD,MAAR,CAAP,eAAuB,gCAAC,oBAAD;QAAA,OAAwC,KAAKN;MAA7C,WAAvB;IACD;;;EArEmCQ,e;;iCAAhCrC,uB,iBACiB,qB;AAuEvB,IAAMsC,mBAAmB,GAAG,IAAAC,gBAAA,EAAgBvC,uBAAhB,CAA5B;eAEesC,mB"}
1
+ {"version":3,"file":"ResponsiveContainer.js","names":["ResponsiveContainerRoot","props","React","createRef","trottle","entries","asProps","Children","aspect","$container","width","clientWidth","height","clientHeight","style","window","getComputedStyle","minHeight","Number","parseInt","getPropertyValue","maxHeight","size","fire","getOriginChildren","forceUpdate","observer","ResizeObserver","handleResize","containerRef","current","observe","disconnect","SResponsiveContainer","Box","styles","sstyled","Component","ResponsiveContainer","createComponent"],"sources":["../../src/ResponsiveContainer.jsx"],"sourcesContent":["import React from 'react';\nimport ResizeObserver from 'resize-observer-polyfill';\n\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport trottle from '@semcore/utils/lib/rafTrottle';\nimport fire from '@semcore/utils/lib/fire';\nimport getOriginChildren from '@semcore/utils/lib/getOriginChildren';\n\nclass ResponsiveContainerRoot extends Component {\n static displayName = 'ResponsiveContainer';\n\n containerRef = React.createRef();\n size = [0, 0];\n\n constructor(props) {\n super(props);\n this.observer = new ResizeObserver(this.handleResize);\n }\n\n get $container() {\n return this.containerRef.current;\n }\n\n handleResize = trottle((entries) => {\n const { Children, aspect } = this.asProps;\n\n if (!this.$container) return;\n\n let { clientWidth: width, clientHeight: height } = this.$container;\n\n if (aspect) {\n const style = window.getComputedStyle(this.$container);\n const minHeight = Number.parseInt(style.getPropertyValue('min-height'));\n const maxHeight = Number.parseInt(style.getPropertyValue('max-height'));\n height = width * aspect;\n\n if (height < minHeight) {\n height = minHeight;\n }\n if (height > maxHeight) {\n height = maxHeight;\n }\n }\n\n if (this.size[0] === width && this.size[1] === height) return;\n\n this.size = [width, height];\n\n fire(this, 'onResize', this.size, entries);\n\n if (typeof getOriginChildren(Children) === 'function') {\n this.forceUpdate();\n }\n });\n\n setContext() {\n const [width, height] = this.size;\n return {\n width,\n height,\n };\n }\n\n componentDidMount() {\n if (this.$container) {\n // TODO: may be we can increase perfomance here? (by lsroman)\n this.observer.observe(this.$container);\n }\n }\n\n // TODO component did update ref?\n\n componentWillUnmount() {\n this.observer.disconnect();\n }\n\n render() {\n const SResponsiveContainer = Root;\n const { styles } = this.asProps;\n return sstyled(styles)(<SResponsiveContainer render={Box} ref={this.containerRef} />);\n }\n}\n\nconst ResponsiveContainer = createComponent(ResponsiveContainerRoot);\n\nexport default ResponsiveContainer;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;AAHA;;AACA;;AAGA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;IAEMA,uB;;;;;EAMJ,iCAAYC,KAAZ,EAAmB;IAAA;;IAAA;IACjB,0BAAMA,KAAN;IADiB,8GAHJC,iBAAA,CAAMC,SAAN,EAGI;IAAA,yFAFZ,CAAC,CAAD,EAAI,CAAJ,CAEY;IAAA,iGASJ,IAAAC,sBAAA,EAAQ,UAACC,OAAD,EAAa;MAClC,oBAA6B,MAAKC,OAAlC;MAAA,IAAQC,QAAR,iBAAQA,QAAR;MAAA,IAAkBC,MAAlB,iBAAkBA,MAAlB;MAEA,IAAI,CAAC,MAAKC,UAAV,EAAsB;MAEtB,uBAAmD,MAAKA,UAAxD;MAAA,IAAmBC,KAAnB,oBAAMC,WAAN;MAAA,IAAwCC,MAAxC,oBAA0BC,YAA1B;;MAEA,IAAIL,MAAJ,EAAY;QACV,IAAMM,KAAK,GAAGC,MAAM,CAACC,gBAAP,CAAwB,MAAKP,UAA7B,CAAd;QACA,IAAMQ,SAAS,GAAGC,MAAM,CAACC,QAAP,CAAgBL,KAAK,CAACM,gBAAN,CAAuB,YAAvB,CAAhB,CAAlB;QACA,IAAMC,SAAS,GAAGH,MAAM,CAACC,QAAP,CAAgBL,KAAK,CAACM,gBAAN,CAAuB,YAAvB,CAAhB,CAAlB;QACAR,MAAM,GAAGF,KAAK,GAAGF,MAAjB;;QAEA,IAAII,MAAM,GAAGK,SAAb,EAAwB;UACtBL,MAAM,GAAGK,SAAT;QACD;;QACD,IAAIL,MAAM,GAAGS,SAAb,EAAwB;UACtBT,MAAM,GAAGS,SAAT;QACD;MACF;;MAED,IAAI,MAAKC,IAAL,CAAU,CAAV,MAAiBZ,KAAjB,IAA0B,MAAKY,IAAL,CAAU,CAAV,MAAiBV,MAA/C,EAAuD;MAEvD,MAAKU,IAAL,GAAY,CAACZ,KAAD,EAAQE,MAAR,CAAZ;MAEA,IAAAW,gBAAA,kDAAW,UAAX,EAAuB,MAAKD,IAA5B,EAAkCjB,OAAlC;;MAEA,IAAI,OAAO,IAAAmB,6BAAA,EAAkBjB,QAAlB,CAAP,KAAuC,UAA3C,EAAuD;QACrD,MAAKkB,WAAL;MACD;IACF,CA9Bc,CATI;IAEjB,MAAKC,QAAL,GAAgB,IAAIC,kCAAJ,CAAmB,MAAKC,YAAxB,CAAhB;IAFiB;EAGlB;;;;SAED,eAAiB;MACf,OAAO,KAAKC,YAAL,CAAkBC,OAAzB;IACD;;;WAkCD,sBAAa;MACX,iDAAwB,KAAKR,IAA7B;MAAA,IAAOZ,KAAP;MAAA,IAAcE,MAAd;;MACA,OAAO;QACLF,KAAK,EAALA,KADK;QAELE,MAAM,EAANA;MAFK,CAAP;IAID;;;WAED,6BAAoB;MAClB,IAAI,KAAKH,UAAT,EAAqB;QACnB;QACA,KAAKiB,QAAL,CAAcK,OAAd,CAAsB,KAAKtB,UAA3B;MACD;IACF,C,CAED;;;;WAEA,gCAAuB;MACrB,KAAKiB,QAAL,CAAcM,UAAd;IACD;;;WAED,kBAAS;MAAA;MAAA;;MACP,IAAMC,oBAAoB,GAE2BC,YAFrD;MACA,IAAQC,MAAR,GAAmB,KAAK7B,OAAxB,CAAQ6B,MAAR;MACA,eAAO,IAAAC,aAAA,EAAQD,MAAR,CAAP,eAAuB,gCAAC,oBAAD;QAAA,OAAwC,KAAKN;MAA7C,WAAvB;IACD;;;EAxEmCQ,e;;iCAAhCrC,uB,iBACiB,qB;AA0EvB,IAAMsC,mBAAmB,GAAG,IAAAC,gBAAA,EAAgBvC,uBAAhB,CAA5B;eAEesC,mB"}
@@ -52,16 +52,16 @@ var style = (
52
52
  /*__reshadow_css_start__*/
53
53
  _core.sstyled.insert(
54
54
  /*__inner_css_start__*/
55
- ".___SScatterPlot_xemf4_gg_{fill:#2bb3ff;transition-property:cx,cy;transition-duration:var(--duration_xemf4);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_xemf4_gg_:hover{opacity:.8}.___SScatterPlot_xemf4_gg_.__color_xemf4_gg_{fill:var(--color_xemf4)}.___SValue_xemf4_gg_{text-anchor:middle;font-size:10px;stroke:#008ff8}.___SValue_xemf4_gg_.__color_xemf4_gg_{stroke:var(--color_xemf4)}"
55
+ ".___SScatterPlot_1nssx_gg_{fill:#2bb3ff;transition-property:cx,cy;transition-duration:var(--duration_1nssx);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_1nssx_gg_:hover{opacity:.8}.___SScatterPlot_1nssx_gg_.__color_1nssx_gg_{fill:var(--color_1nssx)}.___SValue_1nssx_gg_{text-anchor:middle;font-size:10px;stroke:#008ff8}.___SValue_1nssx_gg_.__color_1nssx_gg_{stroke:var(--color_1nssx)}"
56
56
  /*__inner_css_end__*/
57
- , "xemf4_gg_")
57
+ , "1nssx_gg_")
58
58
  /*__reshadow_css_end__*/
59
59
  , {
60
- "__SScatterPlot": "___SScatterPlot_xemf4_gg_",
61
- "--duration": "--duration_xemf4",
62
- "_color": "__color_xemf4_gg_",
63
- "--color": "--color_xemf4",
64
- "__SValue": "___SValue_xemf4_gg_"
60
+ "__SScatterPlot": "___SScatterPlot_1nssx_gg_",
61
+ "--duration": "--duration_1nssx",
62
+ "_color": "__color_1nssx_gg_",
63
+ "--color": "--color_1nssx",
64
+ "__SValue": "___SValue_1nssx_gg_"
65
65
  });
66
66
 
67
67
  var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
@@ -48,15 +48,15 @@ var _ref = (
48
48
  /*__reshadow_css_start__*/
49
49
  (0, _core.__css__)(
50
50
  /*__inner_css_start__*/
51
- ".___SBar_1q35l_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_1q35l_gg_.__color_1q35l_gg_{fill:var(--color)}.___SBar_1q35l_gg_.__hide_1q35l_gg_{display:none}.___SBackground_1q35l_gg_{fill:#c4c7cf}"
51
+ ".___SBar_d3qxk_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_d3qxk_gg_.__color_d3qxk_gg_{fill:var(--color)}.___SBar_d3qxk_gg_.__hide_d3qxk_gg_{display:none}.___SBackground_d3qxk_gg_{fill:#c4c7cf}"
52
52
  /*__inner_css_end__*/
53
- , "g0grya_gg_")
53
+ , "17ddk02_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "__SBar": "___SBar_1q35l_gg_",
57
- "_color": "__color_1q35l_gg_",
58
- "_hide": "__hide_1q35l_gg_",
59
- "__SBackground": "___SBackground_1q35l_gg_"
56
+ "__SBar": "___SBar_d3qxk_gg_",
57
+ "_color": "__color_d3qxk_gg_",
58
+ "_hide": "__hide_d3qxk_gg_",
59
+ "__SBackground": "___SBackground_d3qxk_gg_"
60
60
  }),
61
61
  style = (0, _extends2["default"])({}, _ref);
62
62
 
@@ -46,16 +46,16 @@ var _ref = (
46
46
  /*__reshadow_css_start__*/
47
47
  (0, _core.__css__)(
48
48
  /*__inner_css_start__*/
49
- ".___SArea_jpjdp_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_jpjdp_gg_.__color_jpjdp_gg_{fill:var(--color)}.___SAreaLine_jpjdp_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_jpjdp_gg_.__color_jpjdp_gg_{stroke:var(--color)}.___SArea_jpjdp_gg_,.___SAreaLine_jpjdp_gg_{transition-property:d;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SNull_jpjdp_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_jpjdp_gg_.__hide_jpjdp_gg_{display:none}"
49
+ ".___SArea_1nfqk_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_1nfqk_gg_.__color_1nfqk_gg_{fill:var(--color)}.___SAreaLine_1nfqk_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_1nfqk_gg_.__color_1nfqk_gg_{stroke:var(--color)}.___SArea_1nfqk_gg_,.___SAreaLine_1nfqk_gg_{transition-property:d;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SNull_1nfqk_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_1nfqk_gg_.__hide_1nfqk_gg_{display:none}"
50
50
  /*__inner_css_end__*/
51
- , "j81c8n_gg_")
51
+ , "1rrv10w_gg_")
52
52
  /*__reshadow_css_end__*/
53
53
  , {
54
- "__SArea": "___SArea_jpjdp_gg_",
55
- "_color": "__color_jpjdp_gg_",
56
- "__SAreaLine": "___SAreaLine_jpjdp_gg_",
57
- "__SNull": "___SNull_jpjdp_gg_",
58
- "_hide": "__hide_jpjdp_gg_"
54
+ "__SArea": "___SArea_1nfqk_gg_",
55
+ "_color": "__color_1nfqk_gg_",
56
+ "__SAreaLine": "___SAreaLine_1nfqk_gg_",
57
+ "__SNull": "___SNull_1nfqk_gg_",
58
+ "_hide": "__hide_1nfqk_gg_"
59
59
  }),
60
60
  style = (0, _extends2["default"])({}, _ref);
61
61
 
@@ -60,17 +60,17 @@ var style = (
60
60
  /*__reshadow_css_start__*/
61
61
  _core.sstyled.insert(
62
62
  /*__inner_css_start__*/
63
- ".___STooltip_1lzve_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_1lzve_gg_{color:#6c6e79;margin-bottom:8px}.___SDotGroup_1lzve_gg_{display:flex;align-items:center}.___SDot_1lzve_gg_{width:8px;height:8px;border-radius:50%;margin-right:8px;background:#2bb3ff}.___SDot_1lzve_gg_.__color_1lzve_gg_{background:var(--color_1lzve)}"
63
+ ".___STooltip_vusgw_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_vusgw_gg_{color:#6c6e79;margin-bottom:8px}.___SDotGroup_vusgw_gg_{display:flex;align-items:center}.___SDot_vusgw_gg_{width:8px;height:8px;border-radius:50%;margin-right:8px;background:#2bb3ff}.___SDot_vusgw_gg_.__color_vusgw_gg_{background:var(--color_vusgw)}"
64
64
  /*__inner_css_end__*/
65
- , "1lzve_gg_")
65
+ , "vusgw_gg_")
66
66
  /*__reshadow_css_end__*/
67
67
  , {
68
- "__STooltip": "___STooltip_1lzve_gg_",
69
- "__STitle": "___STitle_1lzve_gg_",
70
- "__SDotGroup": "___SDotGroup_1lzve_gg_",
71
- "__SDot": "___SDot_1lzve_gg_",
72
- "_color": "__color_1lzve_gg_",
73
- "--color": "--color_1lzve"
68
+ "__STooltip": "___STooltip_vusgw_gg_",
69
+ "__STitle": "___STitle_vusgw_gg_",
70
+ "__SDotGroup": "___SDotGroup_vusgw_gg_",
71
+ "__SDot": "___SDot_vusgw_gg_",
72
+ "_color": "__color_vusgw_gg_",
73
+ "--color": "--color_vusgw"
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_15r3k_gg_{fill:#59ddaa;stroke:#fff;stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_15r3k);transition-timing-function:ease-in-out}.___SCircle_15r3k_gg_:hover{fill-opacity:.7}.___SCircle_15r3k_gg_.__color_15r3k_gg_{fill:var(--color_15r3k)}.___SIntersection_15r3k_gg_{stroke:#fff;stroke-width:2px;fill-opacity:0}.___SIntersection_15r3k_gg_:hover{fill-opacity:.1}"
51
+ ".___SCircle_nd2tl_gg_{fill:#59ddaa;stroke:#fff;stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_nd2tl);transition-timing-function:ease-in-out}.___SCircle_nd2tl_gg_:hover{fill-opacity:.7}.___SCircle_nd2tl_gg_.__color_nd2tl_gg_{fill:var(--color_nd2tl)}.___SIntersection_nd2tl_gg_{stroke:#fff;stroke-width:2px;fill-opacity:0}.___SIntersection_nd2tl_gg_:hover{fill-opacity:.1}"
52
52
  /*__inner_css_end__*/
53
- , "15r3k_gg_")
53
+ , "nd2tl_gg_")
54
54
  /*__reshadow_css_end__*/
55
55
  , {
56
- "__SCircle": "___SCircle_15r3k_gg_",
57
- "--duration": "--duration_15r3k",
58
- "_color": "__color_15r3k_gg_",
59
- "--color": "--color_15r3k",
60
- "__SIntersection": "___SIntersection_15r3k_gg_"
56
+ "__SCircle": "___SCircle_nd2tl_gg_",
57
+ "--duration": "--duration_nd2tl",
58
+ "_color": "__color_nd2tl_gg_",
59
+ "--color": "--color_nd2tl",
60
+ "__SIntersection": "___SIntersection_nd2tl_gg_"
61
61
  });
62
62
 
63
63
  var VennRoot = /*#__PURE__*/function (_Component) {
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_1v8sj_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_1v8sj_gg_.__color_1v8sj_gg_{fill:var(--color_1v8sj)}.___SAreaLine_1v8sj_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_1v8sj_gg_.__color_1v8sj_gg_{stroke:var(--color_1v8sj)}.___SArea_1v8sj_gg_,.___SAreaLine_1v8sj_gg_{transition-property:d;transition-duration:var(--duration_1v8sj);transition-timing-function:ease-in-out}.___SNull_1v8sj_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_1v8sj_gg_.__hide_1v8sj_gg_{display:none}"
29
+ ".___SArea_intct_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_intct_gg_.__color_intct_gg_{fill:var(--color_intct)}.___SAreaLine_intct_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_intct_gg_.__color_intct_gg_{stroke:var(--color_intct)}.___SArea_intct_gg_,.___SAreaLine_intct_gg_{transition-property:d;transition-duration:var(--duration_intct);transition-timing-function:ease-in-out}.___SNull_intct_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_intct_gg_.__hide_intct_gg_{display:none}"
30
30
  /*__inner_css_end__*/
31
- , "1v8sj_gg_")
31
+ , "intct_gg_")
32
32
  /*__reshadow_css_end__*/
33
33
  , {
34
- "__SArea": "___SArea_1v8sj_gg_",
35
- "_color": "__color_1v8sj_gg_",
36
- "--color": "--color_1v8sj",
37
- "__SAreaLine": "___SAreaLine_1v8sj_gg_",
38
- "--duration": "--duration_1v8sj",
39
- "__SNull": "___SNull_1v8sj_gg_",
40
- "_hide": "__hide_1v8sj_gg_"
34
+ "__SArea": "___SArea_intct_gg_",
35
+ "_color": "__color_intct_gg_",
36
+ "--color": "--color_intct",
37
+ "__SAreaLine": "___SAreaLine_intct_gg_",
38
+ "--duration": "--duration_intct",
39
+ "__SNull": "___SNull_intct_gg_",
40
+ "_hide": "__hide_intct_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
- ".___SAxis_esw7q_gg_{stroke:#c4c7cf}.___SAxis_esw7q_gg_.__hide_esw7q_gg_{display:none}.___STick_esw7q_gg_{font-size:12px;fill:#6c6e79}.___STick_esw7q_gg_.__hide_esw7q_gg_{display:none}.___SGrid_esw7q_gg_{fill:transparent;stroke:#e0e1e9}.___STitle_esw7q_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_esw7q)}.___STitle_esw7q_gg_._position_top_esw7q_gg_{text-anchor:middle}.___STitle_esw7q_gg_._position_bottom_esw7q_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_esw7q_gg_._position_right_esw7q_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_esw7q_gg_._position_left_esw7q_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_esw7q_gg_._position_top_esw7q_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_esw7q_gg_._position_bottom_esw7q_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_esw7q_gg_._position_right_esw7q_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_esw7q_gg_._position_left_esw7q_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_esw7q_gg_._position_custom_0_esw7q_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_esw7q_gg_._position_custom_1_esw7q_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
30
+ ".___SAxis_1l59y_gg_{stroke:#c4c7cf}.___SAxis_1l59y_gg_.__hide_1l59y_gg_{display:none}.___STick_1l59y_gg_{font-size:12px;fill:#6c6e79}.___STick_1l59y_gg_.__hide_1l59y_gg_{display:none}.___SGrid_1l59y_gg_{fill:transparent;stroke:#e0e1e9}.___STitle_1l59y_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1l59y)}.___STitle_1l59y_gg_._position_top_1l59y_gg_{text-anchor:middle}.___STitle_1l59y_gg_._position_bottom_1l59y_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1l59y_gg_._position_right_1l59y_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1l59y_gg_._position_left_1l59y_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___STick_1l59y_gg_._position_top_1l59y_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_1l59y_gg_._position_bottom_1l59y_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_1l59y_gg_._position_right_1l59y_gg_{transform:translateX(16px);text-anchor:start;alignment-baseline:middle}.___STick_1l59y_gg_._position_left_1l59y_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}.___STick_1l59y_gg_._position_custom_0_1l59y_gg_{transform:translateY(12px);text-anchor:middle;alignment-baseline:hanging}.___STick_1l59y_gg_._position_custom_1_1l59y_gg_{transform:translateX(-16px);text-anchor:end;alignment-baseline:middle}"
31
31
  /*__inner_css_end__*/
32
- , "esw7q_gg_")
32
+ , "1l59y_gg_")
33
33
  /*__reshadow_css_end__*/
34
34
  , {
35
- "__SAxis": "___SAxis_esw7q_gg_",
36
- "_hide": "__hide_esw7q_gg_",
37
- "__STick": "___STick_esw7q_gg_",
38
- "__SGrid": "___SGrid_esw7q_gg_",
39
- "__STitle": "___STitle_esw7q_gg_",
40
- "--transform-origin": "--transform-origin_esw7q",
41
- "_position_top": "_position_top_esw7q_gg_",
42
- "_position_bottom": "_position_bottom_esw7q_gg_",
43
- "_position_right": "_position_right_esw7q_gg_",
44
- "_position_left": "_position_left_esw7q_gg_",
45
- "_position_custom_0": "_position_custom_0_esw7q_gg_",
46
- "_position_custom_1": "_position_custom_1_esw7q_gg_"
35
+ "__SAxis": "___SAxis_1l59y_gg_",
36
+ "_hide": "__hide_1l59y_gg_",
37
+ "__STick": "___STick_1l59y_gg_",
38
+ "__SGrid": "___SGrid_1l59y_gg_",
39
+ "__STitle": "___STitle_1l59y_gg_",
40
+ "--transform-origin": "--transform-origin_1l59y",
41
+ "_position_top": "_position_top_1l59y_gg_",
42
+ "_position_bottom": "_position_bottom_1l59y_gg_",
43
+ "_position_right": "_position_right_1l59y_gg_",
44
+ "_position_left": "_position_left_1l59y_gg_",
45
+ "_position_custom_0": "_position_custom_0_1l59y_gg_",
46
+ "_position_custom_1": "_position_custom_1_1l59y_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
- ".___SBar_1j8s7_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_1j8s7);transition-timing-function:ease-in-out}.___SBar_1j8s7_gg_.__color_1j8s7_gg_{fill:var(--color_1j8s7)}.___SBar_1j8s7_gg_.__hide_1j8s7_gg_{display:none}.___SBackground_1j8s7_gg_{fill:#c4c7cf}"
27
+ ".___SBar_1llxk_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_1llxk);transition-timing-function:ease-in-out}.___SBar_1llxk_gg_.__color_1llxk_gg_{fill:var(--color_1llxk)}.___SBar_1llxk_gg_.__hide_1llxk_gg_{display:none}.___SBackground_1llxk_gg_{fill:#c4c7cf}"
28
28
  /*__inner_css_end__*/
29
- , "1j8s7_gg_")
29
+ , "1llxk_gg_")
30
30
  /*__reshadow_css_end__*/
31
31
  , {
32
- "__SBar": "___SBar_1j8s7_gg_",
33
- "--duration": "--duration_1j8s7",
34
- "_color": "__color_1j8s7_gg_",
35
- "--color": "--color_1j8s7",
36
- "_hide": "__hide_1j8s7_gg_",
37
- "__SBackground": "___SBackground_1j8s7_gg_"
32
+ "__SBar": "___SBar_1llxk_gg_",
33
+ "--duration": "--duration_1llxk",
34
+ "_color": "__color_1llxk_gg_",
35
+ "--color": "--color_1llxk",
36
+ "_hide": "__hide_1llxk_gg_",
37
+ "__SBackground": "___SBackground_1llxk_gg_"
38
38
  });
39
39
 
40
40
  var BarRoot = /*#__PURE__*/function (_Component) {
package/lib/es6/Bubble.js CHANGED
@@ -30,19 +30,19 @@ var style = (
30
30
  /*__reshadow_css_start__*/
31
31
  _sstyled.insert(
32
32
  /*__inner_css_start__*/
33
- ".___SBubble_1tej7_gg_{fill:#2bb3ff;stroke:#fff;stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_1tej7);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_1tej7_gg_:hover{opacity:.8}.___SBubble_1tej7_gg_.__color_1tej7_gg_{fill:var(--color_1tej7)}.___SCenter_1tej7_gg_{text-anchor:middle;font-size:11px;stroke:#2bb3ff}.___SCenter_1tej7_gg_.__color_1tej7_gg_{stroke:var(--color_1tej7)}.___SLabel_1tej7_gg_{fill:#2bb3ff}.___SLabel_1tej7_gg_._position_right_1tej7_gg_{text-anchor:end}.___SLabel_1tej7_gg_._position_left_1tej7_gg_{text-anchor:start}.___SLabel_1tej7_gg_.__color_1tej7_gg_{fill:var(--color_1tej7)}"
33
+ ".___SBubble_10nlx_gg_{fill:#2bb3ff;stroke:#fff;stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_10nlx);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_10nlx_gg_:hover{opacity:.8}.___SBubble_10nlx_gg_.__color_10nlx_gg_{fill:var(--color_10nlx)}.___SCenter_10nlx_gg_{text-anchor:middle;font-size:11px;stroke:#2bb3ff}.___SCenter_10nlx_gg_.__color_10nlx_gg_{stroke:var(--color_10nlx)}.___SLabel_10nlx_gg_{fill:#2bb3ff}.___SLabel_10nlx_gg_._position_right_10nlx_gg_{text-anchor:end}.___SLabel_10nlx_gg_._position_left_10nlx_gg_{text-anchor:start}.___SLabel_10nlx_gg_.__color_10nlx_gg_{fill:var(--color_10nlx)}"
34
34
  /*__inner_css_end__*/
35
- , "1tej7_gg_")
35
+ , "10nlx_gg_")
36
36
  /*__reshadow_css_end__*/
37
37
  , {
38
- "__SBubble": "___SBubble_1tej7_gg_",
39
- "--duration": "--duration_1tej7",
40
- "_color": "__color_1tej7_gg_",
41
- "--color": "--color_1tej7",
42
- "__SCenter": "___SCenter_1tej7_gg_",
43
- "__SLabel": "___SLabel_1tej7_gg_",
44
- "_position_right": "_position_right_1tej7_gg_",
45
- "_position_left": "_position_left_1tej7_gg_"
38
+ "__SBubble": "___SBubble_10nlx_gg_",
39
+ "--duration": "--duration_10nlx",
40
+ "_color": "__color_10nlx_gg_",
41
+ "--color": "--color_10nlx",
42
+ "__SCenter": "___SCenter_10nlx_gg_",
43
+ "__SLabel": "___SLabel_10nlx_gg_",
44
+ "_position_right": "_position_right_10nlx_gg_",
45
+ "_position_left": "_position_left_10nlx_gg_"
46
46
  });
47
47
  import ClipPath from './ClipPath';
48
48
  import { scaleSqrt } from 'd3-scale';
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
- ".___SPie_1wudp_gg_{stroke:#fff;fill:#2bb3ff}.___SPie_1wudp_gg_.__color_1wudp_gg_{fill:var(--color_1wudp)}.___SEmptyData_1wudp_gg_{fill:#e0e1e9}.___SEmptyData_1wudp_gg_.__color_1wudp_gg_{fill:var(--color_1wudp)}.___SLabel_1wudp_gg_{text-anchor:middle;vertical-anchor:middle}"
37
+ ".___SPie_7r405_gg_{stroke:#fff;fill:#2bb3ff}.___SPie_7r405_gg_.__color_7r405_gg_{fill:var(--color_7r405)}.___SEmptyData_7r405_gg_{fill:#e0e1e9}.___SEmptyData_7r405_gg_.__color_7r405_gg_{fill:var(--color_7r405)}.___SLabel_7r405_gg_{text-anchor:middle;vertical-anchor:middle}"
38
38
  /*__inner_css_end__*/
39
- , "1wudp_gg_")
39
+ , "7r405_gg_")
40
40
  /*__reshadow_css_end__*/
41
41
  , {
42
- "__SPie": "___SPie_1wudp_gg_",
43
- "_color": "__color_1wudp_gg_",
44
- "--color": "--color_1wudp",
45
- "__SEmptyData": "___SEmptyData_1wudp_gg_",
46
- "__SLabel": "___SLabel_1wudp_gg_"
42
+ "__SPie": "___SPie_7r405_gg_",
43
+ "_color": "__color_7r405_gg_",
44
+ "--color": "--color_7r405",
45
+ "__SEmptyData": "___SEmptyData_7r405_gg_",
46
+ "__SLabel": "___SLabel_7r405_gg_"
47
47
  });
48
48
  var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
49
49
 
package/lib/es6/Dots.js CHANGED
@@ -12,18 +12,18 @@ var style = (
12
12
  /*__reshadow_css_start__*/
13
13
  _sstyled.insert(
14
14
  /*__inner_css_start__*/
15
- ".___SDots_sn9lg_gg_ .___SDot_sn9lg_gg_{transition-duration:var(--duration_sn9lg)}.___SDot_sn9lg_gg_{stroke-width:2px;stroke:#fff;r:6px;fill:#2bb3ff;transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_sn9lg_gg_.__hide_sn9lg_gg_{display:none}.___SDot_sn9lg_gg_.__active_sn9lg_gg_{r:8px}.___SDot_sn9lg_gg_.__color_sn9lg_gg_{fill:var(--color_sn9lg)}"
15
+ ".___SDots_3fmth_gg_ .___SDot_3fmth_gg_{transition-duration:var(--duration_3fmth)}.___SDot_3fmth_gg_{stroke-width:2px;stroke:#fff;r:6px;fill:#2bb3ff;transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_3fmth_gg_.__hide_3fmth_gg_{display:none}.___SDot_3fmth_gg_.__active_3fmth_gg_{r:8px}.___SDot_3fmth_gg_.__color_3fmth_gg_{fill:var(--color_3fmth)}"
16
16
  /*__inner_css_end__*/
17
- , "sn9lg_gg_")
17
+ , "3fmth_gg_")
18
18
  /*__reshadow_css_end__*/
19
19
  , {
20
- "__SDots": "___SDots_sn9lg_gg_",
21
- "__SDot": "___SDot_sn9lg_gg_",
22
- "--duration": "--duration_sn9lg",
23
- "_hide": "__hide_sn9lg_gg_",
24
- "_active": "__active_sn9lg_gg_",
25
- "_color": "__color_sn9lg_gg_",
26
- "--color": "--color_sn9lg"
20
+ "__SDots": "___SDots_3fmth_gg_",
21
+ "__SDot": "___SDot_3fmth_gg_",
22
+ "--duration": "--duration_3fmth",
23
+ "_hide": "__hide_3fmth_gg_",
24
+ "_active": "__active_3fmth_gg_",
25
+ "_color": "__color_3fmth_gg_",
26
+ "--color": "--color_3fmth"
27
27
  });
28
28
  var EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];
29
29
 
@@ -22,15 +22,15 @@ var _ref = (
22
22
  /*__reshadow_css_start__*/
23
23
  __css__(
24
24
  /*__inner_css_start__*/
25
- ".___SBar_1ptfs_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_1ptfs_gg_.__color_1ptfs_gg_{fill:var(--color)}.___SBar_1ptfs_gg_.__hide_1ptfs_gg_{display:none}.___SBackground_1ptfs_gg_{fill:#c4c7cf}"
25
+ ".___SBar_cfm4j_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_cfm4j_gg_.__color_cfm4j_gg_{fill:var(--color)}.___SBar_cfm4j_gg_.__hide_cfm4j_gg_{display:none}.___SBackground_cfm4j_gg_{fill:#c4c7cf}"
26
26
  /*__inner_css_end__*/
27
- , "18c2q6a_gg_")
27
+ , "27em4i_gg_")
28
28
  /*__reshadow_css_end__*/
29
29
  , {
30
- "__SBar": "___SBar_1ptfs_gg_",
31
- "_color": "__color_1ptfs_gg_",
32
- "_hide": "__hide_1ptfs_gg_",
33
- "__SBackground": "___SBackground_1ptfs_gg_"
30
+ "__SBar": "___SBar_cfm4j_gg_",
31
+ "_color": "__color_cfm4j_gg_",
32
+ "_hide": "__hide_cfm4j_gg_",
33
+ "__SBackground": "___SBackground_cfm4j_gg_"
34
34
  }),
35
35
  style = _extends({}, _ref);
36
36
 
@@ -23,17 +23,17 @@ var style = (
23
23
  /*__reshadow_css_start__*/
24
24
  _sstyled.insert(
25
25
  /*__inner_css_start__*/
26
- ".___SBar_1j8s7_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_1j8s7);transition-timing-function:ease-in-out}.___SBar_1j8s7_gg_.__color_1j8s7_gg_{fill:var(--color_1j8s7)}.___SBar_1j8s7_gg_.__hide_1j8s7_gg_{display:none}.___SBackground_1j8s7_gg_{fill:#c4c7cf}"
26
+ ".___SBar_1llxk_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_1llxk);transition-timing-function:ease-in-out}.___SBar_1llxk_gg_.__color_1llxk_gg_{fill:var(--color_1llxk)}.___SBar_1llxk_gg_.__hide_1llxk_gg_{display:none}.___SBackground_1llxk_gg_{fill:#c4c7cf}"
27
27
  /*__inner_css_end__*/
28
- , "1j8s7_gg_")
28
+ , "1llxk_gg_")
29
29
  /*__reshadow_css_end__*/
30
30
  , {
31
- "__SBar": "___SBar_1j8s7_gg_",
32
- "--duration": "--duration_1j8s7",
33
- "_color": "__color_1j8s7_gg_",
34
- "--color": "--color_1j8s7",
35
- "_hide": "__hide_1j8s7_gg_",
36
- "__SBackground": "___SBackground_1j8s7_gg_"
31
+ "__SBar": "___SBar_1llxk_gg_",
32
+ "--duration": "--duration_1llxk",
33
+ "_color": "__color_1llxk_gg_",
34
+ "--color": "--color_1llxk",
35
+ "_hide": "__hide_1llxk_gg_",
36
+ "__SBackground": "___SBackground_1llxk_gg_"
37
37
  });
38
38
 
39
39
  var HorizontalBarRoot = /*#__PURE__*/function (_Component) {
package/lib/es6/Hover.js CHANGED
@@ -24,13 +24,13 @@ var style = (
24
24
  /*__reshadow_css_start__*/
25
25
  _sstyled.insert(
26
26
  /*__inner_css_start__*/
27
- ".___SHoverLine_z4284_gg_{stroke:#a9abb6}.___SHoverRect_z4284_gg_{fill:rgba(196,199,207,.3)}"
27
+ ".___SHoverLine_1k0tn_gg_{stroke:#a9abb6}.___SHoverRect_1k0tn_gg_{fill:rgba(196,199,207,.3)}"
28
28
  /*__inner_css_end__*/
29
- , "z4284_gg_")
29
+ , "1k0tn_gg_")
30
30
  /*__reshadow_css_end__*/
31
31
  , {
32
- "__SHoverLine": "___SHoverLine_z4284_gg_",
33
- "__SHoverRect": "___SHoverRect_z4284_gg_"
32
+ "__SHoverLine": "___SHoverLine_1k0tn_gg_",
33
+ "__SHoverRect": "___SHoverRect_1k0tn_gg_"
34
34
  });
35
35
 
36
36
  var Hover = /*#__PURE__*/function (_Component) {
package/lib/es6/Line.js CHANGED
@@ -25,17 +25,17 @@ var style = (
25
25
  /*__reshadow_css_start__*/
26
26
  _sstyled.insert(
27
27
  /*__inner_css_start__*/
28
- ".___SLine_1wqz9_gg_{fill:transparent;stroke-width:3;stroke:#2bb3ff;transition-property:d;transition-duration:var(--duration_1wqz9);transition-timing-function:ease-in-out}.___SLine_1wqz9_gg_.__color_1wqz9_gg_{stroke:var(--color_1wqz9)}.___SLine_1wqz9_gg_.__hide_1wqz9_gg_{display:none}.___SNull_1wqz9_gg_{fill:transparent;stroke:#c4c7cf;stroke-dasharray:4}.___SNull_1wqz9_gg_.__hide_1wqz9_gg_{display:none}"
28
+ ".___SLine_1p9qu_gg_{fill:transparent;stroke-width:3;stroke:#2bb3ff;transition-property:d;transition-duration:var(--duration_1p9qu);transition-timing-function:ease-in-out}.___SLine_1p9qu_gg_.__color_1p9qu_gg_{stroke:var(--color_1p9qu)}.___SLine_1p9qu_gg_.__hide_1p9qu_gg_{display:none}.___SNull_1p9qu_gg_{fill:transparent;stroke:#c4c7cf;stroke-dasharray:4}.___SNull_1p9qu_gg_.__hide_1p9qu_gg_{display:none}"
29
29
  /*__inner_css_end__*/
30
- , "1wqz9_gg_")
30
+ , "1p9qu_gg_")
31
31
  /*__reshadow_css_end__*/
32
32
  , {
33
- "__SLine": "___SLine_1wqz9_gg_",
34
- "--duration": "--duration_1wqz9",
35
- "_color": "__color_1wqz9_gg_",
36
- "--color": "--color_1wqz9",
37
- "_hide": "__hide_1wqz9_gg_",
38
- "__SNull": "___SNull_1wqz9_gg_"
33
+ "__SLine": "___SLine_1p9qu_gg_",
34
+ "--duration": "--duration_1p9qu",
35
+ "_color": "__color_1p9qu_gg_",
36
+ "--color": "--color_1p9qu",
37
+ "_hide": "__hide_1p9qu_gg_",
38
+ "__SNull": "___SNull_1p9qu_gg_"
39
39
  });
40
40
 
41
41
  var LineRoot = /*#__PURE__*/function (_Component) {
package/lib/es6/Plot.js CHANGED
@@ -28,12 +28,12 @@ var style = (
28
28
  /*__reshadow_css_start__*/
29
29
  _sstyled.insert(
30
30
  /*__inner_css_start__*/
31
- ".___SPlot_1gqmg_gg_{overflow:hidden}"
31
+ ".___SPlot_1y0g0_gg_{overflow:hidden}"
32
32
  /*__inner_css_end__*/
33
- , "1gqmg_gg_")
33
+ , "1y0g0_gg_")
34
34
  /*__reshadow_css_end__*/
35
35
  , {
36
- "__SPlot": "___SPlot_1gqmg_gg_"
36
+ "__SPlot": "___SPlot_1y0g0_gg_"
37
37
  });
38
38
 
39
39
  var PlotRoot = /*#__PURE__*/function (_Component) {
@@ -31,20 +31,20 @@ var style = (
31
31
  /*__reshadow_css_start__*/
32
32
  _sstyled.insert(
33
33
  /*__inner_css_start__*/
34
- ".___SRadian_4s3be_gg_{cursor:pointer;fill:#008ff8}.___SLine_4s3be_gg_{stroke:#008ff8}.___SLine_4s3be_gg_.__color_4s3be_gg_{stroke:var(--color_4s3be)}.___SCap_4s3be_gg_{transition:r .1s}.___SLabel_4s3be_gg_{fill:var(--color_4s3be);cursor:var(--text-cursor_4s3be)}.___SRadian_4s3be_gg_:hover .___SLabel_4s3be_gg_{fill:var(--color-hovered_4s3be)}@media (prefers-reduced-motion){.___SLineCap_4s3be_gg_{transition:none}}"
34
+ ".___SRadian_1b03n_gg_{cursor:pointer;fill:#008ff8}.___SLine_1b03n_gg_{stroke:#008ff8}.___SLine_1b03n_gg_.__color_1b03n_gg_{stroke:var(--color_1b03n)}.___SCap_1b03n_gg_{transition:r .1s}.___SLabel_1b03n_gg_{fill:var(--color_1b03n);cursor:var(--text-cursor_1b03n)}.___SRadian_1b03n_gg_:hover .___SLabel_1b03n_gg_{fill:var(--color-hovered_1b03n)}@media (prefers-reduced-motion){.___SLineCap_1b03n_gg_{transition:none}}"
35
35
  /*__inner_css_end__*/
36
- , "4s3be_gg_")
36
+ , "1b03n_gg_")
37
37
  /*__reshadow_css_end__*/
38
38
  , {
39
- "__SRadian": "___SRadian_4s3be_gg_",
40
- "__SLine": "___SLine_4s3be_gg_",
41
- "_color": "__color_4s3be_gg_",
42
- "--color": "--color_4s3be",
43
- "__SCap": "___SCap_4s3be_gg_",
44
- "__SLabel": "___SLabel_4s3be_gg_",
45
- "--text-cursor": "--text-cursor_4s3be",
46
- "--color-hovered": "--color-hovered_4s3be",
47
- "__SLineCap": "___SLineCap_4s3be_gg_"
39
+ "__SRadian": "___SRadian_1b03n_gg_",
40
+ "__SLine": "___SLine_1b03n_gg_",
41
+ "_color": "__color_1b03n_gg_",
42
+ "--color": "--color_1b03n",
43
+ "__SCap": "___SCap_1b03n_gg_",
44
+ "__SLabel": "___SLabel_1b03n_gg_",
45
+ "--text-cursor": "--text-cursor_1b03n",
46
+ "--color-hovered": "--color-hovered_1b03n",
47
+ "__SLineCap": "___SLineCap_1b03n_gg_"
48
48
  });
49
49
  import { shade } from '@semcore/utils/lib/color';
50
50
  import { measureText } from './utils';
@@ -25,19 +25,19 @@ var style = (
25
25
  /*__reshadow_css_start__*/
26
26
  _sstyled.insert(
27
27
  /*__inner_css_start__*/
28
- ".___SReferenceLine_1cfvk_gg_{fill:none;stroke:#a9abb6}.___STitle_1cfvk_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1cfvk)}.___STitle_1cfvk_gg_._position_top_1cfvk_gg_{text-anchor:middle}.___STitle_1cfvk_gg_._position_bottom_1cfvk_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1cfvk_gg_._position_right_1cfvk_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1cfvk_gg_._position_left_1cfvk_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_1cfvk_gg_{fill:rgba(196,199,207,.2)}"
28
+ ".___SReferenceLine_98aec_gg_{fill:none;stroke:#a9abb6}.___STitle_98aec_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_98aec)}.___STitle_98aec_gg_._position_top_98aec_gg_{text-anchor:middle}.___STitle_98aec_gg_._position_bottom_98aec_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_98aec_gg_._position_right_98aec_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_98aec_gg_._position_left_98aec_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_98aec_gg_{fill:rgba(196,199,207,.2)}"
29
29
  /*__inner_css_end__*/
30
- , "1cfvk_gg_")
30
+ , "98aec_gg_")
31
31
  /*__reshadow_css_end__*/
32
32
  , {
33
- "__SReferenceLine": "___SReferenceLine_1cfvk_gg_",
34
- "__STitle": "___STitle_1cfvk_gg_",
35
- "--transform-origin": "--transform-origin_1cfvk",
36
- "_position_top": "_position_top_1cfvk_gg_",
37
- "_position_bottom": "_position_bottom_1cfvk_gg_",
38
- "_position_right": "_position_right_1cfvk_gg_",
39
- "_position_left": "_position_left_1cfvk_gg_",
40
- "__SBackground": "___SBackground_1cfvk_gg_"
33
+ "__SReferenceLine": "___SReferenceLine_98aec_gg_",
34
+ "__STitle": "___STitle_98aec_gg_",
35
+ "--transform-origin": "--transform-origin_98aec",
36
+ "_position_top": "_position_top_98aec_gg_",
37
+ "_position_bottom": "_position_bottom_98aec_gg_",
38
+ "_position_right": "_position_right_98aec_gg_",
39
+ "_position_left": "_position_left_98aec_gg_",
40
+ "__SBackground": "___SBackground_98aec_gg_"
41
41
  });
42
42
  var MAP_ORIENTATION = {
43
43
  left: 'vertical',
@@ -44,6 +44,7 @@ var ResponsiveContainerRoot = /*#__PURE__*/function (_Component) {
44
44
  var _this$asProps = _this.asProps,
45
45
  Children = _this$asProps.Children,
46
46
  aspect = _this$asProps.aspect;
47
+ if (!_this.$container) return;
47
48
  var _this$$container = _this.$container,
48
49
  width = _this$$container.clientWidth,
49
50
  height = _this$$container.clientHeight;
@@ -1 +1 @@
1
- {"version":3,"file":"ResponsiveContainer.js","names":["React","ResizeObserver","createComponent","Component","Root","sstyled","Box","trottle","fire","getOriginChildren","ResponsiveContainerRoot","props","createRef","entries","asProps","Children","aspect","$container","width","clientWidth","height","clientHeight","style","window","getComputedStyle","minHeight","Number","parseInt","getPropertyValue","maxHeight","size","forceUpdate","observer","handleResize","containerRef","current","observe","disconnect","SResponsiveContainer","styles","ResponsiveContainer"],"sources":["../../src/ResponsiveContainer.jsx"],"sourcesContent":["import React from 'react';\nimport ResizeObserver from 'resize-observer-polyfill';\n\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport trottle from '@semcore/utils/lib/rafTrottle';\nimport fire from '@semcore/utils/lib/fire';\nimport getOriginChildren from '@semcore/utils/lib/getOriginChildren';\n\nclass ResponsiveContainerRoot extends Component {\n static displayName = 'ResponsiveContainer';\n\n containerRef = React.createRef();\n size = [0, 0];\n\n constructor(props) {\n super(props);\n this.observer = new ResizeObserver(this.handleResize);\n }\n\n get $container() {\n return this.containerRef.current;\n }\n\n handleResize = trottle((entries) => {\n const { Children, aspect } = this.asProps;\n let { clientWidth: width, clientHeight: height } = this.$container;\n\n if (aspect) {\n const style = window.getComputedStyle(this.$container);\n const minHeight = Number.parseInt(style.getPropertyValue('min-height'));\n const maxHeight = Number.parseInt(style.getPropertyValue('max-height'));\n height = width * aspect;\n\n if (height < minHeight) {\n height = minHeight;\n }\n if (height > maxHeight) {\n height = maxHeight;\n }\n }\n\n if (this.size[0] === width && this.size[1] === height) return;\n\n this.size = [width, height];\n\n fire(this, 'onResize', this.size, entries);\n\n if (typeof getOriginChildren(Children) === 'function') {\n this.forceUpdate();\n }\n });\n\n setContext() {\n const [width, height] = this.size;\n return {\n width,\n height,\n };\n }\n\n componentDidMount() {\n if (this.$container) {\n // TODO: may be we can increase perfomance here? (by lsroman)\n this.observer.observe(this.$container);\n }\n }\n\n // TODO component did update ref?\n\n componentWillUnmount() {\n this.observer.disconnect();\n }\n\n render() {\n const SResponsiveContainer = Root;\n const { styles } = this.asProps;\n return sstyled(styles)(<SResponsiveContainer render={Box} ref={this.containerRef} />);\n }\n}\n\nconst ResponsiveContainer = createComponent(ResponsiveContainerRoot);\n\nexport default ResponsiveContainer;\n"],"mappings":"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"}
1
+ {"version":3,"file":"ResponsiveContainer.js","names":["React","ResizeObserver","createComponent","Component","Root","sstyled","Box","trottle","fire","getOriginChildren","ResponsiveContainerRoot","props","createRef","entries","asProps","Children","aspect","$container","width","clientWidth","height","clientHeight","style","window","getComputedStyle","minHeight","Number","parseInt","getPropertyValue","maxHeight","size","forceUpdate","observer","handleResize","containerRef","current","observe","disconnect","SResponsiveContainer","styles","ResponsiveContainer"],"sources":["../../src/ResponsiveContainer.jsx"],"sourcesContent":["import React from 'react';\nimport ResizeObserver from 'resize-observer-polyfill';\n\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport trottle from '@semcore/utils/lib/rafTrottle';\nimport fire from '@semcore/utils/lib/fire';\nimport getOriginChildren from '@semcore/utils/lib/getOriginChildren';\n\nclass ResponsiveContainerRoot extends Component {\n static displayName = 'ResponsiveContainer';\n\n containerRef = React.createRef();\n size = [0, 0];\n\n constructor(props) {\n super(props);\n this.observer = new ResizeObserver(this.handleResize);\n }\n\n get $container() {\n return this.containerRef.current;\n }\n\n handleResize = trottle((entries) => {\n const { Children, aspect } = this.asProps;\n\n if (!this.$container) return;\n\n let { clientWidth: width, clientHeight: height } = this.$container;\n\n if (aspect) {\n const style = window.getComputedStyle(this.$container);\n const minHeight = Number.parseInt(style.getPropertyValue('min-height'));\n const maxHeight = Number.parseInt(style.getPropertyValue('max-height'));\n height = width * aspect;\n\n if (height < minHeight) {\n height = minHeight;\n }\n if (height > maxHeight) {\n height = maxHeight;\n }\n }\n\n if (this.size[0] === width && this.size[1] === height) return;\n\n this.size = [width, height];\n\n fire(this, 'onResize', this.size, entries);\n\n if (typeof getOriginChildren(Children) === 'function') {\n this.forceUpdate();\n }\n });\n\n setContext() {\n const [width, height] = this.size;\n return {\n width,\n height,\n };\n }\n\n componentDidMount() {\n if (this.$container) {\n // TODO: may be we can increase perfomance here? (by lsroman)\n this.observer.observe(this.$container);\n }\n }\n\n // TODO component did update ref?\n\n componentWillUnmount() {\n this.observer.disconnect();\n }\n\n render() {\n const SResponsiveContainer = Root;\n const { styles } = this.asProps;\n return sstyled(styles)(<SResponsiveContainer render={Box} ref={this.containerRef} />);\n }\n}\n\nconst ResponsiveContainer = createComponent(ResponsiveContainerRoot);\n\nexport default ResponsiveContainer;\n"],"mappings":"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"}
@@ -29,16 +29,16 @@ var style = (
29
29
  /*__reshadow_css_start__*/
30
30
  _sstyled.insert(
31
31
  /*__inner_css_start__*/
32
- ".___SScatterPlot_xemf4_gg_{fill:#2bb3ff;transition-property:cx,cy;transition-duration:var(--duration_xemf4);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_xemf4_gg_:hover{opacity:.8}.___SScatterPlot_xemf4_gg_.__color_xemf4_gg_{fill:var(--color_xemf4)}.___SValue_xemf4_gg_{text-anchor:middle;font-size:10px;stroke:#008ff8}.___SValue_xemf4_gg_.__color_xemf4_gg_{stroke:var(--color_xemf4)}"
32
+ ".___SScatterPlot_1nssx_gg_{fill:#2bb3ff;transition-property:cx,cy;transition-duration:var(--duration_1nssx);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_1nssx_gg_:hover{opacity:.8}.___SScatterPlot_1nssx_gg_.__color_1nssx_gg_{fill:var(--color_1nssx)}.___SValue_1nssx_gg_{text-anchor:middle;font-size:10px;stroke:#008ff8}.___SValue_1nssx_gg_.__color_1nssx_gg_{stroke:var(--color_1nssx)}"
33
33
  /*__inner_css_end__*/
34
- , "xemf4_gg_")
34
+ , "1nssx_gg_")
35
35
  /*__reshadow_css_end__*/
36
36
  , {
37
- "__SScatterPlot": "___SScatterPlot_xemf4_gg_",
38
- "--duration": "--duration_xemf4",
39
- "_color": "__color_xemf4_gg_",
40
- "--color": "--color_xemf4",
41
- "__SValue": "___SValue_xemf4_gg_"
37
+ "__SScatterPlot": "___SScatterPlot_1nssx_gg_",
38
+ "--duration": "--duration_1nssx",
39
+ "_color": "__color_1nssx_gg_",
40
+ "--color": "--color_1nssx",
41
+ "__SValue": "___SValue_1nssx_gg_"
42
42
  });
43
43
  import ClipPath from './ClipPath';
44
44
 
@@ -27,15 +27,15 @@ var _ref = (
27
27
  /*__reshadow_css_start__*/
28
28
  __css__(
29
29
  /*__inner_css_start__*/
30
- ".___SBar_1q35l_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_1q35l_gg_.__color_1q35l_gg_{fill:var(--color)}.___SBar_1q35l_gg_.__hide_1q35l_gg_{display:none}.___SBackground_1q35l_gg_{fill:#c4c7cf}"
30
+ ".___SBar_d3qxk_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_d3qxk_gg_.__color_d3qxk_gg_{fill:var(--color)}.___SBar_d3qxk_gg_.__hide_d3qxk_gg_{display:none}.___SBackground_d3qxk_gg_{fill:#c4c7cf}"
31
31
  /*__inner_css_end__*/
32
- , "g0grya_gg_")
32
+ , "17ddk02_gg_")
33
33
  /*__reshadow_css_end__*/
34
34
  , {
35
- "__SBar": "___SBar_1q35l_gg_",
36
- "_color": "__color_1q35l_gg_",
37
- "_hide": "__hide_1q35l_gg_",
38
- "__SBackground": "___SBackground_1q35l_gg_"
35
+ "__SBar": "___SBar_d3qxk_gg_",
36
+ "_color": "__color_d3qxk_gg_",
37
+ "_hide": "__hide_d3qxk_gg_",
38
+ "__SBackground": "___SBackground_d3qxk_gg_"
39
39
  }),
40
40
  style = _extends({}, _ref);
41
41
 
@@ -26,16 +26,16 @@ var _ref = (
26
26
  /*__reshadow_css_start__*/
27
27
  __css__(
28
28
  /*__inner_css_start__*/
29
- ".___SArea_jpjdp_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_jpjdp_gg_.__color_jpjdp_gg_{fill:var(--color)}.___SAreaLine_jpjdp_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_jpjdp_gg_.__color_jpjdp_gg_{stroke:var(--color)}.___SArea_jpjdp_gg_,.___SAreaLine_jpjdp_gg_{transition-property:d;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SNull_jpjdp_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_jpjdp_gg_.__hide_jpjdp_gg_{display:none}"
29
+ ".___SArea_1nfqk_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_1nfqk_gg_.__color_1nfqk_gg_{fill:var(--color)}.___SAreaLine_1nfqk_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_1nfqk_gg_.__color_1nfqk_gg_{stroke:var(--color)}.___SArea_1nfqk_gg_,.___SAreaLine_1nfqk_gg_{transition-property:d;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SNull_1nfqk_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_1nfqk_gg_.__hide_1nfqk_gg_{display:none}"
30
30
  /*__inner_css_end__*/
31
- , "j81c8n_gg_")
31
+ , "1rrv10w_gg_")
32
32
  /*__reshadow_css_end__*/
33
33
  , {
34
- "__SArea": "___SArea_jpjdp_gg_",
35
- "_color": "__color_jpjdp_gg_",
36
- "__SAreaLine": "___SAreaLine_jpjdp_gg_",
37
- "__SNull": "___SNull_jpjdp_gg_",
38
- "_hide": "__hide_jpjdp_gg_"
34
+ "__SArea": "___SArea_1nfqk_gg_",
35
+ "_color": "__color_1nfqk_gg_",
36
+ "__SAreaLine": "___SAreaLine_1nfqk_gg_",
37
+ "__SNull": "___SNull_1nfqk_gg_",
38
+ "_hide": "__hide_1nfqk_gg_"
39
39
  }),
40
40
  style = _extends({}, _ref);
41
41
 
@@ -34,17 +34,17 @@ var style = (
34
34
  /*__reshadow_css_start__*/
35
35
  _sstyled.insert(
36
36
  /*__inner_css_start__*/
37
- ".___STooltip_1lzve_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_1lzve_gg_{color:#6c6e79;margin-bottom:8px}.___SDotGroup_1lzve_gg_{display:flex;align-items:center}.___SDot_1lzve_gg_{width:8px;height:8px;border-radius:50%;margin-right:8px;background:#2bb3ff}.___SDot_1lzve_gg_.__color_1lzve_gg_{background:var(--color_1lzve)}"
37
+ ".___STooltip_vusgw_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_vusgw_gg_{color:#6c6e79;margin-bottom:8px}.___SDotGroup_vusgw_gg_{display:flex;align-items:center}.___SDot_vusgw_gg_{width:8px;height:8px;border-radius:50%;margin-right:8px;background:#2bb3ff}.___SDot_vusgw_gg_.__color_vusgw_gg_{background:var(--color_vusgw)}"
38
38
  /*__inner_css_end__*/
39
- , "1lzve_gg_")
39
+ , "vusgw_gg_")
40
40
  /*__reshadow_css_end__*/
41
41
  , {
42
- "__STooltip": "___STooltip_1lzve_gg_",
43
- "__STitle": "___STitle_1lzve_gg_",
44
- "__SDotGroup": "___SDotGroup_1lzve_gg_",
45
- "__SDot": "___SDot_1lzve_gg_",
46
- "_color": "__color_1lzve_gg_",
47
- "--color": "--color_1lzve"
42
+ "__STooltip": "___STooltip_vusgw_gg_",
43
+ "__STitle": "___STitle_vusgw_gg_",
44
+ "__SDotGroup": "___SDotGroup_vusgw_gg_",
45
+ "__SDot": "___SDot_vusgw_gg_",
46
+ "_color": "__color_vusgw_gg_",
47
+ "--color": "--color_vusgw"
48
48
  });
49
49
 
50
50
  var TooltipRoot = /*#__PURE__*/function (_Component) {
package/lib/es6/Venn.js CHANGED
@@ -26,16 +26,16 @@ var style = (
26
26
  /*__reshadow_css_start__*/
27
27
  _sstyled.insert(
28
28
  /*__inner_css_start__*/
29
- ".___SCircle_15r3k_gg_{fill:#59ddaa;stroke:#fff;stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_15r3k);transition-timing-function:ease-in-out}.___SCircle_15r3k_gg_:hover{fill-opacity:.7}.___SCircle_15r3k_gg_.__color_15r3k_gg_{fill:var(--color_15r3k)}.___SIntersection_15r3k_gg_{stroke:#fff;stroke-width:2px;fill-opacity:0}.___SIntersection_15r3k_gg_:hover{fill-opacity:.1}"
29
+ ".___SCircle_nd2tl_gg_{fill:#59ddaa;stroke:#fff;stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_nd2tl);transition-timing-function:ease-in-out}.___SCircle_nd2tl_gg_:hover{fill-opacity:.7}.___SCircle_nd2tl_gg_.__color_nd2tl_gg_{fill:var(--color_nd2tl)}.___SIntersection_nd2tl_gg_{stroke:#fff;stroke-width:2px;fill-opacity:0}.___SIntersection_nd2tl_gg_:hover{fill-opacity:.1}"
30
30
  /*__inner_css_end__*/
31
- , "15r3k_gg_")
31
+ , "nd2tl_gg_")
32
32
  /*__reshadow_css_end__*/
33
33
  , {
34
- "__SCircle": "___SCircle_15r3k_gg_",
35
- "--duration": "--duration_15r3k",
36
- "_color": "__color_15r3k_gg_",
37
- "--color": "--color_15r3k",
38
- "__SIntersection": "___SIntersection_15r3k_gg_"
34
+ "__SCircle": "___SCircle_nd2tl_gg_",
35
+ "--duration": "--duration_nd2tl",
36
+ "_color": "__color_nd2tl_gg_",
37
+ "--color": "--color_nd2tl",
38
+ "__SIntersection": "___SIntersection_nd2tl_gg_"
39
39
  });
40
40
 
41
41
  var VennRoot = /*#__PURE__*/function (_Component) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/d3-chart",
3
- "description": "SEMRush D3 Chart Component",
4
- "version": "2.2.4",
3
+ "description": "Semrush D3 Chart Component",
4
+ "version": "2.2.7",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",