@semcore/d3-chart 17.0.0-prerelease.9 → 17.0.1
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 +20 -1
- package/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +16 -16
- package/lib/cjs/Bar.js +16 -16
- package/lib/cjs/Bubble.js +20 -15
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +16 -16
- package/lib/cjs/Donut.js +9 -9
- package/lib/cjs/Dots.js +8 -8
- package/lib/cjs/HorizontalBar.js +16 -16
- package/lib/cjs/Hover.js +3 -3
- package/lib/cjs/Line.js +9 -9
- package/lib/cjs/Plot.js +2 -2
- package/lib/cjs/Radar.js +19 -19
- package/lib/cjs/RadialTree.js +12 -12
- package/lib/cjs/Reference.js +12 -12
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/Tooltip.js +9 -9
- package/lib/cjs/Venn.js +9 -9
- package/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/lib/cjs/a11y/PlotA11yView.js +7 -7
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.js +9 -21
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +197 -57
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/lib/cjs/style/bubble.shadow.css +4 -0
- package/lib/cjs/utils.js +3 -2
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/Area.js +11 -11
- package/lib/es6/Axis.js +16 -16
- package/lib/es6/Bar.js +16 -16
- package/lib/es6/Bubble.js +20 -15
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +16 -16
- package/lib/es6/Donut.js +9 -9
- package/lib/es6/Dots.js +8 -8
- package/lib/es6/HorizontalBar.js +16 -16
- package/lib/es6/Hover.js +3 -3
- package/lib/es6/Line.js +9 -9
- package/lib/es6/Plot.js +2 -2
- package/lib/es6/Radar.js +19 -19
- package/lib/es6/RadialTree.js +12 -12
- package/lib/es6/Reference.js +12 -12
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/Tooltip.js +9 -9
- package/lib/es6/Venn.js +9 -9
- package/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/lib/es6/a11y/PlotA11yView.js +6 -5
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.js +9 -21
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +199 -59
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/lib/es6/style/bubble.shadow.css +4 -0
- package/lib/es6/utils.js +3 -2
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +1 -1
- package/lib/esm/Area.mjs +14 -14
- package/lib/esm/Axis.mjs +21 -23
- package/lib/esm/Bar.mjs +18 -18
- package/lib/esm/Bubble.mjs +24 -20
- package/lib/esm/CompactHorizontalBar.mjs +21 -20
- package/lib/esm/Donut.mjs +15 -13
- package/lib/esm/Dots.mjs +10 -10
- package/lib/esm/HorizontalBar.mjs +18 -18
- package/lib/esm/Hover.mjs +6 -6
- package/lib/esm/Line.mjs +12 -12
- package/lib/esm/Pattern.mjs +6 -7
- package/lib/esm/Plot.mjs +6 -7
- package/lib/esm/Radar.mjs +27 -29
- package/lib/esm/RadialTree.mjs +30 -75
- package/lib/esm/Reference.mjs +13 -13
- package/lib/esm/ResponsiveContainer.mjs +3 -5
- package/lib/esm/ScatterPlot.mjs +12 -11
- package/lib/esm/StackBar.mjs +2 -2
- package/lib/esm/StackedArea.mjs +2 -2
- package/lib/esm/Tooltip.mjs +15 -17
- package/lib/esm/Venn.mjs +13 -12
- package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -4
- package/lib/esm/a11y/PlotA11yModule.mjs +5 -4
- package/lib/esm/a11y/PlotA11yView.mjs +14 -21
- package/lib/esm/a11y/focus.mjs +2 -2
- package/lib/esm/a11y/hints.mjs +3 -3
- package/lib/esm/a11y/insights.mjs +15 -20
- package/lib/esm/a11y/intl.mjs +1 -1
- package/lib/esm/a11y/locale.mjs +1 -2
- package/lib/esm/a11y/serialize.mjs +17 -17
- package/lib/esm/component/Chart/AbstractChart.mjs +25 -38
- package/lib/esm/component/Chart/AreaChart.mjs +5 -4
- package/lib/esm/component/Chart/BarChart.mjs +4 -3
- package/lib/esm/component/Chart/BubbleChart.mjs +8 -8
- package/lib/esm/component/Chart/CigaretteChart.mjs +204 -64
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +2 -1
- package/lib/esm/component/Chart/DonutChart.mjs +3 -2
- package/lib/esm/component/Chart/HistogramChart.mjs +5 -4
- package/lib/esm/component/Chart/LineChart.mjs +5 -4
- package/lib/esm/component/Chart/RadarChart.mjs +4 -5
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +3 -2
- package/lib/esm/component/Chart/VennChart.mjs +3 -3
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +9 -14
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +6 -6
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +19 -19
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +9 -10
- package/lib/esm/component/ChartLegend/index.mjs +2 -0
- package/lib/esm/component/Cigarette/Cigarette.mjs +1 -2
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +2 -3
- package/lib/esm/createElement.mjs +1 -1
- package/lib/esm/index.mjs +1 -0
- package/lib/esm/style/bubble.shadow.css +4 -0
- package/lib/esm/utils.mjs +3 -3
- package/lib/types/a11y/PlotA11yView.d.ts +1 -1
- package/lib/types/component/Chart/AbstractChart.d.ts +4 -7
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +7 -4
- package/package.json +17 -17
package/lib/esm/Radar.mjs
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
import { sstyled,
|
|
2
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
3
3
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
4
4
|
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
5
5
|
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
6
6
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
7
7
|
import { polygonContains } from "d3-polygon";
|
|
8
|
-
import {
|
|
8
|
+
import { lineRadial, curveLinearClosed, arc, line } from "d3-shape";
|
|
9
9
|
import React, { cloneElement } from "react";
|
|
10
10
|
import createElement from "./createElement.mjs";
|
|
11
|
-
import { getPatternSymbolSize, PatternSymbol
|
|
11
|
+
import { PatternFill, getPatternSymbolSize, PatternSymbol } from "./Pattern.mjs";
|
|
12
12
|
import Tooltip from "./Tooltip.mjs";
|
|
13
|
-
import {
|
|
13
|
+
import { measureText, getChartDefaultColorName, eventToPoint } from "./utils.mjs";
|
|
14
14
|
/*!__reshadow-styles__:"./style/radar.shadow.css"*/
|
|
15
15
|
const style = (
|
|
16
16
|
/*__reshadow_css_start__*/
|
|
17
17
|
(sstyled.insert(
|
|
18
18
|
/*__inner_css_start__*/
|
|
19
|
-
".
|
|
19
|
+
".___SAxisLine_rgkom_gg_,.___SAxisTick_rgkom_gg_,.___SAxis_rgkom_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_rgkom_gg_,.___SAxisTick_rgkom_gg_{stroke-dasharray:2}.___SAxisLine_rgkom_gg_.__active_rgkom_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_rgkom_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_rgkom_gg_.__xDirection_rgkom_gg_{text-anchor:var(--xDirection_rgkom)}.___SAxisLabel_rgkom_gg_.__yDirection_rgkom_gg_{dominant-baseline:var(--yDirection_rgkom)}.___SPolygonDot_rgkom_gg_,.___SPolygon_rgkom_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_rgkom_gg_{opacity:.2}.___SPolygon_rgkom_gg_.__color_rgkom_gg_{fill:var(--color_rgkom)}.___SPolygon_rgkom_gg_.__pattern_rgkom_gg_.__color_rgkom_gg_{fill:var(--pattern_rgkom);stroke:var(--color_rgkom);stroke-width:1px}.___SPolygonDot_rgkom_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_rgkom_gg_.__transparent_rgkom_gg_{opacity:.3}.___SPolygonDot_rgkom_gg_.__color_rgkom_gg_{fill:var(--color_rgkom)}.___SPolygonLine_rgkom_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_rgkom_gg_.__transparent_rgkom_gg_{opacity:.3}.___SPolygonLine_rgkom_gg_.__color_rgkom_gg_{stroke:var(--color_rgkom)}.___SPieRect_rgkom_gg_{outline:0;fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}",
|
|
20
20
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
21
|
+
"rgkom_gg_"
|
|
22
22
|
), /*__reshadow_css_end__*/
|
|
23
23
|
{
|
|
24
|
-
"__SAxis": "
|
|
25
|
-
"__SAxisLine": "
|
|
26
|
-
"__SAxisTick": "
|
|
27
|
-
"_active": "
|
|
28
|
-
"__SAxisLabel": "
|
|
29
|
-
"_xDirection": "
|
|
30
|
-
"--xDirection": "--
|
|
31
|
-
"_yDirection": "
|
|
32
|
-
"--yDirection": "--
|
|
33
|
-
"__SPolygon": "
|
|
34
|
-
"_color": "
|
|
35
|
-
"--color": "--
|
|
36
|
-
"_pattern": "
|
|
37
|
-
"--pattern": "--
|
|
38
|
-
"__SPolygonDot": "
|
|
39
|
-
"_transparent": "
|
|
40
|
-
"__SPolygonLine": "
|
|
41
|
-
"__SPieRect": "
|
|
24
|
+
"__SAxis": "___SAxis_rgkom_gg_",
|
|
25
|
+
"__SAxisLine": "___SAxisLine_rgkom_gg_",
|
|
26
|
+
"__SAxisTick": "___SAxisTick_rgkom_gg_",
|
|
27
|
+
"_active": "__active_rgkom_gg_",
|
|
28
|
+
"__SAxisLabel": "___SAxisLabel_rgkom_gg_",
|
|
29
|
+
"_xDirection": "__xDirection_rgkom_gg_",
|
|
30
|
+
"--xDirection": "--xDirection_rgkom",
|
|
31
|
+
"_yDirection": "__yDirection_rgkom_gg_",
|
|
32
|
+
"--yDirection": "--yDirection_rgkom",
|
|
33
|
+
"__SPolygon": "___SPolygon_rgkom_gg_",
|
|
34
|
+
"_color": "__color_rgkom_gg_",
|
|
35
|
+
"--color": "--color_rgkom",
|
|
36
|
+
"_pattern": "__pattern_rgkom_gg_",
|
|
37
|
+
"--pattern": "--pattern_rgkom",
|
|
38
|
+
"__SPolygonDot": "___SPolygonDot_rgkom_gg_",
|
|
39
|
+
"_transparent": "__transparent_rgkom_gg_",
|
|
40
|
+
"__SPolygonLine": "___SPolygonLine_rgkom_gg_",
|
|
41
|
+
"__SPieRect": "___SPieRect_rgkom_gg_"
|
|
42
42
|
})
|
|
43
43
|
);
|
|
44
44
|
const clampAngle = (angle) => {
|
|
@@ -71,12 +71,11 @@ function getLabelPlacement(i, total, angleOffset) {
|
|
|
71
71
|
}
|
|
72
72
|
function computeTextWidth(texts, textSize, defaultWidth = 50, defaultHeight = 20) {
|
|
73
73
|
const widths = texts.map((text) => {
|
|
74
|
-
var _a, _b;
|
|
75
74
|
if (typeof text === "string") {
|
|
76
75
|
return measureText(text, textSize);
|
|
77
76
|
}
|
|
78
77
|
if (/* @__PURE__ */ React.isValidElement(text)) {
|
|
79
|
-
return Math.max(
|
|
78
|
+
return Math.max(text.props?.width || defaultWidth, text.props?.height || defaultHeight);
|
|
80
79
|
}
|
|
81
80
|
return defaultWidth;
|
|
82
81
|
});
|
|
@@ -506,8 +505,7 @@ class AxisRoot extends Component {
|
|
|
506
505
|
this.unsubscribeTooltipVisible = eventEmitter.subscribe("setTooltipRenderingProps", this.handleTooltipRenderingProps);
|
|
507
506
|
}
|
|
508
507
|
componentWillUnmount() {
|
|
509
|
-
|
|
510
|
-
(_a = this.unsubscribeTooltipVisible) == null ? void 0 : _a.call(this);
|
|
508
|
+
this.unsubscribeTooltipVisible?.();
|
|
511
509
|
}
|
|
512
510
|
render() {
|
|
513
511
|
var _ref7;
|
|
@@ -626,7 +624,7 @@ function AxisLabels(props) {
|
|
|
626
624
|
const {
|
|
627
625
|
width = 0,
|
|
628
626
|
height = 0
|
|
629
|
-
} =
|
|
627
|
+
} = category?.props ?? {};
|
|
630
628
|
const [xOffset, yOffset] = getLabelOffsetPosition(xDirection, yDirection, width, height);
|
|
631
629
|
return /* @__PURE__ */ cloneElement(category, {
|
|
632
630
|
key: i,
|
package/lib/esm/RadialTree.mjs
CHANGED
|
@@ -14,22 +14,22 @@ const style = (
|
|
|
14
14
|
/*__reshadow_css_start__*/
|
|
15
15
|
(sstyled.insert(
|
|
16
16
|
/*__inner_css_start__*/
|
|
17
|
-
".
|
|
17
|
+
".___SRadian_1xb4i_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1xb4i_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1xb4i_gg_.__stroke_1xb4i_gg_{stroke:var(--stroke_1xb4i)}.___SLine_1xb4i_gg_.__transparent_1xb4i_gg_{opacity:.3}.___SCap_1xb4i_gg_{transition:r .1s}.___SCap_1xb4i_gg_.__pattern_1xb4i_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_1xb4i_gg_.__transparent_1xb4i_gg_,.___SIcon_1xb4i_gg_.__transparent_1xb4i_gg_,.___SLabel_1xb4i_gg_.__transparent_1xb4i_gg_{opacity:.3}.___SLabel_1xb4i_gg_{fill:var(--color_1xb4i)}@media (hover:hover){.___SRadian_1xb4i_gg_:hover .___SLabel_1xb4i_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1xb4i_gg_{transition:none}}",
|
|
18
18
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
19
|
+
"1xb4i_gg_"
|
|
20
20
|
), /*__reshadow_css_end__*/
|
|
21
21
|
{
|
|
22
|
-
"__SRadian": "
|
|
23
|
-
"__SLine": "
|
|
24
|
-
"_stroke": "
|
|
25
|
-
"--stroke": "--
|
|
26
|
-
"_transparent": "
|
|
27
|
-
"__SCap": "
|
|
28
|
-
"_pattern": "
|
|
29
|
-
"__SIcon": "
|
|
30
|
-
"__SLabel": "
|
|
31
|
-
"--color": "--
|
|
32
|
-
"__SLineCap": "
|
|
22
|
+
"__SRadian": "___SRadian_1xb4i_gg_",
|
|
23
|
+
"__SLine": "___SLine_1xb4i_gg_",
|
|
24
|
+
"_stroke": "__stroke_1xb4i_gg_",
|
|
25
|
+
"--stroke": "--stroke_1xb4i",
|
|
26
|
+
"_transparent": "__transparent_1xb4i_gg_",
|
|
27
|
+
"__SCap": "___SCap_1xb4i_gg_",
|
|
28
|
+
"_pattern": "__pattern_1xb4i_gg_",
|
|
29
|
+
"__SIcon": "___SIcon_1xb4i_gg_",
|
|
30
|
+
"__SLabel": "___SLabel_1xb4i_gg_",
|
|
31
|
+
"--color": "--color_1xb4i",
|
|
32
|
+
"__SLineCap": "___SLineCap_1xb4i_gg_"
|
|
33
33
|
})
|
|
34
34
|
);
|
|
35
35
|
const baseAngle = -Math.PI / 2;
|
|
@@ -45,13 +45,12 @@ class RadialTreeBase extends Component {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
runAppearAnimation() {
|
|
48
|
-
var _a;
|
|
49
48
|
const {
|
|
50
49
|
duration,
|
|
51
50
|
uid
|
|
52
51
|
} = this.asProps;
|
|
53
52
|
if (!canUseDOM()) return;
|
|
54
|
-
const preferReduceMotion =
|
|
53
|
+
const preferReduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)")?.matches;
|
|
55
54
|
if (!(duration > 0)) return;
|
|
56
55
|
if (preferReduceMotion) return;
|
|
57
56
|
const circlesAnimation = transition().selection().selectAll(`[data-radial-animation=${uid}-cap-circle]`).interrupt();
|
|
@@ -64,13 +63,12 @@ class RadialTreeBase extends Component {
|
|
|
64
63
|
const labelsNodes = linesAnimation.nodes();
|
|
65
64
|
if (circlesNodes.length > 0) {
|
|
66
65
|
const attrs = circlesNodes.map((node) => {
|
|
67
|
-
var _a2, _b, _c, _d;
|
|
68
66
|
const radianIndex = Number.parseInt(node.dataset.radianIndex, 10);
|
|
69
67
|
const lineNode = linesNodes[radianIndex];
|
|
70
68
|
return {
|
|
71
69
|
from: {
|
|
72
|
-
cx:
|
|
73
|
-
cy:
|
|
70
|
+
cx: lineNode.x1?.baseVal?.value,
|
|
71
|
+
cy: lineNode.y1?.baseVal?.value
|
|
74
72
|
},
|
|
75
73
|
to: {
|
|
76
74
|
cx: node.dataset["cx"],
|
|
@@ -78,31 +76,18 @@ class RadialTreeBase extends Component {
|
|
|
78
76
|
}
|
|
79
77
|
};
|
|
80
78
|
});
|
|
81
|
-
circlesAnimation.attr("opacity", 0).attr("cx", (_, index) =>
|
|
82
|
-
var _a2;
|
|
83
|
-
return (_a2 = attrs[index].from) == null ? void 0 : _a2.cx;
|
|
84
|
-
}).attr("cy", (_, index) => {
|
|
85
|
-
var _a2;
|
|
86
|
-
return (_a2 = attrs[index].from) == null ? void 0 : _a2.cy;
|
|
87
|
-
}).transition().duration(duration).attr("opacity", 1).attr("cx", (_, index) => {
|
|
88
|
-
var _a2;
|
|
89
|
-
return (_a2 = attrs[index].to) == null ? void 0 : _a2.cx;
|
|
90
|
-
}).attr("cy", (_, index) => {
|
|
91
|
-
var _a2;
|
|
92
|
-
return (_a2 = attrs[index].to) == null ? void 0 : _a2.cy;
|
|
93
|
-
});
|
|
79
|
+
circlesAnimation.attr("opacity", 0).attr("cx", (_, index) => attrs[index].from?.cx).attr("cy", (_, index) => attrs[index].from?.cy).transition().duration(duration).attr("opacity", 1).attr("cx", (_, index) => attrs[index].to?.cx).attr("cy", (_, index) => attrs[index].to?.cy);
|
|
94
80
|
}
|
|
95
81
|
if (iconsNodes.length > 0) {
|
|
96
82
|
const attrs = iconsNodes.map((node) => {
|
|
97
|
-
|
|
98
|
-
const
|
|
99
|
-
const height = (_d = (_c = node.height) == null ? void 0 : _c.baseVal) == null ? void 0 : _d.value;
|
|
83
|
+
const width = node.width?.baseVal?.value;
|
|
84
|
+
const height = node.height?.baseVal?.value;
|
|
100
85
|
const radianIndex = Number.parseInt(node.dataset.radianIndex, 10);
|
|
101
86
|
const lineNode = linesNodes[radianIndex];
|
|
102
87
|
return {
|
|
103
88
|
from: {
|
|
104
|
-
x:
|
|
105
|
-
y:
|
|
89
|
+
x: lineNode.x1?.baseVal?.value - width / 2,
|
|
90
|
+
y: lineNode.y1?.baseVal?.value - height / 2
|
|
106
91
|
},
|
|
107
92
|
to: {
|
|
108
93
|
x: node.dataset["x"],
|
|
@@ -110,27 +95,14 @@ class RadialTreeBase extends Component {
|
|
|
110
95
|
}
|
|
111
96
|
};
|
|
112
97
|
});
|
|
113
|
-
iconsAnimation.attr("opacity", 0).attr("x", (_, index) =>
|
|
114
|
-
var _a2;
|
|
115
|
-
return (_a2 = attrs[index].from) == null ? void 0 : _a2.x;
|
|
116
|
-
}).attr("y", (_, index) => {
|
|
117
|
-
var _a2;
|
|
118
|
-
return (_a2 = attrs[index].from) == null ? void 0 : _a2.y;
|
|
119
|
-
}).transition().duration(duration).attr("opacity", 1).attr("x", (_, index) => {
|
|
120
|
-
var _a2;
|
|
121
|
-
return (_a2 = attrs[index].to) == null ? void 0 : _a2.x;
|
|
122
|
-
}).attr("y", (_, index) => {
|
|
123
|
-
var _a2;
|
|
124
|
-
return (_a2 = attrs[index].to) == null ? void 0 : _a2.y;
|
|
125
|
-
});
|
|
98
|
+
iconsAnimation.attr("opacity", 0).attr("x", (_, index) => attrs[index].from?.x).attr("y", (_, index) => attrs[index].from?.y).transition().duration(duration).attr("opacity", 1).attr("x", (_, index) => attrs[index].to?.x).attr("y", (_, index) => attrs[index].to?.y);
|
|
126
99
|
}
|
|
127
100
|
if (linesNodes.length > 0) {
|
|
128
101
|
const attrs = linesNodes.map((node) => {
|
|
129
|
-
var _a2, _b, _c, _d;
|
|
130
102
|
return {
|
|
131
103
|
from: {
|
|
132
|
-
x2:
|
|
133
|
-
y2:
|
|
104
|
+
x2: node.x1?.baseVal?.value,
|
|
105
|
+
y2: node.y1?.baseVal?.value
|
|
134
106
|
},
|
|
135
107
|
to: {
|
|
136
108
|
x2: node.dataset["x2"],
|
|
@@ -138,19 +110,7 @@ class RadialTreeBase extends Component {
|
|
|
138
110
|
}
|
|
139
111
|
};
|
|
140
112
|
});
|
|
141
|
-
linesAnimation.attr("opacity", 0).attr("x2", (_, index) =>
|
|
142
|
-
var _a2;
|
|
143
|
-
return (_a2 = attrs[index].from) == null ? void 0 : _a2.x2;
|
|
144
|
-
}).attr("y2", (_, index) => {
|
|
145
|
-
var _a2;
|
|
146
|
-
return (_a2 = attrs[index].from) == null ? void 0 : _a2.y2;
|
|
147
|
-
}).transition().duration(duration).attr("opacity", 1).attr("x2", (_, index) => {
|
|
148
|
-
var _a2;
|
|
149
|
-
return (_a2 = attrs[index].to) == null ? void 0 : _a2.x2;
|
|
150
|
-
}).attr("y2", (_, index) => {
|
|
151
|
-
var _a2;
|
|
152
|
-
return (_a2 = attrs[index].to) == null ? void 0 : _a2.y2;
|
|
153
|
-
});
|
|
113
|
+
linesAnimation.attr("opacity", 0).attr("x2", (_, index) => attrs[index].from?.x2).attr("y2", (_, index) => attrs[index].from?.y2).transition().duration(duration).attr("opacity", 1).attr("x2", (_, index) => attrs[index].to?.x2).attr("y2", (_, index) => attrs[index].to?.y2);
|
|
154
114
|
}
|
|
155
115
|
if (labelsNodes.length > 0) {
|
|
156
116
|
labelsAnimation.attr("opacity", 0);
|
|
@@ -246,8 +206,7 @@ class RadialTreeRadian extends Component {
|
|
|
246
206
|
getInteractiveAreaProps({
|
|
247
207
|
$rootProps
|
|
248
208
|
}, index) {
|
|
249
|
-
|
|
250
|
-
const data = (_a = $rootProps.data) == null ? void 0 : _a[index];
|
|
209
|
+
const data = $rootProps.data?.[index];
|
|
251
210
|
const {
|
|
252
211
|
xStart,
|
|
253
212
|
yStart,
|
|
@@ -266,8 +225,7 @@ class RadialTreeRadian extends Component {
|
|
|
266
225
|
getLineProps({
|
|
267
226
|
$rootProps
|
|
268
227
|
}, index) {
|
|
269
|
-
|
|
270
|
-
const data = (_a = $rootProps.data) == null ? void 0 : _a[index];
|
|
228
|
+
const data = $rootProps.data?.[index];
|
|
271
229
|
const {
|
|
272
230
|
xStart,
|
|
273
231
|
yStart,
|
|
@@ -299,8 +257,7 @@ class RadialTreeRadian extends Component {
|
|
|
299
257
|
getCapProps({
|
|
300
258
|
$rootProps
|
|
301
259
|
}, index) {
|
|
302
|
-
|
|
303
|
-
const data = (_a = $rootProps.data) == null ? void 0 : _a[index];
|
|
260
|
+
const data = $rootProps.data?.[index];
|
|
304
261
|
const {
|
|
305
262
|
xEnd,
|
|
306
263
|
yEnd,
|
|
@@ -331,8 +288,7 @@ class RadialTreeRadian extends Component {
|
|
|
331
288
|
getIconProps({
|
|
332
289
|
$rootProps
|
|
333
290
|
}, index) {
|
|
334
|
-
|
|
335
|
-
const data = (_a = $rootProps.data) == null ? void 0 : _a[index];
|
|
291
|
+
const data = $rootProps.data?.[index];
|
|
336
292
|
const {
|
|
337
293
|
xEnd,
|
|
338
294
|
yEnd,
|
|
@@ -365,8 +321,7 @@ class RadialTreeRadian extends Component {
|
|
|
365
321
|
getLabelProps({
|
|
366
322
|
$rootProps
|
|
367
323
|
}, index) {
|
|
368
|
-
|
|
369
|
-
const data = (_a = $rootProps.data) == null ? void 0 : _a[index];
|
|
324
|
+
const data = $rootProps.data?.[index];
|
|
370
325
|
const {
|
|
371
326
|
xLabelCenter,
|
|
372
327
|
yLabelCenter,
|
package/lib/esm/Reference.mjs
CHANGED
|
@@ -9,22 +9,22 @@ const style = (
|
|
|
9
9
|
/*__reshadow_css_start__*/
|
|
10
10
|
(sstyled.insert(
|
|
11
11
|
/*__inner_css_start__*/
|
|
12
|
-
".
|
|
12
|
+
".___SReferenceLine_112b5_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___STitle_112b5_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_112b5)}.___STitle_112b5_gg_._position_top_112b5_gg_{text-anchor:middle}.___STitle_112b5_gg_._position_bottom_112b5_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_112b5_gg_._position_left_112b5_gg_,.___STitle_112b5_gg_._position_right_112b5_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_112b5_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}.___SStripes_112b5_gg_{fill:var(--fill_112b5)}.___SStripesPatternPath_112b5_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));stroke-width:1px}",
|
|
13
13
|
/*__inner_css_end__*/
|
|
14
|
-
"
|
|
14
|
+
"112b5_gg_"
|
|
15
15
|
), /*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SReferenceLine": "
|
|
18
|
-
"__STitle": "
|
|
19
|
-
"--transform-origin": "--transform-
|
|
20
|
-
"_position_top": "
|
|
21
|
-
"_position_bottom": "
|
|
22
|
-
"_position_right": "
|
|
23
|
-
"_position_left": "
|
|
24
|
-
"__SBackground": "
|
|
25
|
-
"__SStripes": "
|
|
26
|
-
"--fill": "--
|
|
27
|
-
"__SStripesPatternPath": "
|
|
17
|
+
"__SReferenceLine": "___SReferenceLine_112b5_gg_",
|
|
18
|
+
"__STitle": "___STitle_112b5_gg_",
|
|
19
|
+
"--transform-origin": "--transform-origin_112b5",
|
|
20
|
+
"_position_top": "_position_top_112b5_gg_",
|
|
21
|
+
"_position_bottom": "_position_bottom_112b5_gg_",
|
|
22
|
+
"_position_right": "_position_right_112b5_gg_",
|
|
23
|
+
"_position_left": "_position_left_112b5_gg_",
|
|
24
|
+
"__SBackground": "___SBackground_112b5_gg_",
|
|
25
|
+
"__SStripes": "___SStripes_112b5_gg_",
|
|
26
|
+
"--fill": "--fill_112b5",
|
|
27
|
+
"__SStripesPatternPath": "___SStripesPatternPath_112b5_gg_"
|
|
28
28
|
})
|
|
29
29
|
);
|
|
30
30
|
const side2direction = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
import {
|
|
2
|
+
import { Component, sstyled, assignProps, createComponent } from "@semcore/core";
|
|
3
3
|
import { Box } from "@semcore/base-components";
|
|
4
4
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
5
5
|
import fire from "@semcore/core/lib/utils/fire";
|
|
@@ -55,15 +55,13 @@ class ResponsiveContainerRoot extends Component {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
componentDidMount() {
|
|
58
|
-
var _a;
|
|
59
58
|
if (this.$container) {
|
|
60
|
-
|
|
59
|
+
this.observer?.observe(this.$container);
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
// TODO component did update ref?
|
|
64
63
|
componentWillUnmount() {
|
|
65
|
-
|
|
66
|
-
(_a = this.observer) == null ? void 0 : _a.disconnect();
|
|
64
|
+
this.observer?.disconnect();
|
|
67
65
|
}
|
|
68
66
|
render() {
|
|
69
67
|
var _ref = this.asProps, _ref2;
|
package/lib/esm/ScatterPlot.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
import { sstyled,
|
|
2
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
3
3
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
4
4
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
5
5
|
import { transition } from "d3-transition";
|
|
@@ -13,19 +13,19 @@ const style = (
|
|
|
13
13
|
/*__reshadow_css_start__*/
|
|
14
14
|
(sstyled.insert(
|
|
15
15
|
/*__inner_css_start__*/
|
|
16
|
-
".
|
|
16
|
+
".___SScatterPlot_1fqya_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_1fqya);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_1fqya_gg_:hover{opacity:.8}}.___SScatterPlot_1fqya_gg_.__color_1fqya_gg_{fill:var(--color_1fqya)}.___SScatterPlot_1fqya_gg_.__pattern_1fqya_gg_.__color_1fqya_gg_{fill:var(--pattern_1fqya);stroke:var(--color_1fqya);stroke-width:1px}.___SScatterPlot_1fqya_gg_.__transparent_1fqya_gg_{opacity:.3}.___SValue_1fqya_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_1fqya_gg_.__color_1fqya_gg_{stroke:var(--color_1fqya)}.___SValue_1fqya_gg_.__transparent_1fqya_gg_{opacity:.3}",
|
|
17
17
|
/*__inner_css_end__*/
|
|
18
|
-
"
|
|
18
|
+
"1fqya_gg_"
|
|
19
19
|
), /*__reshadow_css_end__*/
|
|
20
20
|
{
|
|
21
|
-
"__SScatterPlot": "
|
|
22
|
-
"_color": "
|
|
23
|
-
"--color": "--
|
|
24
|
-
"_pattern": "
|
|
25
|
-
"--pattern": "--
|
|
26
|
-
"_transparent": "
|
|
27
|
-
"__SValue": "
|
|
28
|
-
"--duration": "--
|
|
21
|
+
"__SScatterPlot": "___SScatterPlot_1fqya_gg_",
|
|
22
|
+
"_color": "__color_1fqya_gg_",
|
|
23
|
+
"--color": "--color_1fqya",
|
|
24
|
+
"_pattern": "__pattern_1fqya_gg_",
|
|
25
|
+
"--pattern": "--pattern_1fqya",
|
|
26
|
+
"_transparent": "__transparent_1fqya_gg_",
|
|
27
|
+
"__SValue": "___SValue_1fqya_gg_",
|
|
28
|
+
"--duration": "--duration_1fqya"
|
|
29
29
|
})
|
|
30
30
|
);
|
|
31
31
|
class ScatterPlotRoot extends Component {
|
|
@@ -195,6 +195,7 @@ function ScatterPlotTooltip(props) {
|
|
|
195
195
|
}, _ref)
|
|
196
196
|
}));
|
|
197
197
|
}
|
|
198
|
+
;
|
|
198
199
|
const ScatterPlot = createElement(ScatterPlotRoot, {
|
|
199
200
|
Tooltip: [ScatterPlotTooltip, Tooltip._______childrenComponents]
|
|
200
201
|
});
|
package/lib/esm/StackBar.mjs
CHANGED
|
@@ -7,8 +7,8 @@ import Bar, { MIN_HEIGHT } from "./Bar.mjs";
|
|
|
7
7
|
import createElement from "./createElement.mjs";
|
|
8
8
|
import HorizontalBar, { MIN_WIDTH } from "./HorizontalBar.mjs";
|
|
9
9
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
10
|
-
const DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
11
|
-
const XY0 = Symbol("XY0");
|
|
10
|
+
const DEFAULT_INSTANCE = /* @__PURE__ */ Symbol("DEFAULT_INSTANCE");
|
|
11
|
+
const XY0 = /* @__PURE__ */ Symbol("XY0");
|
|
12
12
|
class StackBarRoot extends Component {
|
|
13
13
|
constructor(...args) {
|
|
14
14
|
super(...args);
|
package/lib/esm/StackedArea.mjs
CHANGED
|
@@ -6,8 +6,8 @@ import React from "react";
|
|
|
6
6
|
import Area from "./Area.mjs";
|
|
7
7
|
import createElement from "./createElement.mjs";
|
|
8
8
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
9
|
-
const DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
10
|
-
const Y0 = Symbol("Y0");
|
|
9
|
+
const DEFAULT_INSTANCE = /* @__PURE__ */ Symbol("DEFAULT_INSTANCE");
|
|
10
|
+
const Y0 = /* @__PURE__ */ Symbol("Y0");
|
|
11
11
|
class StackedAreaRoot extends Component {
|
|
12
12
|
getSeries() {
|
|
13
13
|
const {
|
package/lib/esm/Tooltip.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
-
import { sstyled,
|
|
3
|
-
import {
|
|
2
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
3
|
+
import { Popper, Box } from "@semcore/base-components";
|
|
4
4
|
import findComponent from "@semcore/core/lib/utils/findComponent";
|
|
5
5
|
import { useColorResolver } from "@semcore/core/lib/utils/use/useColorResolver";
|
|
6
6
|
import React from "react";
|
|
@@ -12,19 +12,19 @@ const style = (
|
|
|
12
12
|
/*__reshadow_css_start__*/
|
|
13
13
|
(sstyled.insert(
|
|
14
14
|
/*__inner_css_start__*/
|
|
15
|
-
".
|
|
15
|
+
".___STooltip_942l4_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_942l4_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_942l4_gg_{display:flex;align-items:center}.___SDot_942l4_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_942l4_gg_.__color_942l4_gg_{background-color:var(--color_942l4);width:8px;height:8px;border-radius:50%}.___SFooter_942l4_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}",
|
|
16
16
|
/*__inner_css_end__*/
|
|
17
|
-
"
|
|
17
|
+
"942l4_gg_"
|
|
18
18
|
), /*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__STooltip": "
|
|
21
|
-
"__STitle": "
|
|
22
|
-
"__SDotGroup": "
|
|
23
|
-
"__SDot": "
|
|
24
|
-
"__SDotCircle": "
|
|
25
|
-
"_color": "
|
|
26
|
-
"--color": "--
|
|
27
|
-
"__SFooter": "
|
|
20
|
+
"__STooltip": "___STooltip_942l4_gg_",
|
|
21
|
+
"__STitle": "___STitle_942l4_gg_",
|
|
22
|
+
"__SDotGroup": "___SDotGroup_942l4_gg_",
|
|
23
|
+
"__SDot": "___SDot_942l4_gg_",
|
|
24
|
+
"__SDotCircle": "___SDotCircle_942l4_gg_",
|
|
25
|
+
"_color": "__color_942l4_gg_",
|
|
26
|
+
"--color": "--color_942l4",
|
|
27
|
+
"__SFooter": "___SFooter_942l4_gg_"
|
|
28
28
|
})
|
|
29
29
|
);
|
|
30
30
|
const TooltipDotRenderContext = /* @__PURE__ */ React.createContext({
|
|
@@ -59,7 +59,7 @@ class TooltipRoot extends Component {
|
|
|
59
59
|
yIndex
|
|
60
60
|
} = this.state.tooltipProps;
|
|
61
61
|
const index = xIndex ?? yIndex;
|
|
62
|
-
onClick
|
|
62
|
+
onClick?.(index, e);
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
getTriggerProps() {
|
|
@@ -100,7 +100,6 @@ class TooltipRoot extends Component {
|
|
|
100
100
|
}), eventEmitter.subscribe(`setTooltipVisible_${plotId}`, (visible) => this.setState({
|
|
101
101
|
$visible: visible
|
|
102
102
|
})), eventEmitter.subscribe(`setTooltipPosition_${plotId}`, (x, y) => {
|
|
103
|
-
var _a;
|
|
104
103
|
this.virtualElementPosition.x = x;
|
|
105
104
|
this.virtualElementPosition.y = y;
|
|
106
105
|
if (this.virtualTriggerElement === null) {
|
|
@@ -123,7 +122,7 @@ class TooltipRoot extends Component {
|
|
|
123
122
|
left: x2
|
|
124
123
|
};
|
|
125
124
|
};
|
|
126
|
-
|
|
125
|
+
this.popper.current?.update();
|
|
127
126
|
}));
|
|
128
127
|
}
|
|
129
128
|
componentWillUnmount() {
|
|
@@ -159,10 +158,9 @@ class TooltipRoot extends Component {
|
|
|
159
158
|
popper,
|
|
160
159
|
setTrigger
|
|
161
160
|
}) => {
|
|
162
|
-
var _a;
|
|
163
161
|
this.setPopperTrigger = setTrigger;
|
|
164
162
|
this.popper = popper;
|
|
165
|
-
|
|
163
|
+
this.popper.current?.update();
|
|
166
164
|
return advancedMode ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, tag && /* @__PURE__ */ React.createElement(Tooltip.Trigger, {
|
|
167
165
|
tag,
|
|
168
166
|
onClick: this.handleTriggerClick
|
package/lib/esm/Venn.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import { sstyled,
|
|
3
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
4
4
|
import { FadeInOut } from "@semcore/base-components";
|
|
5
5
|
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
6
6
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
7
7
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
8
|
-
import {
|
|
8
|
+
import { scaleSolution, normalizeSolution, venn, intersectionAreaPath } from "@upsetjs/venn.js";
|
|
9
9
|
import React from "react";
|
|
10
10
|
import createElement from "./createElement.mjs";
|
|
11
11
|
import { PatternFill } from "./Pattern.mjs";
|
|
@@ -16,19 +16,19 @@ const style = (
|
|
|
16
16
|
/*__reshadow_css_start__*/
|
|
17
17
|
(sstyled.insert(
|
|
18
18
|
/*__inner_css_start__*/
|
|
19
|
-
".
|
|
19
|
+
".___SCircle_1pi5b_gg_,.___SIntersection_1pi5b_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_1pi5b_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1pi5b);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_1pi5b_gg_:hover{fill-opacity:.7}}.___SCircle_1pi5b_gg_.__color_1pi5b_gg_{fill:var(--color_1pi5b)}.___SCircle_1pi5b_gg_.__pattern_1pi5b_gg_.__color_1pi5b_gg_{fill:var(--pattern_1pi5b);fill-opacity:.7;stroke:var(--color_1pi5b);stroke-width:1px}@media (hover:hover){.___SCircle_1pi5b_gg_.__pattern_1pi5b_gg_.__color_1pi5b_gg_:hover{fill-opacity:.85}}.___SCircle_1pi5b_gg_.__transparent_1pi5b_gg_{opacity:.3}.___SIntersection_1pi5b_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_1pi5b_gg_:hover{fill-opacity:.1}}.___SIntersection_1pi5b_gg_.__transparent_1pi5b_gg_{opacity:.3}",
|
|
20
20
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
21
|
+
"1pi5b_gg_"
|
|
22
22
|
), /*__reshadow_css_end__*/
|
|
23
23
|
{
|
|
24
|
-
"__SCircle": "
|
|
25
|
-
"_color": "
|
|
26
|
-
"--color": "--
|
|
27
|
-
"_transparent": "
|
|
28
|
-
"__SIntersection": "
|
|
29
|
-
"--duration": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
24
|
+
"__SCircle": "___SCircle_1pi5b_gg_",
|
|
25
|
+
"_color": "__color_1pi5b_gg_",
|
|
26
|
+
"--color": "--color_1pi5b",
|
|
27
|
+
"_transparent": "__transparent_1pi5b_gg_",
|
|
28
|
+
"__SIntersection": "___SIntersection_1pi5b_gg_",
|
|
29
|
+
"--duration": "--duration_1pi5b",
|
|
30
|
+
"_pattern": "__pattern_1pi5b_gg_",
|
|
31
|
+
"--pattern": "--pattern_1pi5b"
|
|
32
32
|
})
|
|
33
33
|
);
|
|
34
34
|
class VennRoot extends Component {
|
|
@@ -243,6 +243,7 @@ function VennTooltip(props) {
|
|
|
243
243
|
}, _ref)
|
|
244
244
|
}));
|
|
245
245
|
}
|
|
246
|
+
;
|
|
246
247
|
const Venn = createElement(VennRoot, {
|
|
247
248
|
Circle,
|
|
248
249
|
Intersection,
|
|
@@ -38,8 +38,7 @@ const DataAccessibilityTable = ({
|
|
|
38
38
|
return doublicated;
|
|
39
39
|
}, [keys, hints]);
|
|
40
40
|
const renderTitle = React.useCallback((dataKey) => {
|
|
41
|
-
|
|
42
|
-
const formatted = (_a = config.titlesFormatter) == null ? void 0 : _a.call(config, dataKey);
|
|
41
|
+
const formatted = config.titlesFormatter?.(dataKey);
|
|
43
42
|
if (formatted !== void 0) return formatted;
|
|
44
43
|
if (hints.titles.valuesAxes[dataKey]) return hints.titles.valuesAxes[dataKey];
|
|
45
44
|
if (!duplicatedBaseKeys[dataKey]) {
|
|
@@ -49,8 +48,7 @@ const DataAccessibilityTable = ({
|
|
|
49
48
|
return dataKey;
|
|
50
49
|
}, [data, hints, duplicatedBaseKeys, config]);
|
|
51
50
|
const formatValue = React.useCallback((value, row) => {
|
|
52
|
-
|
|
53
|
-
return ((_a = config.valuesFormatter) == null ? void 0 : _a.call(config, value, row)) ?? defaultValueFormatter(intl, value);
|
|
51
|
+
return config.valuesFormatter?.(value, row) ?? defaultValueFormatter(intl, value);
|
|
54
52
|
}, [intl, config]);
|
|
55
53
|
return /* @__PURE__ */ React.createElement("table", {
|
|
56
54
|
id: `${id}-data-table`,
|
|
@@ -10,12 +10,12 @@ const styles = (
|
|
|
10
10
|
/*__reshadow_css_start__*/
|
|
11
11
|
(sstyled.insert(
|
|
12
12
|
/*__inner_css_start__*/
|
|
13
|
-
".
|
|
13
|
+
".___SPlotA11yModule_1t4qj_gg_{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0,}",
|
|
14
14
|
/*__inner_css_end__*/
|
|
15
|
-
"
|
|
15
|
+
"1t4qj_gg_"
|
|
16
16
|
), /*__reshadow_css_end__*/
|
|
17
17
|
{
|
|
18
|
-
"__SPlotA11yModule": "
|
|
18
|
+
"__SPlotA11yModule": "___SPlotA11yModule_1t4qj_gg_"
|
|
19
19
|
})
|
|
20
20
|
);
|
|
21
21
|
function PlotA11yModule(props) {
|
|
@@ -49,7 +49,8 @@ function PlotA11yModule(props) {
|
|
|
49
49
|
});
|
|
50
50
|
}, [plotA11yView, isOpened, loading, setLoading]);
|
|
51
51
|
if (plotA11yView) {
|
|
52
|
-
|
|
52
|
+
var _ref2;
|
|
53
|
+
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(plotA11yView.Component, _extends({}, props, {
|
|
53
54
|
onCloseHandler: () => {
|
|
54
55
|
setIsOpened(false);
|
|
55
56
|
setPlotA11yView(null);
|