@semcore/d3-chart 2.3.5 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/lib/cjs/Area.js +9 -9
- package/lib/cjs/Axis.js +14 -14
- package/lib/cjs/Bar.js +8 -8
- package/lib/cjs/Bubble.js +10 -10
- package/lib/cjs/Donut.js +7 -7
- package/lib/cjs/Dots.js +9 -9
- package/lib/cjs/HorizontalBar.js +8 -8
- package/lib/cjs/Hover.js +4 -4
- package/lib/cjs/Line.js +8 -8
- package/lib/cjs/Plot.js +6 -5
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/RadialTree.js +11 -11
- package/lib/cjs/ReferenceLine.js +10 -10
- package/lib/cjs/ScatterPlot.js +7 -7
- package/lib/cjs/Tooltip.js +8 -8
- package/lib/cjs/Venn.js +7 -7
- package/lib/cjs/a11y/PlotA11yModule.js +3 -3
- package/lib/cjs/a11y/PlotA11yView.js +4 -4
- package/lib/cjs/style/plot.shadow.css +4 -0
- package/lib/cjs/types/Area.d.js +2 -0
- package/lib/cjs/types/Area.d.js.map +1 -0
- package/lib/cjs/types/Axis.d.js +2 -0
- package/lib/cjs/types/Axis.d.js.map +1 -0
- package/lib/cjs/types/Bar.d.js +2 -0
- package/lib/cjs/types/Bar.d.js.map +1 -0
- package/lib/cjs/types/Bubble.d.js +2 -0
- package/lib/cjs/types/Bubble.d.js.map +1 -0
- package/lib/cjs/types/ClipPath.d.js +2 -0
- package/lib/cjs/types/ClipPath.d.js.map +1 -0
- package/lib/cjs/types/Donut.d.js +2 -0
- package/lib/cjs/types/Donut.d.js.map +1 -0
- package/lib/cjs/types/GroupBar.d.js +2 -0
- package/lib/cjs/types/GroupBar.d.js.map +1 -0
- package/lib/cjs/types/HorizontalBar.d.js +2 -0
- package/lib/cjs/types/HorizontalBar.d.js.map +1 -0
- package/lib/cjs/types/Hover.d.js +2 -0
- package/lib/cjs/types/Hover.d.js.map +1 -0
- package/lib/cjs/types/Line.d.js +2 -0
- package/lib/cjs/types/Line.d.js.map +1 -0
- package/lib/cjs/types/Plot.d.js +2 -0
- package/lib/cjs/types/Plot.d.js.map +1 -0
- package/lib/cjs/types/ReferenceLine.d.js +2 -0
- package/lib/cjs/types/ReferenceLine.d.js.map +1 -0
- package/lib/cjs/types/ResponsiveContainer.d.js +2 -0
- package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -0
- package/lib/cjs/types/ScatterPlot.d.js +2 -0
- package/lib/cjs/types/ScatterPlot.d.js.map +1 -0
- package/lib/cjs/types/StackBar.d.js +2 -0
- package/lib/cjs/types/StackBar.d.js.map +1 -0
- package/lib/cjs/types/StackedArea.d.js +2 -0
- package/lib/cjs/types/StackedArea.d.js.map +1 -0
- package/lib/cjs/types/Tooltip.d.js +2 -0
- package/lib/cjs/types/Tooltip.d.js.map +1 -0
- package/lib/cjs/types/Venn.d.js +2 -0
- package/lib/cjs/types/Venn.d.js.map +1 -0
- package/lib/cjs/types/context.d.js +2 -0
- package/lib/cjs/types/context.d.js.map +1 -0
- package/lib/cjs/types/index.d.js +378 -0
- package/lib/cjs/types/index.d.js.map +1 -0
- package/lib/es6/Area.js +9 -9
- package/lib/es6/Axis.js +14 -14
- package/lib/es6/Bar.js +8 -8
- package/lib/es6/Bubble.js +10 -10
- package/lib/es6/Donut.js +7 -7
- package/lib/es6/Dots.js +9 -9
- package/lib/es6/HorizontalBar.js +8 -8
- package/lib/es6/Hover.js +4 -4
- package/lib/es6/Line.js +8 -8
- package/lib/es6/Plot.js +6 -5
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/RadialTree.js +11 -11
- package/lib/es6/ReferenceLine.js +10 -10
- package/lib/es6/ScatterPlot.js +7 -7
- package/lib/es6/Tooltip.js +8 -8
- package/lib/es6/Venn.js +7 -7
- package/lib/es6/a11y/PlotA11yModule.js +3 -3
- package/lib/es6/a11y/PlotA11yView.js +4 -4
- package/lib/es6/style/plot.shadow.css +4 -0
- package/lib/es6/types/Area.d.js +2 -0
- package/lib/es6/types/Area.d.js.map +1 -0
- package/lib/es6/types/Axis.d.js +2 -0
- package/lib/es6/types/Axis.d.js.map +1 -0
- package/lib/es6/types/Bar.d.js +2 -0
- package/lib/es6/types/Bar.d.js.map +1 -0
- package/lib/es6/types/Bubble.d.js +2 -0
- package/lib/es6/types/Bubble.d.js.map +1 -0
- package/lib/es6/types/ClipPath.d.js +2 -0
- package/lib/es6/types/ClipPath.d.js.map +1 -0
- package/lib/es6/types/Donut.d.js +2 -0
- package/lib/es6/types/Donut.d.js.map +1 -0
- package/lib/es6/types/GroupBar.d.js +2 -0
- package/lib/es6/types/GroupBar.d.js.map +1 -0
- package/lib/es6/types/HorizontalBar.d.js +2 -0
- package/lib/es6/types/HorizontalBar.d.js.map +1 -0
- package/lib/es6/types/Hover.d.js +2 -0
- package/lib/es6/types/Hover.d.js.map +1 -0
- package/lib/es6/types/Line.d.js +2 -0
- package/lib/es6/types/Line.d.js.map +1 -0
- package/lib/es6/types/Plot.d.js +2 -0
- package/lib/es6/types/Plot.d.js.map +1 -0
- package/lib/es6/types/ReferenceLine.d.js +2 -0
- package/lib/es6/types/ReferenceLine.d.js.map +1 -0
- package/lib/es6/types/ResponsiveContainer.d.js +2 -0
- package/lib/es6/types/ResponsiveContainer.d.js.map +1 -0
- package/lib/es6/types/ScatterPlot.d.js +2 -0
- package/lib/es6/types/ScatterPlot.d.js.map +1 -0
- package/lib/es6/types/StackBar.d.js +2 -0
- package/lib/es6/types/StackBar.d.js.map +1 -0
- package/lib/es6/types/StackedArea.d.js +2 -0
- package/lib/es6/types/StackedArea.d.js.map +1 -0
- package/lib/es6/types/Tooltip.d.js +2 -0
- package/lib/es6/types/Tooltip.d.js.map +1 -0
- package/lib/es6/types/Venn.d.js +2 -0
- package/lib/es6/types/Venn.d.js.map +1 -0
- package/lib/es6/types/context.d.js +2 -0
- package/lib/es6/types/context.d.js.map +1 -0
- package/lib/{cjs/types/index.d.ts → es6/types/index.d.js} +4 -22
- package/lib/es6/types/index.d.js.map +1 -0
- package/package.json +5 -2
- package/lib/cjs/types/Area.d.ts +0 -48
- package/lib/cjs/types/Axis.d.ts +0 -64
- package/lib/cjs/types/Bar.d.ts +0 -52
- package/lib/cjs/types/Bubble.d.ts +0 -32
- package/lib/cjs/types/ClipPath.d.ts +0 -26
- package/lib/cjs/types/Donut.d.ts +0 -46
- package/lib/cjs/types/GroupBar.d.ts +0 -20
- package/lib/cjs/types/HorizontalBar.d.ts +0 -29
- package/lib/cjs/types/Hover.d.ts +0 -15
- package/lib/cjs/types/Line.d.ts +0 -50
- package/lib/cjs/types/Plot.d.ts +0 -91
- package/lib/cjs/types/ReferenceLine.d.ts +0 -31
- package/lib/cjs/types/ResponsiveContainer.d.ts +0 -20
- package/lib/cjs/types/ScatterPlot.d.ts +0 -27
- package/lib/cjs/types/StackBar.d.ts +0 -26
- package/lib/cjs/types/StackedArea.d.ts +0 -26
- package/lib/cjs/types/Tooltip.d.ts +0 -33
- package/lib/cjs/types/Venn.d.ts +0 -45
- package/lib/cjs/types/context.d.ts +0 -6
- package/lib/es6/types/Area.d.ts +0 -48
- package/lib/es6/types/Axis.d.ts +0 -64
- package/lib/es6/types/Bar.d.ts +0 -52
- package/lib/es6/types/Bubble.d.ts +0 -32
- package/lib/es6/types/ClipPath.d.ts +0 -26
- package/lib/es6/types/Donut.d.ts +0 -46
- package/lib/es6/types/GroupBar.d.ts +0 -20
- package/lib/es6/types/HorizontalBar.d.ts +0 -29
- package/lib/es6/types/Hover.d.ts +0 -15
- package/lib/es6/types/Line.d.ts +0 -50
- package/lib/es6/types/Plot.d.ts +0 -91
- package/lib/es6/types/ReferenceLine.d.ts +0 -31
- package/lib/es6/types/ResponsiveContainer.d.ts +0 -20
- package/lib/es6/types/ScatterPlot.d.ts +0 -27
- package/lib/es6/types/StackBar.d.ts +0 -26
- package/lib/es6/types/StackedArea.d.ts +0 -26
- package/lib/es6/types/Tooltip.d.ts +0 -33
- package/lib/es6/types/Venn.d.ts +0 -45
- package/lib/es6/types/context.d.ts +0 -6
- package/lib/es6/types/index.d.ts +0 -59
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
|
-
".
|
|
35
|
+
".___SBubble_a5j78_gg_{fill:#2bb3ff;stroke:#fff;stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_a5j78);transition-timing-function:ease-in-out;opacity:.5}.___SBubble_a5j78_gg_:hover{opacity:.8}.___SBubble_a5j78_gg_.__color_a5j78_gg_{fill:var(--color_a5j78)}.___SCenter_a5j78_gg_{text-anchor:middle;font-size:11px;stroke:#2bb3ff}.___SCenter_a5j78_gg_.__color_a5j78_gg_{stroke:var(--color_a5j78)}.___SLabel_a5j78_gg_{fill:#2bb3ff}.___SLabel_a5j78_gg_._position_right_a5j78_gg_{text-anchor:end}.___SLabel_a5j78_gg_._position_left_a5j78_gg_{text-anchor:start}.___SLabel_a5j78_gg_.__color_a5j78_gg_{fill:var(--color_a5j78)}"
|
|
36
36
|
/*__inner_css_end__*/
|
|
37
|
-
, "
|
|
37
|
+
, "a5j78_gg_")
|
|
38
38
|
/*__reshadow_css_end__*/
|
|
39
39
|
, {
|
|
40
|
-
"__SBubble": "
|
|
41
|
-
"--duration": "--
|
|
42
|
-
"_color": "
|
|
43
|
-
"--color": "--
|
|
44
|
-
"__SCenter": "
|
|
45
|
-
"__SLabel": "
|
|
46
|
-
"_position_right": "
|
|
47
|
-
"_position_left": "
|
|
40
|
+
"__SBubble": "___SBubble_a5j78_gg_",
|
|
41
|
+
"--duration": "--duration_a5j78",
|
|
42
|
+
"_color": "__color_a5j78_gg_",
|
|
43
|
+
"--color": "--color_a5j78",
|
|
44
|
+
"__SCenter": "___SCenter_a5j78_gg_",
|
|
45
|
+
"__SLabel": "___SLabel_a5j78_gg_",
|
|
46
|
+
"_position_right": "_position_right_a5j78_gg_",
|
|
47
|
+
"_position_left": "_position_left_a5j78_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
|
-
".
|
|
37
|
+
".___SPie_147zl_gg_{stroke:#fff;fill:#2bb3ff}.___SPie_147zl_gg_.__color_147zl_gg_{fill:var(--color_147zl)}.___SEmptyData_147zl_gg_{fill:#e0e1e9}.___SEmptyData_147zl_gg_.__color_147zl_gg_{fill:var(--color_147zl)}.___SLabel_147zl_gg_{text-anchor:middle;vertical-anchor:middle}"
|
|
38
38
|
/*__inner_css_end__*/
|
|
39
|
-
, "
|
|
39
|
+
, "147zl_gg_")
|
|
40
40
|
/*__reshadow_css_end__*/
|
|
41
41
|
, {
|
|
42
|
-
"__SPie": "
|
|
43
|
-
"_color": "
|
|
44
|
-
"--color": "--
|
|
45
|
-
"__SEmptyData": "
|
|
46
|
-
"__SLabel": "
|
|
42
|
+
"__SPie": "___SPie_147zl_gg_",
|
|
43
|
+
"_color": "__color_147zl_gg_",
|
|
44
|
+
"--color": "--color_147zl",
|
|
45
|
+
"__SEmptyData": "___SEmptyData_147zl_gg_",
|
|
46
|
+
"__SLabel": "___SLabel_147zl_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
|
-
".
|
|
15
|
+
".___SDots_a6bow_gg_ .___SDot_a6bow_gg_{transition-duration:var(--duration_a6bow)}.___SDot_a6bow_gg_{stroke-width:2px;stroke:#fff;r:6px;fill:#2bb3ff;transition-property:cx,cy;transition-timing-function:ease-in-out}.___SDot_a6bow_gg_.__hide_a6bow_gg_{display:none}.___SDot_a6bow_gg_.__active_a6bow_gg_{r:8px}.___SDot_a6bow_gg_.__color_a6bow_gg_{fill:var(--color_a6bow)}"
|
|
16
16
|
/*__inner_css_end__*/
|
|
17
|
-
, "
|
|
17
|
+
, "a6bow_gg_")
|
|
18
18
|
/*__reshadow_css_end__*/
|
|
19
19
|
, {
|
|
20
|
-
"__SDots": "
|
|
21
|
-
"__SDot": "
|
|
22
|
-
"--duration": "--
|
|
23
|
-
"_hide": "
|
|
24
|
-
"_active": "
|
|
25
|
-
"_color": "
|
|
26
|
-
"--color": "--
|
|
20
|
+
"__SDots": "___SDots_a6bow_gg_",
|
|
21
|
+
"__SDot": "___SDot_a6bow_gg_",
|
|
22
|
+
"--duration": "--duration_a6bow",
|
|
23
|
+
"_hide": "__hide_a6bow_gg_",
|
|
24
|
+
"_active": "__active_a6bow_gg_",
|
|
25
|
+
"_color": "__color_a6bow_gg_",
|
|
26
|
+
"--color": "--color_a6bow"
|
|
27
27
|
});
|
|
28
28
|
var EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];
|
|
29
29
|
|
package/lib/es6/HorizontalBar.js
CHANGED
|
@@ -23,17 +23,17 @@ var style = (
|
|
|
23
23
|
/*__reshadow_css_start__*/
|
|
24
24
|
_sstyled.insert(
|
|
25
25
|
/*__inner_css_start__*/
|
|
26
|
-
".
|
|
26
|
+
".___SBar_1i08o_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration_1i08o);transition-timing-function:ease-in-out}.___SBar_1i08o_gg_.__color_1i08o_gg_{fill:var(--color_1i08o)}.___SBar_1i08o_gg_.__hide_1i08o_gg_{display:none}.___SBackground_1i08o_gg_{fill:#c4c7cf}"
|
|
27
27
|
/*__inner_css_end__*/
|
|
28
|
-
, "
|
|
28
|
+
, "1i08o_gg_")
|
|
29
29
|
/*__reshadow_css_end__*/
|
|
30
30
|
, {
|
|
31
|
-
"__SBar": "
|
|
32
|
-
"--duration": "--
|
|
33
|
-
"_color": "
|
|
34
|
-
"--color": "--
|
|
35
|
-
"_hide": "
|
|
36
|
-
"__SBackground": "
|
|
31
|
+
"__SBar": "___SBar_1i08o_gg_",
|
|
32
|
+
"--duration": "--duration_1i08o",
|
|
33
|
+
"_color": "__color_1i08o_gg_",
|
|
34
|
+
"--color": "--color_1i08o",
|
|
35
|
+
"_hide": "__hide_1i08o_gg_",
|
|
36
|
+
"__SBackground": "___SBackground_1i08o_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
|
-
".
|
|
27
|
+
".___SHoverLine_33u57_gg_{stroke:#a9abb6}.___SHoverRect_33u57_gg_{fill:rgba(196,199,207,.3)}"
|
|
28
28
|
/*__inner_css_end__*/
|
|
29
|
-
, "
|
|
29
|
+
, "33u57_gg_")
|
|
30
30
|
/*__reshadow_css_end__*/
|
|
31
31
|
, {
|
|
32
|
-
"__SHoverLine": "
|
|
33
|
-
"__SHoverRect": "
|
|
32
|
+
"__SHoverLine": "___SHoverLine_33u57_gg_",
|
|
33
|
+
"__SHoverRect": "___SHoverRect_33u57_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
|
-
".
|
|
28
|
+
".___SLine_6d5fd_gg_{fill:transparent;stroke-width:3;stroke:#2bb3ff;transition-property:d;transition-duration:var(--duration_6d5fd);transition-timing-function:ease-in-out}.___SLine_6d5fd_gg_.__color_6d5fd_gg_{stroke:var(--color_6d5fd)}.___SLine_6d5fd_gg_.__hide_6d5fd_gg_{display:none}.___SNull_6d5fd_gg_{fill:transparent;stroke:#c4c7cf;stroke-dasharray:4}.___SNull_6d5fd_gg_.__hide_6d5fd_gg_{display:none}"
|
|
29
29
|
/*__inner_css_end__*/
|
|
30
|
-
, "
|
|
30
|
+
, "6d5fd_gg_")
|
|
31
31
|
/*__reshadow_css_end__*/
|
|
32
32
|
, {
|
|
33
|
-
"__SLine": "
|
|
34
|
-
"--duration": "--
|
|
35
|
-
"_color": "
|
|
36
|
-
"--color": "--
|
|
37
|
-
"_hide": "
|
|
38
|
-
"__SNull": "
|
|
33
|
+
"__SLine": "___SLine_6d5fd_gg_",
|
|
34
|
+
"--duration": "--duration_6d5fd",
|
|
35
|
+
"_color": "__color_6d5fd_gg_",
|
|
36
|
+
"--color": "--color_6d5fd",
|
|
37
|
+
"_hide": "__hide_6d5fd_gg_",
|
|
38
|
+
"__SNull": "___SNull_6d5fd_gg_"
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
var LineRoot = /*#__PURE__*/function (_Component) {
|
package/lib/es6/Plot.js
CHANGED
|
@@ -31,13 +31,13 @@ var style = (
|
|
|
31
31
|
/*__reshadow_css_start__*/
|
|
32
32
|
_sstyled.insert(
|
|
33
33
|
/*__inner_css_start__*/
|
|
34
|
-
".
|
|
34
|
+
".___SPlot_1rzoy_gg_{overflow:hidden}.___SPlot_1rzoy_gg_:active,.___SPlot_1rzoy_gg_:focus{outline:0;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_1rzoy_gg_.__keyboardFocused_1rzoy_gg_{border:1px solid #008ff8;box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}"
|
|
35
35
|
/*__inner_css_end__*/
|
|
36
|
-
, "
|
|
36
|
+
, "1rzoy_gg_")
|
|
37
37
|
/*__reshadow_css_end__*/
|
|
38
38
|
, {
|
|
39
|
-
"__SPlot": "
|
|
40
|
-
"_keyboardFocused": "
|
|
39
|
+
"__SPlot": "___SPlot_1rzoy_gg_",
|
|
40
|
+
"_keyboardFocused": "__keyboardFocused_1rzoy_gg_"
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
var PlotRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -157,7 +157,8 @@ var PlotRoot = /*#__PURE__*/function (_Component) {
|
|
|
157
157
|
"tabIndex": 0
|
|
158
158
|
}, _ref))), /*#__PURE__*/React.createElement(Children, _ref2.cn("Children", {})), /*#__PURE__*/React.createElement("foreignObject", _ref2.cn("foreignObject", {
|
|
159
159
|
"width": "100%",
|
|
160
|
-
"height": "100%"
|
|
160
|
+
"height": "100%",
|
|
161
|
+
"data-aria-only": true
|
|
161
162
|
}), /*#__PURE__*/React.createElement(PlotA11yModule, _ref2.cn("PlotA11yModule", {
|
|
162
163
|
"id": this.plotId,
|
|
163
164
|
"data": data,
|
package/lib/es6/Plot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plot.js","names":["React","createComponent","Component","Root","sstyled","Box","EventEmitter","keyboardFocusEnhance","eventToPoint","uniqueId","PlotA11yModule","makeDataHintsHandlers","makeDataHintsContainer","PlotRoot","props","createRef","dataStructureHints","e","scale","asProps","eventEmitter","emit","xScale","yScale","rootRef","current","pX","pY","range","minX","maxX","maxY","minY","data","width","height","yScaleDomain","domain","length","dataHintsHandler","setPointsDensity","Math","abs","$rootProps","size","SPlot","styles","Children","a11yAltTextConfig","label","locale","handlerMouseMove","handlerMouseLeave","plotId","style"],"sources":["../../src/Plot.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport EventEmitter from '@semcore/utils/lib/eventEmitter';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { eventToPoint, uniqueId } from './utils';\nimport { PlotA11yModule } from './a11y/PlotA11yModule';\nimport { makeDataHintsHandlers, makeDataHintsContainer } from './a11y/hints';\n\nimport style from './style/plot.shadow.css';\n\nclass PlotRoot extends Component {\n static displayName = 'Plot';\n static style = style;\n\n constructor(props) {\n super(props);\n this.eventEmitter = props.eventEmitter || new EventEmitter();\n }\n\n static defaultProps = () => ({\n width: 0,\n height: 0,\n });\n\n static enhance = [keyboardFocusEnhance()];\n\n plotId = uniqueId();\n\n rootRef = React.createRef();\n\n dataStructureHints = makeDataHintsContainer();\n dataHintsHandler = makeDataHintsHandlers(this.dataStructureHints);\n\n handlerMouseMove = (e) => {\n const { scale } = this.asProps;\n this.eventEmitter.emit(`onMouseMoveRoot`, e);\n\n if (scale) {\n const [xScale, yScale] = scale;\n const [pX, pY] = eventToPoint(e, this.rootRef.current);\n const [minX, maxX] = xScale.range();\n const [maxY, minY] = yScale.range();\n\n if (pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) {\n this.eventEmitter.emit('onMouseMoveChart', e);\n } else {\n this.eventEmitter.emit('onMouseLeaveChart', e);\n }\n }\n };\n\n handlerMouseLeave = (e) => {\n this.eventEmitter.emit(`onMouseLeaveRoot`, e);\n this.eventEmitter.emit('onMouseLeaveChart', e);\n };\n\n setContext() {\n const { scale, data, width, height } = this.asProps;\n\n const yScaleDomain = scale?.[1]?.domain?.();\n if (yScaleDomain?.length && data?.length) {\n this.dataHintsHandler.setPointsDensity(\n data.length / width,\n Math.abs(yScaleDomain[1] - yScaleDomain[0]) / height,\n );\n }\n\n return {\n $rootProps: {\n size: [width, height],\n data: data,\n scale: scale,\n eventEmitter: this.eventEmitter,\n rootRef: this.rootRef,\n dataHintsHandler: this.dataHintsHandler,\n },\n };\n }\n\n render() {\n const SPlot = Root;\n const { styles, width, height, Children, data, a11yAltTextConfig, label, locale } =\n this.asProps;\n\n if (!width || !height) return null;\n\n return sstyled(styles)(\n <>\n <SPlot\n render={Box}\n tag=\"svg\"\n __excludeProps={['data', 'scale']}\n ref={this.rootRef}\n onMouseMove={this.handlerMouseMove}\n onMouseLeave={this.handlerMouseLeave}\n aria-label={label}\n tabIndex={0}\n >\n <Children />\n <foreignObject width=\"100%\" height=\"100%\">\n <PlotA11yModule\n id={this.plotId}\n data={data}\n plotLabel={label}\n locale={locale}\n plotRef={this.rootRef}\n hints={this.dataStructureHints}\n config={a11yAltTextConfig}\n />\n </foreignObject>\n </SPlot>\n </>,\n );\n }\n}\n\nexport default createComponent(PlotRoot);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,IAArC,EAA2CC,OAA3C,QAA0D,eAA1D;AACA,SAASC,GAAT,QAAoB,mBAApB;AACA,OAAOC,YAAP,MAAyB,iCAAzB;AACA,OAAOC,oBAAP,MAAiC,kDAAjC;AACA,SAASC,YAAT,EAAuBC,QAAvB,QAAuC,SAAvC;AACA,SAASC,cAAT,QAA+B,uBAA/B;AACA,SAASC,qBAAT,EAAgCC,sBAAhC,QAA8D,cAA9D;;;;;;;;;;;;;;;;IAIMC,Q;;;;;EAIJ,kBAAYC,KAAZ,EAAmB;IAAA;;IAAA;;IACjB,0BAAMA,KAAN;;IADiB,yDAYVL,QAAQ,EAZE;;IAAA,uEAcTT,KAAK,CAACe,SAAN,EAdS;;IAAA,qEAgBEH,sBAAsB,EAhBxB;;IAAA,mEAiBAD,qBAAqB,CAAC,MAAKK,kBAAN,CAjBrB;;IAAA,mEAmBA,UAACC,CAAD,EAAO;MACxB,IAAQC,KAAR,GAAkB,MAAKC,OAAvB,CAAQD,KAAR;;MACA,MAAKE,YAAL,CAAkBC,IAAlB,oBAA0CJ,CAA1C;;MAEA,IAAIC,KAAJ,EAAW;QACT,4BAAyBA,KAAzB;QAAA,IAAOI,MAAP;QAAA,IAAeC,MAAf;;QACA,oBAAiBf,YAAY,CAACS,CAAD,EAAI,MAAKO,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":3,"file":"Plot.js","names":["React","createComponent","Component","Root","sstyled","Box","EventEmitter","keyboardFocusEnhance","eventToPoint","uniqueId","PlotA11yModule","makeDataHintsHandlers","makeDataHintsContainer","PlotRoot","props","createRef","dataStructureHints","e","scale","asProps","eventEmitter","emit","xScale","yScale","rootRef","current","pX","pY","range","minX","maxX","maxY","minY","data","width","height","yScaleDomain","domain","length","dataHintsHandler","setPointsDensity","Math","abs","$rootProps","size","SPlot","styles","Children","a11yAltTextConfig","label","locale","handlerMouseMove","handlerMouseLeave","plotId","style"],"sources":["../../src/Plot.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport EventEmitter from '@semcore/utils/lib/eventEmitter';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { eventToPoint, uniqueId } from './utils';\nimport { PlotA11yModule } from './a11y/PlotA11yModule';\nimport { makeDataHintsHandlers, makeDataHintsContainer } from './a11y/hints';\n\nimport style from './style/plot.shadow.css';\n\nclass PlotRoot extends Component {\n static displayName = 'Plot';\n static style = style;\n\n constructor(props) {\n super(props);\n this.eventEmitter = props.eventEmitter || new EventEmitter();\n }\n\n static defaultProps = () => ({\n width: 0,\n height: 0,\n });\n\n static enhance = [keyboardFocusEnhance()];\n\n plotId = uniqueId();\n\n rootRef = React.createRef();\n\n dataStructureHints = makeDataHintsContainer();\n dataHintsHandler = makeDataHintsHandlers(this.dataStructureHints);\n\n handlerMouseMove = (e) => {\n const { scale } = this.asProps;\n this.eventEmitter.emit(`onMouseMoveRoot`, e);\n\n if (scale) {\n const [xScale, yScale] = scale;\n const [pX, pY] = eventToPoint(e, this.rootRef.current);\n const [minX, maxX] = xScale.range();\n const [maxY, minY] = yScale.range();\n\n if (pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) {\n this.eventEmitter.emit('onMouseMoveChart', e);\n } else {\n this.eventEmitter.emit('onMouseLeaveChart', e);\n }\n }\n };\n\n handlerMouseLeave = (e) => {\n this.eventEmitter.emit(`onMouseLeaveRoot`, e);\n this.eventEmitter.emit('onMouseLeaveChart', e);\n };\n\n setContext() {\n const { scale, data, width, height } = this.asProps;\n\n const yScaleDomain = scale?.[1]?.domain?.();\n if (yScaleDomain?.length && data?.length) {\n this.dataHintsHandler.setPointsDensity(\n data.length / width,\n Math.abs(yScaleDomain[1] - yScaleDomain[0]) / height,\n );\n }\n\n return {\n $rootProps: {\n size: [width, height],\n data: data,\n scale: scale,\n eventEmitter: this.eventEmitter,\n rootRef: this.rootRef,\n dataHintsHandler: this.dataHintsHandler,\n },\n };\n }\n\n render() {\n const SPlot = Root;\n const { styles, width, height, Children, data, a11yAltTextConfig, label, locale } =\n this.asProps;\n\n if (!width || !height) return null;\n\n return sstyled(styles)(\n <>\n <SPlot\n render={Box}\n tag=\"svg\"\n __excludeProps={['data', 'scale']}\n ref={this.rootRef}\n onMouseMove={this.handlerMouseMove}\n onMouseLeave={this.handlerMouseLeave}\n aria-label={label}\n tabIndex={0}\n >\n <Children />\n <foreignObject width=\"100%\" height=\"100%\" data-aria-only>\n <PlotA11yModule\n id={this.plotId}\n data={data}\n plotLabel={label}\n locale={locale}\n plotRef={this.rootRef}\n hints={this.dataStructureHints}\n config={a11yAltTextConfig}\n />\n </foreignObject>\n </SPlot>\n </>,\n );\n }\n}\n\nexport default createComponent(PlotRoot);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,IAArC,EAA2CC,OAA3C,QAA0D,eAA1D;AACA,SAASC,GAAT,QAAoB,mBAApB;AACA,OAAOC,YAAP,MAAyB,iCAAzB;AACA,OAAOC,oBAAP,MAAiC,kDAAjC;AACA,SAASC,YAAT,EAAuBC,QAAvB,QAAuC,SAAvC;AACA,SAASC,cAAT,QAA+B,uBAA/B;AACA,SAASC,qBAAT,EAAgCC,sBAAhC,QAA8D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AAzC,kBAAyCA,IAAzC;MAAA,IAA+Ce,iBAA/C,kBAA+CA,iBAA/C;MAAA,IAAkEC,KAAlE,kBAAkEA,KAAlE;MAAA,IAAyEC,MAAzE,kBAAyEA,MAAzE;MAGA,IAAI,CAAChB,KAAD,IAAU,CAACC,MAAf,EAAuB,OAAO,IAAP;MAEvB,eAAO/B,OAAO,CAAC0C,MAAD,CAAd,eACE,uDACE,oBAAC,KAAD;QAAA,OAEM,KAFN;QAAA,kBAGkB,CAAC,MAAD,EAAS,OAAT,CAHlB;QAAA,OAIO,KAAKtB,OAJZ;QAAA,eAKe,KAAK2B,gBALpB;QAAA,gBAMgB,KAAKC,iBANrB;QAAA,cAOcH,KAPd;QAAA,YAQY;MARZ,yBAUE,oBAAC,QAAD,2BAVF,eAWE;QAAA,SAAqB,MAArB;QAAA,UAAmC,MAAnC;QAAA;MAAA,iBACE,oBAAC,cAAD;QAAA,MACM,KAAKI,MADX;QAAA,QAEQpB,IAFR;QAAA,aAGagB,KAHb;QAAA,UAIUC,MAJV;QAAA,WAKW,KAAK1B,OALhB;QAAA,SAMS,KAAKR,kBANd;QAAA,UAOUgC;MAPV,GADF,CAXF,CADF,CADF;IA2BD;;;;EAvGoB9C,S;;gBAAjBW,Q,iBACiB,M;;gBADjBA,Q,WAEWyC,K;;gBAFXzC,Q,kBASkB;EAAA,OAAO;IAC3BqB,KAAK,EAAE,CADoB;IAE3BC,MAAM,EAAE;EAFmB,CAAP;AAAA,C;;gBATlBtB,Q,aAca,CAACN,oBAAoB,EAArB,C;;AA4FnB,eAAeN,eAAe,CAACY,QAAD,CAA9B"}
|
package/lib/es6/RadialTree.js
CHANGED
|
@@ -34,20 +34,20 @@ var style = (
|
|
|
34
34
|
/*__reshadow_css_start__*/
|
|
35
35
|
_sstyled.insert(
|
|
36
36
|
/*__inner_css_start__*/
|
|
37
|
-
".
|
|
37
|
+
".___SRadian_1klv3_gg_{cursor:pointer;fill:#008ff8}.___SLine_1klv3_gg_{stroke:#008ff8}.___SLine_1klv3_gg_.__color_1klv3_gg_{stroke:var(--color_1klv3)}.___SCap_1klv3_gg_{transition:r .1s}.___SLabel_1klv3_gg_{fill:var(--color_1klv3);cursor:var(--text-cursor_1klv3)}.___SRadian_1klv3_gg_:hover .___SLabel_1klv3_gg_{fill:var(--color-hovered_1klv3)}@media (prefers-reduced-motion){.___SLineCap_1klv3_gg_{transition:none}}"
|
|
38
38
|
/*__inner_css_end__*/
|
|
39
|
-
, "
|
|
39
|
+
, "1klv3_gg_")
|
|
40
40
|
/*__reshadow_css_end__*/
|
|
41
41
|
, {
|
|
42
|
-
"__SRadian": "
|
|
43
|
-
"__SLine": "
|
|
44
|
-
"_color": "
|
|
45
|
-
"--color": "--
|
|
46
|
-
"__SCap": "
|
|
47
|
-
"__SLabel": "
|
|
48
|
-
"--text-cursor": "--text-
|
|
49
|
-
"--color-hovered": "--color-
|
|
50
|
-
"__SLineCap": "
|
|
42
|
+
"__SRadian": "___SRadian_1klv3_gg_",
|
|
43
|
+
"__SLine": "___SLine_1klv3_gg_",
|
|
44
|
+
"_color": "__color_1klv3_gg_",
|
|
45
|
+
"--color": "--color_1klv3",
|
|
46
|
+
"__SCap": "___SCap_1klv3_gg_",
|
|
47
|
+
"__SLabel": "___SLabel_1klv3_gg_",
|
|
48
|
+
"--text-cursor": "--text-cursor_1klv3",
|
|
49
|
+
"--color-hovered": "--color-hovered_1klv3",
|
|
50
|
+
"__SLineCap": "___SLineCap_1klv3_gg_"
|
|
51
51
|
});
|
|
52
52
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
|
53
53
|
|
package/lib/es6/ReferenceLine.js
CHANGED
|
@@ -25,19 +25,19 @@ var style = (
|
|
|
25
25
|
/*__reshadow_css_start__*/
|
|
26
26
|
_sstyled.insert(
|
|
27
27
|
/*__inner_css_start__*/
|
|
28
|
-
".
|
|
28
|
+
".___SReferenceLine_1rx9u_gg_{fill:none;stroke:#a9abb6}.___STitle_1rx9u_gg_{font-size:12px;fill:#6c6e79;transform-origin:var(--transform-origin_1rx9u)}.___STitle_1rx9u_gg_._position_top_1rx9u_gg_{text-anchor:middle}.___STitle_1rx9u_gg_._position_bottom_1rx9u_gg_{text-anchor:middle;alignment-baseline:hanging}.___STitle_1rx9u_gg_._position_right_1rx9u_gg_{transform:rotate(-90deg);alignment-baseline:middle;text-anchor:middle}.___STitle_1rx9u_gg_._position_left_1rx9u_gg_{transform:rotate(-90deg);text-anchor:middle;alignment-baseline:middle}.___SBackground_1rx9u_gg_{fill:rgba(196,199,207,.2)}"
|
|
29
29
|
/*__inner_css_end__*/
|
|
30
|
-
, "
|
|
30
|
+
, "1rx9u_gg_")
|
|
31
31
|
/*__reshadow_css_end__*/
|
|
32
32
|
, {
|
|
33
|
-
"__SReferenceLine": "
|
|
34
|
-
"__STitle": "
|
|
35
|
-
"--transform-origin": "--transform-
|
|
36
|
-
"_position_top": "
|
|
37
|
-
"_position_bottom": "
|
|
38
|
-
"_position_right": "
|
|
39
|
-
"_position_left": "
|
|
40
|
-
"__SBackground": "
|
|
33
|
+
"__SReferenceLine": "___SReferenceLine_1rx9u_gg_",
|
|
34
|
+
"__STitle": "___STitle_1rx9u_gg_",
|
|
35
|
+
"--transform-origin": "--transform-origin_1rx9u",
|
|
36
|
+
"_position_top": "_position_top_1rx9u_gg_",
|
|
37
|
+
"_position_bottom": "_position_bottom_1rx9u_gg_",
|
|
38
|
+
"_position_right": "_position_right_1rx9u_gg_",
|
|
39
|
+
"_position_left": "_position_left_1rx9u_gg_",
|
|
40
|
+
"__SBackground": "___SBackground_1rx9u_gg_"
|
|
41
41
|
});
|
|
42
42
|
var MAP_ORIENTATION = {
|
|
43
43
|
left: 'vertical',
|
package/lib/es6/ScatterPlot.js
CHANGED
|
@@ -30,16 +30,16 @@ var style = (
|
|
|
30
30
|
/*__reshadow_css_start__*/
|
|
31
31
|
_sstyled.insert(
|
|
32
32
|
/*__inner_css_start__*/
|
|
33
|
-
".
|
|
33
|
+
".___SScatterPlot_1t8iw_gg_{fill:#2bb3ff;transition-property:cx,cy;transition-duration:var(--duration_1t8iw);transition-timing-function:ease-in-out;opacity:.5}.___SScatterPlot_1t8iw_gg_:hover{opacity:.8}.___SScatterPlot_1t8iw_gg_.__color_1t8iw_gg_{fill:var(--color_1t8iw)}.___SValue_1t8iw_gg_{text-anchor:middle;font-size:10px;stroke:#008ff8}.___SValue_1t8iw_gg_.__color_1t8iw_gg_{stroke:var(--color_1t8iw)}"
|
|
34
34
|
/*__inner_css_end__*/
|
|
35
|
-
, "
|
|
35
|
+
, "1t8iw_gg_")
|
|
36
36
|
/*__reshadow_css_end__*/
|
|
37
37
|
, {
|
|
38
|
-
"__SScatterPlot": "
|
|
39
|
-
"--duration": "--
|
|
40
|
-
"_color": "
|
|
41
|
-
"--color": "--
|
|
42
|
-
"__SValue": "
|
|
38
|
+
"__SScatterPlot": "___SScatterPlot_1t8iw_gg_",
|
|
39
|
+
"--duration": "--duration_1t8iw",
|
|
40
|
+
"_color": "__color_1t8iw_gg_",
|
|
41
|
+
"--color": "--color_1t8iw",
|
|
42
|
+
"__SValue": "___SValue_1t8iw_gg_"
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
|
package/lib/es6/Tooltip.js
CHANGED
|
@@ -34,17 +34,17 @@ var style = (
|
|
|
34
34
|
/*__reshadow_css_start__*/
|
|
35
35
|
_sstyled.insert(
|
|
36
36
|
/*__inner_css_start__*/
|
|
37
|
-
".
|
|
37
|
+
".___STooltip_1q94t_gg_{font-size:12px;line-height:1.33;position:relative;background-color:#fff;border-radius:6px;border:1px solid #e0e1e9;box-sizing:border-box;box-shadow:0px 1px 12px 0px rgba(25, 27, 35, 0.15);padding:12px}.___STitle_1q94t_gg_{color:#6c6e79;margin-bottom:8px}.___SDotGroup_1q94t_gg_{display:flex;align-items:center}.___SDot_1q94t_gg_{width:8px;height:8px;border-radius:50%;margin-right:8px;background:#2bb3ff}.___SDot_1q94t_gg_.__color_1q94t_gg_{background:var(--color_1q94t)}"
|
|
38
38
|
/*__inner_css_end__*/
|
|
39
|
-
, "
|
|
39
|
+
, "1q94t_gg_")
|
|
40
40
|
/*__reshadow_css_end__*/
|
|
41
41
|
, {
|
|
42
|
-
"__STooltip": "
|
|
43
|
-
"__STitle": "
|
|
44
|
-
"__SDotGroup": "
|
|
45
|
-
"__SDot": "
|
|
46
|
-
"_color": "
|
|
47
|
-
"--color": "--
|
|
42
|
+
"__STooltip": "___STooltip_1q94t_gg_",
|
|
43
|
+
"__STitle": "___STitle_1q94t_gg_",
|
|
44
|
+
"__SDotGroup": "___SDotGroup_1q94t_gg_",
|
|
45
|
+
"__SDot": "___SDot_1q94t_gg_",
|
|
46
|
+
"_color": "__color_1q94t_gg_",
|
|
47
|
+
"--color": "--color_1q94t"
|
|
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
|
-
".
|
|
29
|
+
".___SCircle_1uyw5_gg_{fill:#59ddaa;stroke:#fff;stroke-width:2px;fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1uyw5);transition-timing-function:ease-in-out}.___SCircle_1uyw5_gg_:hover{fill-opacity:.7}.___SCircle_1uyw5_gg_.__color_1uyw5_gg_{fill:var(--color_1uyw5)}.___SIntersection_1uyw5_gg_{stroke:#fff;stroke-width:2px;fill-opacity:0}.___SIntersection_1uyw5_gg_:hover{fill-opacity:.1}"
|
|
30
30
|
/*__inner_css_end__*/
|
|
31
|
-
, "
|
|
31
|
+
, "1uyw5_gg_")
|
|
32
32
|
/*__reshadow_css_end__*/
|
|
33
33
|
, {
|
|
34
|
-
"__SCircle": "
|
|
35
|
-
"--duration": "--
|
|
36
|
-
"_color": "
|
|
37
|
-
"--color": "--
|
|
38
|
-
"__SIntersection": "
|
|
34
|
+
"__SCircle": "___SCircle_1uyw5_gg_",
|
|
35
|
+
"--duration": "--duration_1uyw5",
|
|
36
|
+
"_color": "__color_1uyw5_gg_",
|
|
37
|
+
"--color": "--color_1uyw5",
|
|
38
|
+
"__SIntersection": "___SIntersection_1uyw5_gg_"
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
var VennRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -20,12 +20,12 @@ var styles = (
|
|
|
20
20
|
/*__reshadow_css_start__*/
|
|
21
21
|
_sstyled.insert(
|
|
22
22
|
/*__inner_css_start__*/
|
|
23
|
-
".
|
|
23
|
+
".___SPlotA11yModule_9npn1_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_9npn1_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}"
|
|
24
24
|
/*__inner_css_end__*/
|
|
25
|
-
, "
|
|
25
|
+
, "9npn1_gg_")
|
|
26
26
|
/*__reshadow_css_end__*/
|
|
27
27
|
, {
|
|
28
|
-
"__SPlotA11yModule": "
|
|
28
|
+
"__SPlotA11yModule": "___SPlotA11yModule_9npn1_gg_"
|
|
29
29
|
});
|
|
30
30
|
import { Context as I18nContext } from '@semcore/utils/lib/enhances/WithI18n';
|
|
31
31
|
import { Box } from '@semcore/flex-box';
|
|
@@ -27,13 +27,13 @@ var styles = (
|
|
|
27
27
|
/*__reshadow_css_start__*/
|
|
28
28
|
_sstyled.insert(
|
|
29
29
|
/*__inner_css_start__*/
|
|
30
|
-
".
|
|
30
|
+
".___SPlotA11yView_f421s_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:#fff;color:#000;border:3px solid #000;font-size:10px;padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_f421s_gg_:focus,.___SPlotA11yView_f421s_gg_.__focus-within_f421s_gg_{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:100;position:relative;display:block}.___SPlotA11yView_f421s_gg_:focus,.___SPlotA11yView_f421s_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:100;position:relative;display:block}.___SPlotA11yView_f421s_gg_ a{cursor:pointer;text-decoration:underline;margin-bottom:8px;display:block}.___SPlotA11yView_f421s_gg_ table,.___SPlotA11yView_f421s_gg_ td,.___SPlotA11yView_f421s_gg_ th{border:1px solid #000}"
|
|
31
31
|
/*__inner_css_end__*/
|
|
32
|
-
, "
|
|
32
|
+
, "f421s_gg_")
|
|
33
33
|
/*__reshadow_css_end__*/
|
|
34
34
|
, {
|
|
35
|
-
"__SPlotA11yView": "
|
|
36
|
-
"_focus-within": "__focus-
|
|
35
|
+
"__SPlotA11yView": "___SPlotA11yView_f421s_gg_",
|
|
36
|
+
"_focus-within": "__focus-within_f421s_gg_"
|
|
37
37
|
});
|
|
38
38
|
import { Box } from '@semcore/flex-box';
|
|
39
39
|
export var PlotA11yView = function PlotA11yView(_ref3) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\nimport { CurveFactory } from 'd3-shape';\n\nexport interface IAreaProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis*/\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n}\n\nexport interface IAreaDotsProps extends IContext {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n}\n\nexport interface IAreaDotsContext {\n /** Value element of data */\n value?: any;\n /** Index element of data */\n index?: number;\n}\n\nexport interface IAreaNullProps extends IContext {\n /** Hide property */\n hide?: boolean;\n}\n\ndeclare const Area: (<T>(props: CProps<IAreaProps & T>) => ReturnEl) & {\n Dots: <T>(props: CProps<IAreaDotsProps & T, IAreaDotsContext>) => ReturnEl;\n Null: <T>(props: CProps<IAreaNullProps & T>) => ReturnEl;\n Line: <T>(props: CProps<IContext & T>) => ReturnEl;\n};\n\nexport default Area;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Axis.d.js","names":[],"sources":["../../../src/types/Axis.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\n\nexport interface IXAxisProps extends IContext {\n /** The position of the axis relative chart\n * @default 'button' */\n position?: 'top' | 'right' | 'bottom' | 'left' | number;\n /** Element hide property\n * @default false */\n hide?: boolean;\n /** Values for axis ticks */\n ticks?: any[];\n}\n\nexport interface IYAxisProps extends IContext {\n /** The position of the axis relative chart\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left' | number;\n /** Element hide property\n * @default true */\n hide?: boolean;\n /** Values for axis ticks */\n ticks?: any[];\n}\n\nexport interface IAxisTicksProps extends IContext {\n /** The position of the axis relative chart */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Element hide property */\n hide?: boolean;\n /** Values for axis ticks */\n ticks?: any[];\n}\n\nexport interface IAxisGridProps extends IContext {\n /** Values for axis ticks */\n ticks?: any[];\n}\n\nexport interface IAxisTitleProps extends IContext {\n /** The position of the axis relative chart */\n position?: 'top' | 'right' | 'bottom' | 'left';\n}\n\nexport interface IAxisTicksContext {\n /** Value element of data */\n value: any;\n /** Index element of data */\n index: number;\n}\n\ndeclare const XAxis: (<T>(props: CProps<IXAxisProps & T>) => ReturnEl) & {\n Ticks: <T>(props: CProps<IAxisTicksProps & T, IAxisTicksContext>) => ReturnEl;\n Grid: <T>(props: CProps<IAxisGridProps & T>) => ReturnEl;\n Title: <T>(props: CProps<IAxisTitleProps & T>) => ReturnEl;\n};\n\ndeclare const YAxis: (<T>(props: CProps<IYAxisProps & T>) => ReturnEl) & {\n Ticks: <T>(props: CProps<IAxisTicksProps & T, IAxisTicksContext>) => ReturnEl;\n Grid: <T>(props: CProps<IAxisGridProps & T>) => ReturnEl;\n Title: <T>(props: CProps<IAxisTitleProps & T>) => ReturnEl;\n};\n\nexport { XAxis, YAxis };\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bar.d.js","names":[],"sources":["../../../src/types/Bar.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\n\nexport interface IBarProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of curvature\n * @default 2\n */\n r?: number | number[];\n /** Minimal height\n * @default 4\n */\n hMin?: number;\n}\n\nexport interface IBarContext {\n /** Value element of data */\n value: any;\n /** Index element of data */\n index: number;\n}\n\nexport interface IBackgroundProps extends IContext {\n /** Coordinate x */\n x?: number | string;\n /** Coordinate y */\n y?: number | string;\n /** Value element of data */\n value?: any;\n /** Width rect */\n width?: number | string;\n /** Height rect */\n height?: number | string;\n}\n\ndeclare const Bar: (<T>(props: CProps<IBarProps & T, IBarContext>) => ReturnEl) & {\n Background: <T>(props: CProps<IBackgroundProps & T>) => ReturnEl;\n};\n\nexport default Bar;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bubble.d.js","names":[],"sources":["../../../src/types/Bubble.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\n\nexport interface IBubbleProps extends IContext {\n /** Field from data for XAxis */\n x: string;\n /** Field from data for YAxis */\n y: string;\n /** Field from data for circle radius */\n value: string;\n /** Field from data for circle label */\n label?: string;\n /** Circle color */\n color?: string;\n /** Cross in the center of the bubble\n * @default true\n */\n markedCross?: boolean;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n}\n\nexport interface IBubbleContext {\n /** Index element of data */\n index: number;\n}\n\ndeclare const Bubble: <T>(props: CProps<IBubbleProps & T, IBubbleContext>) => ReturnEl;\n\nexport default Bubble;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClipPath.d.js","names":[],"sources":["../../../src/types/ClipPath.d.ts"],"sourcesContent":["import React from 'react';\nimport { CProps, ReturnEl } from '@semcore/core';\n\nexport interface IClipPath {\n /**\n * HTML tag name for the displayed item\n * @default rect\n */\n tag?: string;\n /**\n * HTML selector\n */\n id?: string;\n /**\n * CSS property\n */\n transition?: string;\n /**\n * Function which run after mounted clipPath\n */\n setAttributeTag?: (rect: React.ReactNode) => void;\n}\n\ndeclare const ClipPath: <T>(props: CProps<IClipPath & T>) => ReturnEl;\n\nexport default ClipPath;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Donut.d.js","names":[],"sources":["../../../src/types/Donut.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\n\nexport interface IDonutProps extends IContext {\n /** Inner radius\n * @default 0\n * */\n innerRadius?: number;\n /** Outer radius\n * @default calculated by the formula from width, height\n * */\n outerRadius?: number;\n /** Semi donut */\n halfsize?: boolean;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n}\n\nexport interface IPieProps extends IContext {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /** Color pie\n @default #50aef4\n **/\n color?: string;\n /**\n * Active sector\n * */\n active?: boolean;\n}\n\nexport interface IEmptyDataProps extends IContext {}\n\nexport interface ILabelProps extends IContext {}\n\ndeclare const Donut: (<T>(props: CProps<IDonutProps & T>) => ReturnEl) & {\n Pie: <T>(props: CProps<IPieProps & T>) => ReturnEl;\n EmptyData: <T>(props: CProps<IEmptyDataProps & T>) => ReturnEl;\n Label: <T>(props: CProps<ILabelProps & T>) => ReturnEl;\n};\n\nexport default Donut;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupBar.d.js","names":[],"sources":["../../../src/types/GroupBar.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport { IBarContext, IBarProps } from './Bar';\nimport { IHorizontalBarProps } from './HorizontalBar';\nimport IContext from './context';\n\nexport interface IGroupBarProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Scale for group bars */\n scaleGroup?: any;\n}\n\ndeclare const GroupBar: (<T>(props: CProps<IGroupBarProps & T>) => ReturnEl) & {\n Bar: <T>(props: CProps<IBarProps & T, IBarContext>) => ReturnEl;\n HorizontalBar: <T>(props: CProps<IHorizontalBarProps & T, IBarContext>) => ReturnEl;\n};\n\nexport default GroupBar;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalBar.d.js","names":[],"sources":["../../../src/types/HorizontalBar.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\nimport { IBarContext, IBackgroundProps } from './Bar';\n\nexport interface IHorizontalBarProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of curvature\n * @default 2\n */\n r?: number | number[];\n}\n\ndeclare const HorizontalBar: (<T>(\n props: CProps<IHorizontalBarProps & T, IBarContext>,\n) => ReturnEl) & {\n Background: <T>(props: CProps<IBackgroundProps & T>) => ReturnEl;\n};\n\nexport default HorizontalBar;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hover.d.js","names":[],"sources":["../../../src/types/Hover.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\n\nexport interface IHoverProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n}\n\ndeclare const HoverLine: <T>(props: CProps<IHoverProps & T>) => ReturnEl;\n\ndeclare const HoverRect: <T>(props: CProps<IHoverProps & T>) => ReturnEl;\n\nexport { HoverLine, HoverRect };\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Line.d.js","names":[],"sources":["../../../src/types/Line.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IFadeInOutProps } from '@semcore/animation';\n\nexport interface ILineProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Line color\n * @default '#50aef4'*/\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n}\n\nexport interface ILineDotsProps extends IContext, IFadeInOutProps {\n /** Show all Dot */\n display?: boolean;\n /** Hide property */\n hide?: boolean;\n /** Index active of element */\n activeIndex?: number;\n}\n\nexport interface ILineDotsContext {\n /** Value element of data */\n value?: any;\n /** Index element of data */\n index?: number;\n}\n\nexport interface ILineNullProps extends IContext {\n /** Hide property */\n hide?: boolean;\n}\n\ndeclare const Line: (<T>(props: CProps<ILineProps & T>) => ReturnEl) & {\n Dots: <T>(props: CProps<ILineDotsProps & T, ILineDotsContext>) => ReturnEl;\n Null: <T>(props: CProps<ILineNullProps & T>) => ReturnEl;\n};\n\nexport default Line;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plot.d.js","names":[],"sources":["../../../src/types/Plot.d.ts"],"sourcesContent":["import { IBoxProps } from '@semcore/flex-box';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\n\nexport interface IPlotProps extends IContext, IBoxProps {\n /** Width of the svg element\n * @default 0*/\n width?: number;\n /** Height of the svg element\n * @default 0*/\n height?: number;\n /** Human readable chart name (e.g \"Last market trends\") */\n label?: string;\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /** Optional prop to tune up alt text generating for charts */\n a11yAltTextConfig?: PlotSummarizerConfig;\n}\n\nexport type PlotSummarizerConfig = {\n /** Totally disable automatic data summarization */\n disable?: boolean;\n /** Disable automatic data summarization and use provided text */\n override?: string;\n /** Tuning up time series trends analyzing. Represents angle tangens of time series change of different strength */\n trendTangens?: {\n /** Angle tangens of time series that have meaningful trending change\n * @default 1/15\n */\n static?: number;\n /** Angle tangens of time series that have weak trending change\n * @default 1/10\n */\n weak?: number;\n /** Angle tangens of time series that have medium trending change\n * @default 1/5\n */\n medium?: number;\n /** Angle tangens of time series that have strong trending change\n * @default Infinity\n */\n strong?: number;\n };\n /** Tuning up time series local trends detection based on moving averages */\n movingAverage?: {\n /** Frame size of long moving average\n * @default Math.sqrt(data.length)\n */\n longSize?: number;\n /** Frame size of short moving average\n * @default Math.sqrt(data.length)/2\n */\n shortSize?: number;\n /** Absolute difference between values on moving averages crossing to\n * be handled as local trend change.\n * @default StandardDeviation/10\n */\n notableDiff?: number;\n };\n /** The way data to be interpreted as. By default is based on used used Plot elements and data structure.\n */\n dataType?: 'time-series' | 'points-cloud' | 'values-set';\n /** Grid size to split data of point clouds into clusters.\n */\n clustersGridSize?: number;\n /** Limits some output lists in chart alt text\n * @default 100\n * **/\n maxListSymbols?: number;\n /** Always add time to dates in chart alt text **/\n datesWithTime?: boolean;\n /** Described clusters count before text \"and X more\"\n * @default false\n * **/\n clustersLimit?: number;\n /** Described values count before text \"and X more\"\n * @default false\n * **/\n valuesLimit?: number;\n /** Described grouped value groups count before text \"and X more\"\n * @default false\n * **/\n groupsLimit?: number;\n};\n\ndeclare const Plot: <T>(props: CProps<IPlotProps & T>) => ReturnEl;\n\nexport default Plot;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReferenceLine.d.js","names":[],"sources":["../../../src/types/ReferenceLine.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\n\nexport interface IReferenceLineProps extends IContext {\n /** The position of the title relative reference line\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n}\n\nexport interface IReferenceLineTitleProps extends IContext {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n}\n\nexport interface IReferenceLineBackgroundProps extends IContext {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n}\n\ndeclare const ReferenceLine: (<T>(props: CProps<IReferenceLineProps & T>) => ReturnEl) & {\n Title: <T>(props: CProps<IReferenceLineTitleProps & T>) => ReturnEl;\n Background: <T>(props: CProps<IReferenceLineBackgroundProps & T>) => ReturnEl;\n};\n\nexport default ReferenceLine;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponsiveContainer.d.js","names":[],"sources":["../../../src/types/ResponsiveContainer.d.ts"],"sourcesContent":["import { IBoxProps } from '@semcore/flex-box';\nimport { CProps, ReturnEl } from '@semcore/core';\n\nexport interface IResponsiveContainerProps extends IBoxProps {\n /** Relation between height and width dimensions block */\n aspect?: number;\n /** Callback which will be called after changing the block size */\n onResize?: (size: [number, number], entries: ResizeObserverEntry[]) => void;\n}\n\nexport interface IResponsiveContainerContext {\n width?: number;\n height?: number;\n}\n\ndeclare const ResponsiveContainer: <T>(\n props: CProps<IResponsiveContainerProps & T, IResponsiveContainerContext>,\n) => ReturnEl;\n\nexport default ResponsiveContainer;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScatterPlot.d.js","names":[],"sources":["../../../src/types/ScatterPlot.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\n\nexport interface IScatterPlotProps extends IContext {\n /** Field from data for XAxis */\n x: string;\n /** Field from data for YAxis */\n y: string;\n /** Field from data for circle value */\n value?: string;\n /** Circle color */\n color?: string;\n /** Circle value color */\n valueColor?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Radius of circles\n * @default 5.5 or 12 with value\n */\n r?: number;\n}\n\ndeclare const ScatterPlot: <T>(props: CProps<IScatterPlotProps & T>) => ReturnEl;\n\nexport default ScatterPlot;\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackBar.d.js","names":[],"sources":["../../../src/types/StackBar.d.ts"],"sourcesContent":["import { CProps, ReturnEl } from '@semcore/core';\nimport IContext from './context';\nimport { IBarContext, IBarProps } from './Bar';\nimport { IHorizontalBarProps } from './HorizontalBar';\n\nexport interface IStackBarProps extends IContext {\n /** Field from data for XAxis */\n x?: string;\n /** Field from data for YAxis */\n y?: string;\n /** Stack generators\n * @default d3.stack() */\n stack?: any;\n}\n\nexport interface IStackBarContext {\n /** Series is an array of points, where each point corresponds to the element in the input data. */\n series: any[];\n}\n\ndeclare const StackBar: (<T>(props: CProps<IStackBarProps & T, IStackBarContext>) => ReturnEl) & {\n Bar: <T>(props: CProps<IBarProps & T, IBarContext>) => ReturnEl;\n HorizontalBar: <T>(props: CProps<IHorizontalBarProps & T, IBarContext>) => ReturnEl;\n};\n\nexport default StackBar;\n"],"mappings":""}
|