@semcore/d3-chart 17.3.1 → 18.0.0-prerelease.0
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 +6 -0
- package/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +55 -58
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +16 -16
- package/lib/cjs/Bubble.js +14 -14
- package/lib/cjs/CompactHorizontalBar.js +16 -16
- package/lib/cjs/Donut.js +9 -9
- package/lib/cjs/Dots.js +14 -11
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +16 -16
- package/lib/cjs/Hover.js +158 -39
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +9 -9
- package/lib/cjs/Plot.js +6 -4
- package/lib/cjs/Plot.js.map +1 -1
- 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 +20 -11
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +9 -9
- package/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/lib/cjs/component/Chart/AbstractChart.js +139 -50
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js +12 -10
- package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.js +9 -7
- package/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.js +21 -8
- package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +33 -30
- 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/Chart/CompactHorizontalBarChart.js +2 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +5 -4
- package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.js +6 -4
- package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.js +9 -7
- package/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.js +3 -2
- package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.js +19 -7
- package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.js +6 -5
- package/lib/cjs/component/Chart/VennChart.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +4 -2
- package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/cjs/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +23 -18
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +12 -8
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/legend-table.shadow.css +6 -2
- package/lib/cjs/style/abstract-chart.shadow.css +31 -1
- package/lib/cjs/style/area.shadow.css +6 -5
- package/lib/cjs/style/axis.shadow.css +2 -2
- package/lib/cjs/style/bar.shadow.css +7 -7
- package/lib/cjs/style/bubble.shadow.css +4 -4
- package/lib/cjs/style/donut.shadow.css +3 -3
- package/lib/cjs/style/dot.shadow.css +9 -3
- package/lib/cjs/style/hover.shadow.css +19 -1
- package/lib/cjs/style/line.shadow.css +4 -4
- package/lib/cjs/style/radar.shadow.css +5 -5
- package/lib/cjs/style/radial-tree.shadow.css +3 -3
- package/lib/cjs/style/reference.shadow.css +1 -1
- package/lib/cjs/style/scatterplot.shadow.css +1 -1
- package/lib/cjs/style/tooltip.shadow.css +23 -14
- package/lib/cjs/style/venn.shadow.css +3 -3
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/utils/TextMeasurer.js +33 -0
- package/lib/cjs/utils/TextMeasurer.js.map +1 -0
- package/lib/es6/Area.js +11 -11
- package/lib/es6/Axis.js +55 -57
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +16 -16
- package/lib/es6/Bubble.js +14 -14
- package/lib/es6/CompactHorizontalBar.js +16 -16
- package/lib/es6/Donut.js +9 -9
- package/lib/es6/Dots.js +14 -11
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/HorizontalBar.js +16 -16
- package/lib/es6/Hover.js +158 -39
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +9 -9
- package/lib/es6/Plot.js +6 -4
- package/lib/es6/Plot.js.map +1 -1
- 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 +20 -11
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +9 -9
- package/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/lib/es6/a11y/PlotA11yView.js +2 -2
- package/lib/es6/component/Chart/AbstractChart.js +136 -48
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js +12 -10
- package/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.js +9 -7
- package/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.js +22 -9
- package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +33 -30
- 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/Chart/CompactHorizontalBarChart.js +2 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +5 -4
- package/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.js +6 -4
- package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.js +9 -7
- package/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.js +3 -2
- package/lib/es6/component/Chart/RadarChart.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.js +20 -8
- package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.js +6 -5
- package/lib/es6/component/Chart/VennChart.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +4 -2
- package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/es6/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +23 -18
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +12 -8
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/legend-table.shadow.css +6 -2
- package/lib/es6/style/abstract-chart.shadow.css +31 -1
- package/lib/es6/style/area.shadow.css +6 -5
- package/lib/es6/style/axis.shadow.css +2 -2
- package/lib/es6/style/bar.shadow.css +7 -7
- package/lib/es6/style/bubble.shadow.css +4 -4
- package/lib/es6/style/donut.shadow.css +3 -3
- package/lib/es6/style/dot.shadow.css +9 -3
- package/lib/es6/style/hover.shadow.css +19 -1
- package/lib/es6/style/line.shadow.css +4 -4
- package/lib/es6/style/radar.shadow.css +5 -5
- package/lib/es6/style/radial-tree.shadow.css +3 -3
- package/lib/es6/style/reference.shadow.css +1 -1
- package/lib/es6/style/scatterplot.shadow.css +1 -1
- package/lib/es6/style/tooltip.shadow.css +23 -14
- package/lib/es6/style/venn.shadow.css +3 -3
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/utils/TextMeasurer.js +25 -0
- package/lib/es6/utils/TextMeasurer.js.map +1 -0
- package/lib/esm/Area.mjs +12 -12
- package/lib/esm/Axis.mjs +56 -58
- package/lib/esm/Bar.mjs +17 -17
- package/lib/esm/Bubble.mjs +15 -15
- package/lib/esm/CompactHorizontalBar.mjs +17 -17
- package/lib/esm/Donut.mjs +10 -10
- package/lib/esm/Dots.mjs +15 -12
- package/lib/esm/HorizontalBar.mjs +17 -17
- package/lib/esm/Hover.mjs +157 -40
- package/lib/esm/Line.mjs +10 -10
- package/lib/esm/Plot.mjs +7 -5
- package/lib/esm/Radar.mjs +20 -20
- package/lib/esm/RadialTree.mjs +13 -13
- package/lib/esm/Reference.mjs +13 -13
- package/lib/esm/ScatterPlot.mjs +10 -10
- package/lib/esm/Tooltip.mjs +21 -12
- package/lib/esm/Venn.mjs +10 -10
- package/lib/esm/a11y/PlotA11yModule.mjs +3 -3
- package/lib/esm/a11y/PlotA11yView.mjs +3 -3
- package/lib/esm/component/Chart/AbstractChart.mjs +150 -54
- package/lib/esm/component/Chart/AreaChart.mjs +12 -10
- package/lib/esm/component/Chart/BarChart.mjs +9 -7
- package/lib/esm/component/Chart/BubbleChart.mjs +29 -9
- package/lib/esm/component/Chart/CigaretteChart.mjs +33 -30
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +2 -1
- package/lib/esm/component/Chart/DonutChart.mjs +5 -4
- package/lib/esm/component/Chart/HistogramChart.mjs +6 -4
- package/lib/esm/component/Chart/LineChart.mjs +9 -7
- package/lib/esm/component/Chart/RadarChart.mjs +3 -2
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +25 -8
- package/lib/esm/component/Chart/VennChart.mjs +6 -5
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +4 -2
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +5 -5
- package/lib/esm/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +24 -19
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.type.mjs +1 -1
- package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +16 -40
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +13 -9
- package/lib/esm/component/ChartLegend/LegendTable/legend-table.shadow.css +6 -2
- package/lib/esm/style/abstract-chart.shadow.css +31 -1
- package/lib/esm/style/area.shadow.css +6 -5
- package/lib/esm/style/axis.shadow.css +2 -2
- package/lib/esm/style/bar.shadow.css +7 -7
- package/lib/esm/style/bubble.shadow.css +4 -4
- package/lib/esm/style/donut.shadow.css +3 -3
- package/lib/esm/style/dot.shadow.css +9 -3
- package/lib/esm/style/hover.shadow.css +19 -1
- package/lib/esm/style/line.shadow.css +4 -4
- package/lib/esm/style/radar.shadow.css +5 -5
- package/lib/esm/style/radial-tree.shadow.css +3 -3
- package/lib/esm/style/reference.shadow.css +1 -1
- package/lib/esm/style/scatterplot.shadow.css +1 -1
- package/lib/esm/style/tooltip.shadow.css +23 -14
- package/lib/esm/style/venn.shadow.css +3 -3
- package/lib/esm/utils/TextMeasurer.mjs +27 -0
- package/lib/types/Hover.d.ts +2 -0
- package/lib/types/component/Chart/AbstractChart.d.ts +11 -6
- package/lib/types/component/Chart/AbstractChart.d.ts.map +1 -1
- package/lib/types/component/Chart/AbstractChart.type.d.ts +20 -2
- package/lib/types/component/Chart/AbstractChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/AreaChart.d.ts.map +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +1 -0
- package/lib/types/component/Chart/AreaChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/BarChart.d.ts.map +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +1 -0
- package/lib/types/component/Chart/BarChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/BubbleChart.d.ts.map +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +2 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +2 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts.map +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +2 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/DonutChart.d.ts.map +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +2 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/HistogramChart.d.ts.map +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -0
- package/lib/types/component/Chart/HistogramChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/LineChart.d.ts.map +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +1 -0
- package/lib/types/component/Chart/LineChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/RadarChart.d.ts.map +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +2 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.d.ts.map +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +2 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/VennChart.d.ts.map +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +2 -1
- package/lib/types/component/Chart/VennChart.type.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +5 -1
- package/lib/types/component/ChartLegend/BaseLegend.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +3 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +2 -0
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts.map +1 -1
- package/lib/types/utils/TextMeasurer.d.ts +5 -0
- package/lib/types/utils/TextMeasurer.d.ts.map +1 -0
- package/package.json +15 -15
|
@@ -185,7 +185,7 @@ class CigaretteChartComponent extends AbstractChart {
|
|
|
185
185
|
} = this.asProps;
|
|
186
186
|
const {
|
|
187
187
|
dataDefinitions,
|
|
188
|
-
|
|
188
|
+
highlightedItem
|
|
189
189
|
} = this.state;
|
|
190
190
|
const {
|
|
191
191
|
plotWidth,
|
|
@@ -250,7 +250,7 @@ class CigaretteChartComponent extends AbstractChart {
|
|
|
250
250
|
patterns,
|
|
251
251
|
direction: invertAxis ? "horizontal" : "vertical",
|
|
252
252
|
onClick,
|
|
253
|
-
hovered:
|
|
253
|
+
hovered: highlightedItem === index ? true : highlightedItem === -1 ? void 0 : false
|
|
254
254
|
});
|
|
255
255
|
})), /* @__PURE__ */ React.createElement(AnimatedClipPath, {
|
|
256
256
|
"aria-hidden": true,
|
|
@@ -312,7 +312,7 @@ class CigaretteChartComponent extends AbstractChart {
|
|
|
312
312
|
color: item.color
|
|
313
313
|
}, item.label), showPercentColumn && /* @__PURE__ */ React.createElement(Text, _ref3.cn("Text", {
|
|
314
314
|
"textAlign": "end",
|
|
315
|
-
"color": "text-secondary"
|
|
315
|
+
"color": "text-secondary-invert"
|
|
316
316
|
}), this.percentValue(data, item.id)), /* @__PURE__ */ React.createElement(Text, _ref3.cn("Text", {
|
|
317
317
|
"textAlign": "end",
|
|
318
318
|
"bold": true
|
|
@@ -322,7 +322,7 @@ class CigaretteChartComponent extends AbstractChart {
|
|
|
322
322
|
return {
|
|
323
323
|
children: (_ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(Flex, _ref4.cn("Flex", {
|
|
324
324
|
"direction": "column"
|
|
325
|
-
}), tooltipTitle && /* @__PURE__ */ React.createElement(HoverRect.Tooltip.Title, null, tooltipTitle), /* @__PURE__ */ React.createElement(STooltipChildrenWrapper, _ref4.cn("STooltipChildrenWrapper", {
|
|
325
|
+
}), tooltipTitle && /* @__PURE__ */ React.createElement(HoverRect.Tooltip.Title, null, this.tooltipTitleFormatter(tooltipTitle)), /* @__PURE__ */ React.createElement(STooltipChildrenWrapper, _ref4.cn("STooltipChildrenWrapper", {
|
|
326
326
|
...assignProps({
|
|
327
327
|
"columnsCount": showPercentColumn ? "3" : "2",
|
|
328
328
|
"__excludeProps": ["data"]
|
|
@@ -339,14 +339,14 @@ class CigaretteChartComponent extends AbstractChart {
|
|
|
339
339
|
style
|
|
340
340
|
}, item.label), showPercentColumn && /* @__PURE__ */ React.createElement(Text, {
|
|
341
341
|
textAlign: "end",
|
|
342
|
-
color: "text-secondary",
|
|
342
|
+
color: "text-secondary-invert",
|
|
343
343
|
style
|
|
344
344
|
}, this.percentValue(data, item.id)), /* @__PURE__ */ React.createElement(Text, {
|
|
345
345
|
textAlign: "end",
|
|
346
346
|
bold: true,
|
|
347
347
|
style
|
|
348
348
|
}, this.tooltipValueFormatter(data[item.id])));
|
|
349
|
-
}), this.renderTooltipTotalLine(
|
|
349
|
+
}), this.renderTooltipTotalLine())))
|
|
350
350
|
};
|
|
351
351
|
});
|
|
352
352
|
}
|
|
@@ -366,33 +366,35 @@ class CigaretteChartComponent extends AbstractChart {
|
|
|
366
366
|
}
|
|
367
367
|
return NOT_A_VALUE;
|
|
368
368
|
}
|
|
369
|
-
renderTooltipTotalLine(
|
|
369
|
+
renderTooltipTotalLine() {
|
|
370
|
+
var _ref5;
|
|
370
371
|
const {
|
|
371
372
|
showTotalInTooltip,
|
|
372
|
-
showPercentValueInTooltip
|
|
373
|
+
showPercentValueInTooltip,
|
|
374
|
+
styles
|
|
373
375
|
} = this.asProps;
|
|
374
376
|
if (!showTotalInTooltip) {
|
|
375
377
|
return null;
|
|
376
378
|
}
|
|
379
|
+
const STooltipDivider = Divider;
|
|
377
380
|
const total = this.totalValue();
|
|
378
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
textAlign: "end",
|
|
384
|
-
color: "text-secondary"
|
|
385
|
-
}, Number.isNaN(total) ? NOT_A_VALUE : "100%"), /* @__PURE__ */ React.createElement(Text, {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}, Number.isNaN(total) ? NOT_A_VALUE : total));
|
|
381
|
+
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(STooltipDivider, _ref5.cn("STooltipDivider", {
|
|
382
|
+
"theme": "invert"
|
|
383
|
+
})), /* @__PURE__ */ React.createElement(Box, _ref5.cn("Box", {
|
|
384
|
+
"mr": 2
|
|
385
|
+
}), "Total"), showPercentValueInTooltip && total !== 0 && /* @__PURE__ */ React.createElement(Text, _ref5.cn("Text", {
|
|
386
|
+
"textAlign": "end",
|
|
387
|
+
"color": "text-secondary-invert"
|
|
388
|
+
}), Number.isNaN(total) ? NOT_A_VALUE : "100%"), /* @__PURE__ */ React.createElement(Text, _ref5.cn("Text", {
|
|
389
|
+
"textAlign": "end",
|
|
390
|
+
"bold": true
|
|
391
|
+
}), Number.isNaN(total) ? NOT_A_VALUE : this.tooltipValueFormatter(total)));
|
|
390
392
|
}
|
|
391
393
|
renderHeader() {
|
|
392
394
|
return this.asProps.header ?? null;
|
|
393
395
|
}
|
|
394
396
|
render() {
|
|
395
|
-
var _ref2 = this.asProps,
|
|
397
|
+
var _ref2 = this.asProps, _ref7;
|
|
396
398
|
const SChart = Flex;
|
|
397
399
|
const {
|
|
398
400
|
styles,
|
|
@@ -408,17 +410,17 @@ class CigaretteChartComponent extends AbstractChart {
|
|
|
408
410
|
} = this;
|
|
409
411
|
const header = this.renderHeader();
|
|
410
412
|
if (invertAxis) {
|
|
411
|
-
var
|
|
412
|
-
return
|
|
413
|
+
var _ref6;
|
|
414
|
+
return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SChart, _ref6.cn("SChart", {
|
|
413
415
|
...assignProps({
|
|
414
416
|
"gap": 6,
|
|
415
417
|
"direction": direction,
|
|
416
418
|
"__excludeProps": ["onClick", "data"],
|
|
417
419
|
"ref": this.chartRef
|
|
418
420
|
}, _ref2)
|
|
419
|
-
}), /* @__PURE__ */ React.createElement(Flex,
|
|
421
|
+
}), /* @__PURE__ */ React.createElement(Flex, _ref6.cn("Flex", {
|
|
420
422
|
"direction": "column"
|
|
421
|
-
}), header, /* @__PURE__ */ React.createElement(Plot,
|
|
423
|
+
}), header, /* @__PURE__ */ React.createElement(Plot, _ref6.cn("Plot", {
|
|
422
424
|
"ref": this.plotRef,
|
|
423
425
|
"data": data,
|
|
424
426
|
"scale": [this.xScale, this.yScale],
|
|
@@ -431,13 +433,13 @@ class CigaretteChartComponent extends AbstractChart {
|
|
|
431
433
|
"onMouseLeave": this.onPlotMouseLeave
|
|
432
434
|
}), this.renderTooltip(), this.renderChart())), this.renderLegend());
|
|
433
435
|
}
|
|
434
|
-
return
|
|
436
|
+
return _ref7 = sstyled(styles), /* @__PURE__ */ React.createElement(SChart, _ref7.cn("SChart", {
|
|
435
437
|
...assignProps({
|
|
436
438
|
"gap": 6,
|
|
437
439
|
"__excludeProps": ["onClick", "data"],
|
|
438
440
|
"ref": this.chartRef
|
|
439
441
|
}, _ref2)
|
|
440
|
-
}), /* @__PURE__ */ React.createElement(Plot,
|
|
442
|
+
}), /* @__PURE__ */ React.createElement(Plot, _ref7.cn("Plot", {
|
|
441
443
|
"ref": this.plotRef,
|
|
442
444
|
"data": data,
|
|
443
445
|
"scale": [this.xScale, this.yScale],
|
|
@@ -448,10 +450,10 @@ class CigaretteChartComponent extends AbstractChart {
|
|
|
448
450
|
"a11yAltTextConfig": a11yAltTextConfig,
|
|
449
451
|
"onMouseMove": this.onPlotMouseMove,
|
|
450
452
|
"onMouseLeave": this.onPlotMouseLeave
|
|
451
|
-
}), this.renderTooltip(), this.renderChart()), /* @__PURE__ */ React.createElement(Flex,
|
|
453
|
+
}), this.renderTooltip(), this.renderChart()), /* @__PURE__ */ React.createElement(Flex, _ref7.cn("Flex", {
|
|
452
454
|
"direction": "column",
|
|
453
455
|
"gap": 2
|
|
454
|
-
}), header && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Box,
|
|
456
|
+
}), header && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Box, _ref7.cn("Box", {}), header), /* @__PURE__ */ React.createElement(Divider, _ref7.cn("Divider", {}))), this.renderLegend()));
|
|
455
457
|
}
|
|
456
458
|
getLegendAriaLabel() {
|
|
457
459
|
return this.asProps.getI18nText("legendForChart", {
|
|
@@ -506,7 +508,8 @@ _defineProperty(CigaretteChartComponent, "defaultProps", (props) => {
|
|
|
506
508
|
plotHeight: invertAxis && !props.plotHeight ? 28 : props.plotHeight,
|
|
507
509
|
showPercentValueInTooltip: false,
|
|
508
510
|
minimalBarWidth: DEFAULT_MINIMAL_BAR_WIDTH,
|
|
509
|
-
direction: invertAxis ? "column" : "row"
|
|
511
|
+
direction: invertAxis ? "column" : "row",
|
|
512
|
+
locale: "en"
|
|
510
513
|
};
|
|
511
514
|
});
|
|
512
515
|
_defineProperty(CigaretteChartComponent, "enhance", [resolveColorEnhance(), uniqueIDEnhancement(), i18nEnhance(localizedMessages)]);
|
|
@@ -89,7 +89,8 @@ _defineProperty(CompactHorizontalBarChartComponent, "defaultProps", {
|
|
|
89
89
|
showXAxis: false,
|
|
90
90
|
showYAxis: false,
|
|
91
91
|
showTooltip: true,
|
|
92
|
-
showLegend: false
|
|
92
|
+
showLegend: false,
|
|
93
|
+
locale: "en"
|
|
93
94
|
});
|
|
94
95
|
_defineProperty(CompactHorizontalBarChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
95
96
|
const CompactHorizontalBarChart = createComponent(CompactHorizontalBarChartComponent);
|
|
@@ -42,7 +42,7 @@ class DonutChartComponent extends AbstractChart {
|
|
|
42
42
|
} = this.asProps;
|
|
43
43
|
const {
|
|
44
44
|
dataDefinitions,
|
|
45
|
-
|
|
45
|
+
highlightedItem
|
|
46
46
|
} = this.state;
|
|
47
47
|
const checkedLegendItems = dataDefinitions.filter((item) => item.checked);
|
|
48
48
|
return /* @__PURE__ */ React.createElement(Donut, {
|
|
@@ -55,7 +55,7 @@ class DonutChartComponent extends AbstractChart {
|
|
|
55
55
|
dataKey: item.id,
|
|
56
56
|
name: item.label,
|
|
57
57
|
color: item.color,
|
|
58
|
-
active:
|
|
58
|
+
active: highlightedItem === index
|
|
59
59
|
});
|
|
60
60
|
}), innerLabel && /* @__PURE__ */ React.createElement(Donut.Label, null, innerLabel));
|
|
61
61
|
}
|
|
@@ -71,7 +71,7 @@ class DonutChartComponent extends AbstractChart {
|
|
|
71
71
|
}) => {
|
|
72
72
|
const title = dataDefinitions.find((item) => item.id === dataKey);
|
|
73
73
|
return {
|
|
74
|
-
children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Donut.Tooltip.Title, null, title?.label || dataKey), /* @__PURE__ */ React.createElement(Flex, {
|
|
74
|
+
children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Donut.Tooltip.Title, null, this.tooltipTitleFormatter(title?.label || dataKey)), /* @__PURE__ */ React.createElement(Flex, {
|
|
75
75
|
justifyContent: "space-between"
|
|
76
76
|
}, /* @__PURE__ */ React.createElement(Text, {
|
|
77
77
|
bold: true
|
|
@@ -91,7 +91,8 @@ _defineProperty(DonutChartComponent, "defaultProps", {
|
|
|
91
91
|
alignItems: "flex-start",
|
|
92
92
|
innerRadius: 100,
|
|
93
93
|
marginX: 0,
|
|
94
|
-
marginY: 0
|
|
94
|
+
marginY: 0,
|
|
95
|
+
locale: "en"
|
|
95
96
|
});
|
|
96
97
|
_defineProperty(DonutChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
97
98
|
const DonutChart = createComponent(DonutChartComponent);
|
|
@@ -82,7 +82,7 @@ class HistogramChartComponent extends AbstractChart {
|
|
|
82
82
|
} = this.asProps;
|
|
83
83
|
const {
|
|
84
84
|
dataDefinitions,
|
|
85
|
-
|
|
85
|
+
highlightedItem
|
|
86
86
|
} = this.state;
|
|
87
87
|
if (this.isStack) {
|
|
88
88
|
return /* @__PURE__ */ React.createElement(StackBar, {
|
|
@@ -92,7 +92,7 @@ class HistogramChartComponent extends AbstractChart {
|
|
|
92
92
|
const BarComponent = invertAxis ? StackBar.HorizontalBar : StackBar.Bar;
|
|
93
93
|
const commonBarComponentProps = {
|
|
94
94
|
color: item2.color,
|
|
95
|
-
transparent:
|
|
95
|
+
transparent: highlightedItem !== -1 && highlightedItem !== index
|
|
96
96
|
};
|
|
97
97
|
if (invertAxis) {
|
|
98
98
|
commonBarComponentProps.x = item2.id;
|
|
@@ -131,7 +131,8 @@ class HistogramChartComponent extends AbstractChart {
|
|
|
131
131
|
return {
|
|
132
132
|
children: this.getTooltipChildren({
|
|
133
133
|
Tooltip: HoverRect.Tooltip,
|
|
134
|
-
dataItem
|
|
134
|
+
dataItem,
|
|
135
|
+
index
|
|
135
136
|
})
|
|
136
137
|
};
|
|
137
138
|
});
|
|
@@ -148,7 +149,8 @@ _defineProperty(HistogramChartComponent, "defaultProps", {
|
|
|
148
149
|
direction: "column",
|
|
149
150
|
showXAxis: true,
|
|
150
151
|
showYAxis: true,
|
|
151
|
-
showTooltip: true
|
|
152
|
+
showTooltip: true,
|
|
153
|
+
locale: "en"
|
|
152
154
|
});
|
|
153
155
|
const HistogramChart = createComponent(HistogramChartComponent);
|
|
154
156
|
export {
|
|
@@ -34,7 +34,7 @@ class LineChartComponent extends AbstractChart {
|
|
|
34
34
|
get yScale() {
|
|
35
35
|
const {
|
|
36
36
|
yScale,
|
|
37
|
-
marginX =
|
|
37
|
+
marginX = 32
|
|
38
38
|
} = this.asProps;
|
|
39
39
|
const {
|
|
40
40
|
plotHeight
|
|
@@ -58,7 +58,7 @@ class LineChartComponent extends AbstractChart {
|
|
|
58
58
|
} = this.asProps;
|
|
59
59
|
const {
|
|
60
60
|
dataDefinitions,
|
|
61
|
-
|
|
61
|
+
highlightedItem
|
|
62
62
|
} = this.state;
|
|
63
63
|
return dataDefinitions.map((item, index) => {
|
|
64
64
|
return item.checked && /* @__PURE__ */ React.createElement(Line, {
|
|
@@ -66,11 +66,11 @@ class LineChartComponent extends AbstractChart {
|
|
|
66
66
|
y: item.id,
|
|
67
67
|
key: item.id,
|
|
68
68
|
color: item.color,
|
|
69
|
-
transparent:
|
|
69
|
+
transparent: highlightedItem !== -1 && highlightedItem !== index,
|
|
70
70
|
curve,
|
|
71
71
|
onClick: onClickLine
|
|
72
|
-
},
|
|
73
|
-
display:
|
|
72
|
+
}, /* @__PURE__ */ React.createElement(Line.Dots, {
|
|
73
|
+
display: showDots
|
|
74
74
|
}), area?.[item.id] && /* @__PURE__ */ React.createElement(Line.Area, {
|
|
75
75
|
area: area[item.id],
|
|
76
76
|
y0: "y0",
|
|
@@ -94,7 +94,8 @@ class LineChartComponent extends AbstractChart {
|
|
|
94
94
|
return {
|
|
95
95
|
children: this.getTooltipChildren({
|
|
96
96
|
Tooltip: HoverLine.Tooltip,
|
|
97
|
-
dataItem
|
|
97
|
+
dataItem,
|
|
98
|
+
index: xIndex
|
|
98
99
|
})
|
|
99
100
|
};
|
|
100
101
|
});
|
|
@@ -111,7 +112,8 @@ _defineProperty(LineChartComponent, "defaultProps", {
|
|
|
111
112
|
direction: "column",
|
|
112
113
|
showXAxis: true,
|
|
113
114
|
showYAxis: true,
|
|
114
|
-
showTooltip: true
|
|
115
|
+
showTooltip: true,
|
|
116
|
+
locale: "en"
|
|
115
117
|
});
|
|
116
118
|
const LineChart = createComponent(LineChartComponent);
|
|
117
119
|
export {
|
|
@@ -50,7 +50,7 @@ class RadarChartComponent extends AbstractChart {
|
|
|
50
50
|
index
|
|
51
51
|
}) => {
|
|
52
52
|
return {
|
|
53
|
-
children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Radar.Tooltip.Title, null, data[groupKey]?.[index]), dataDefinitions.map((item) => {
|
|
53
|
+
children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Radar.Tooltip.Title, null, this.tooltipTitleFormatter(data[groupKey]?.[index])), dataDefinitions.map((item) => {
|
|
54
54
|
const value = data[item.id]?.[index];
|
|
55
55
|
return item.checked && /* @__PURE__ */ React.createElement(Radar.Tooltip.Dot, {
|
|
56
56
|
color: item.color,
|
|
@@ -93,7 +93,8 @@ _defineProperty(RadarChartComponent, "defaultProps", {
|
|
|
93
93
|
direction: "column",
|
|
94
94
|
showXAxis: true,
|
|
95
95
|
showYAxis: true,
|
|
96
|
-
showTooltip: true
|
|
96
|
+
showTooltip: true,
|
|
97
|
+
locale: "en"
|
|
97
98
|
});
|
|
98
99
|
const RadarChart = createComponent(RadarChartComponent);
|
|
99
100
|
export {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import {
|
|
2
|
+
import { Box } from "@semcore/base-components";
|
|
3
|
+
import { sstyled, createComponent } from "@semcore/core";
|
|
3
4
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
4
5
|
import { Text } from "@semcore/typography";
|
|
5
6
|
import { scaleTime, scaleLinear } from "d3-scale";
|
|
@@ -114,14 +115,29 @@ class ScatterPlotChartComponent extends AbstractChart {
|
|
|
114
115
|
x,
|
|
115
116
|
y
|
|
116
117
|
}) => {
|
|
118
|
+
var _ref;
|
|
119
|
+
const {
|
|
120
|
+
styles
|
|
121
|
+
} = this.asProps;
|
|
122
|
+
const STooltipChildrenWrapper = Box;
|
|
117
123
|
return {
|
|
118
|
-
children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ScatterPlot.Tooltip.Dot, {
|
|
124
|
+
children: (_ref = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(ScatterPlot.Tooltip.Dot, {
|
|
119
125
|
color: item.color
|
|
120
|
-
}, "Data"), /* @__PURE__ */ React.createElement(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
}, "Data"), /* @__PURE__ */ React.createElement(
|
|
127
|
+
STooltipChildrenWrapper,
|
|
128
|
+
_ref.cn("STooltipChildrenWrapper", {
|
|
129
|
+
"columnsCount": 2,
|
|
130
|
+
"mt": 2
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ React.createElement(Text, _ref.cn("Text", {}), "X axis"),
|
|
133
|
+
/* @__PURE__ */ React.createElement(Text, _ref.cn("Text", {
|
|
134
|
+
"textAlign": "end"
|
|
135
|
+
}), this.tooltipValueFormatter(data[index][x])),
|
|
136
|
+
/* @__PURE__ */ React.createElement(Text, _ref.cn("Text", {}), "Y axis"),
|
|
137
|
+
/* @__PURE__ */ React.createElement(Text, _ref.cn("Text", {
|
|
138
|
+
"textAlign": "end"
|
|
139
|
+
}), this.tooltipValueFormatter(data[index][y]))
|
|
140
|
+
)))
|
|
125
141
|
};
|
|
126
142
|
});
|
|
127
143
|
});
|
|
@@ -138,7 +154,8 @@ _defineProperty(ScatterPlotChartComponent, "defaultProps", {
|
|
|
138
154
|
showXAxis: true,
|
|
139
155
|
showYAxis: true,
|
|
140
156
|
showTooltip: true,
|
|
141
|
-
showLegend: false
|
|
157
|
+
showLegend: false,
|
|
158
|
+
locale: "en"
|
|
142
159
|
});
|
|
143
160
|
_defineProperty(ScatterPlotChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
144
161
|
const ScatterPlotChart = createComponent(ScatterPlotChartComponent);
|
|
@@ -49,7 +49,7 @@ class VennChartComponent extends AbstractChart {
|
|
|
49
49
|
} = this.asProps;
|
|
50
50
|
const {
|
|
51
51
|
dataDefinitions,
|
|
52
|
-
|
|
52
|
+
highlightedItem
|
|
53
53
|
} = this.state;
|
|
54
54
|
const checkedLegendItems = dataDefinitions.filter((item) => item.checked);
|
|
55
55
|
const checkedLegendItemsMap = checkedLegendItems.reduce((result, item) => {
|
|
@@ -71,7 +71,7 @@ class VennChartComponent extends AbstractChart {
|
|
|
71
71
|
dataKey: item.id,
|
|
72
72
|
name: item.label,
|
|
73
73
|
color: item.color,
|
|
74
|
-
transparent:
|
|
74
|
+
transparent: highlightedItem !== -1 && highlightedItem !== index
|
|
75
75
|
});
|
|
76
76
|
}), intersections.map((intersectionKey) => {
|
|
77
77
|
const intersectionKeys = intersectionKey.split("/");
|
|
@@ -98,9 +98,9 @@ class VennChartComponent extends AbstractChart {
|
|
|
98
98
|
data
|
|
99
99
|
}) => {
|
|
100
100
|
return {
|
|
101
|
-
children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Venn.Tooltip.Title, null, name), /* @__PURE__ */ React.createElement(Text, {
|
|
101
|
+
children: /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Venn.Tooltip.Title, null, this.tooltipTitleFormatter(name)), /* @__PURE__ */ React.createElement(Text, {
|
|
102
102
|
bold: true
|
|
103
|
-
}, data[dataKey]))
|
|
103
|
+
}, this.tooltipValueFormatter(data[dataKey])))
|
|
104
104
|
};
|
|
105
105
|
});
|
|
106
106
|
}
|
|
@@ -115,7 +115,8 @@ _defineProperty(VennChartComponent, "defaultProps", {
|
|
|
115
115
|
direction: "row-reverse",
|
|
116
116
|
alignItems: "flex-start",
|
|
117
117
|
marginY: 0,
|
|
118
|
-
marginX: 0
|
|
118
|
+
marginX: 0,
|
|
119
|
+
locale: "en"
|
|
119
120
|
});
|
|
120
121
|
_defineProperty(VennChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
121
122
|
const VennChart = createComponent(VennChartComponent);
|
|
@@ -62,7 +62,8 @@ class BaseLegend extends Component {
|
|
|
62
62
|
const {
|
|
63
63
|
shape = "Checkbox",
|
|
64
64
|
size = "m",
|
|
65
|
-
patterns
|
|
65
|
+
patterns,
|
|
66
|
+
highlightedItem
|
|
66
67
|
} = this.asProps;
|
|
67
68
|
const line = this.getItem(index);
|
|
68
69
|
return {
|
|
@@ -78,7 +79,8 @@ class BaseLegend extends Component {
|
|
|
78
79
|
gridRowStart: `${index + 1}`,
|
|
79
80
|
gridRowEnd: `${index + 2}`
|
|
80
81
|
},
|
|
81
|
-
patterns
|
|
82
|
+
patterns,
|
|
83
|
+
transparent: highlightedItem !== void 0 && highlightedItem !== -1 && highlightedItem !== index
|
|
82
84
|
};
|
|
83
85
|
}
|
|
84
86
|
}
|
|
@@ -13,14 +13,14 @@ const style = (
|
|
|
13
13
|
/*__reshadow_css_start__*/
|
|
14
14
|
(sstyled.insert(
|
|
15
15
|
/*__inner_css_start__*/
|
|
16
|
-
".
|
|
16
|
+
".___SLegendFlex_er9v1_gg_._direction_row_er9v1_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:var(--intergalactic-spacing-content-gap-large,8px) var(--intergalactic-spacing-content-gap-xxlarge,16px)}.___SLegendFlex_er9v1_gg_._direction_column_er9v1_gg_{align-items:flex-start;flex-wrap:wrap;gap:var(--intergalactic-spacing-content-gap-large,8px)}",
|
|
17
17
|
/*__inner_css_end__*/
|
|
18
|
-
"
|
|
18
|
+
"er9v1_gg_"
|
|
19
19
|
), /*__reshadow_css_end__*/
|
|
20
20
|
{
|
|
21
|
-
"__SLegendFlex": "
|
|
22
|
-
"_direction_row": "
|
|
23
|
-
"_direction_column": "
|
|
21
|
+
"__SLegendFlex": "___SLegendFlex_er9v1_gg_",
|
|
22
|
+
"_direction_row": "_direction_row_er9v1_gg_",
|
|
23
|
+
"_direction_column": "_direction_column_er9v1_gg_"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
class LegendFlexRoot extends BaseLegend {
|
|
@@ -2,11 +2,11 @@ SLegendFlex[direction='row'] {
|
|
|
2
2
|
align-items: flex-start;
|
|
3
3
|
align-content: flex-start;
|
|
4
4
|
flex-wrap: wrap;
|
|
5
|
-
gap: 8px 16px;
|
|
5
|
+
gap: var(--intergalactic-spacing-content-gap-large, 8px) var(--intergalactic-spacing-content-gap-xxlarge, 16px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
SLegendFlex[direction='column'] {
|
|
9
9
|
align-items: flex-start;
|
|
10
10
|
flex-wrap: wrap;
|
|
11
|
-
gap: 8px;
|
|
11
|
+
gap: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
12
12
|
}
|
|
@@ -14,27 +14,26 @@ const style = (
|
|
|
14
14
|
/*__reshadow_css_start__*/
|
|
15
15
|
(sstyled.insert(
|
|
16
16
|
/*__inner_css_start__*/
|
|
17
|
-
'.
|
|
17
|
+
'.___SLegendItem_1g89n_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_1g89n_gg_:hover{cursor:pointer}.___SLegendItem_1g89n_gg_.__disabled_1g89n_gg_:hover{cursor:default}}.___SLegendItem_1g89n_gg_.__transparent_1g89n_gg_{opacity:.3}.___SPointShape_1g89n_gg_.__color_1g89n_gg_{background-color:var(--color_1g89n);margin-right:var(--intergalactic-spacing-content-gap-medium,6px);flex-shrink:0}.___SPointShape_1g89n_gg_._shape_Circle_1g89n_gg_._size_l_1g89n_gg_{width:16px;height:16px;border-radius:8px;margin-top:var(--intergalactic-spacing-content-gap-small,4px)}.___SPointShape_1g89n_gg_._shape_Circle_1g89n_gg_._size_m_1g89n_gg_{width:12px;height:12px;border-radius:6px;margin-top:var(--intergalactic-spacing-content-gap-small,4px)}.___SPointShape_1g89n_gg_._shape_Pattern_1g89n_gg_{background-color:initial;margin-right:var(--intergalactic-spacing-content-gap-small,4px)}.___SIcon_1g89n_gg_{line-height:0;margin-right:var(--intergalactic-spacing-content-gap-small,4px)}.___SIcon_1g89n_gg_._size_l_1g89n_gg_{margin-top:var(--intergalactic-spacing-content-gap-small,4px)}.___SIcon_1g89n_gg_._size_m_1g89n_gg_{margin-top:var(--intergalactic-spacing-content-gap-xsmall,2px)}.___SLabel_1g89n_gg_{min-width:0}.___SAdditionalLabel_1g89n_gg_._size_l_1g89n_gg_,.___SCount_1g89n_gg_._size_l_1g89n_gg_,.___SLabel_1g89n_gg_._size_l_1g89n_gg_{font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,1.5)}.___SAdditionalLabel_1g89n_gg_._size_m_1g89n_gg_,.___SCount_1g89n_gg_._size_m_1g89n_gg_,.___SLabel_1g89n_gg_._size_m_1g89n_gg_{font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,1.4286)}.___SAdditionalLabel_1g89n_gg_,.___SCount_1g89n_gg_{margin-left:var(--intergalactic-spacing-content-gap-small,4px)}.___SAdditionalLabel_1g89n_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_1g89n_gg_:before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary,oklch(.097 .023 156.5/.468));height:4px;width:4px;border-radius:2px;margin-right:var(--intergalactic-spacing-content-gap-small,4px)}.___SAdditionalLabel_1g89n_gg_._size_l_1g89n_gg_:before{margin-top:10px}.___SAdditionalLabel_1g89n_gg_._size_m_1g89n_gg_:before{margin-top:8px}.___SPatternSymbol_1g89n_gg_{transform:scale(.8)}',
|
|
18
18
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
19
|
+
"1g89n_gg_"
|
|
20
20
|
), /*__reshadow_css_end__*/
|
|
21
21
|
{
|
|
22
|
-
"__SLegendItem": "
|
|
23
|
-
"_disabled": "
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"__SPatternSymbol": "___SPatternSymbol_de4s5_gg_"
|
|
22
|
+
"__SLegendItem": "___SLegendItem_1g89n_gg_",
|
|
23
|
+
"_disabled": "__disabled_1g89n_gg_",
|
|
24
|
+
"_transparent": "__transparent_1g89n_gg_",
|
|
25
|
+
"__SPointShape": "___SPointShape_1g89n_gg_",
|
|
26
|
+
"_color": "__color_1g89n_gg_",
|
|
27
|
+
"--color": "--color_1g89n",
|
|
28
|
+
"_shape_Circle": "_shape_Circle_1g89n_gg_",
|
|
29
|
+
"_size_l": "_size_l_1g89n_gg_",
|
|
30
|
+
"_size_m": "_size_m_1g89n_gg_",
|
|
31
|
+
"_shape_Pattern": "_shape_Pattern_1g89n_gg_",
|
|
32
|
+
"__SIcon": "___SIcon_1g89n_gg_",
|
|
33
|
+
"__SLabel": "___SLabel_1g89n_gg_",
|
|
34
|
+
"__SAdditionalLabel": "___SAdditionalLabel_1g89n_gg_",
|
|
35
|
+
"__SCount": "___SCount_1g89n_gg_",
|
|
36
|
+
"__SPatternSymbol": "___SPatternSymbol_1g89n_gg_"
|
|
38
37
|
})
|
|
39
38
|
);
|
|
40
39
|
const enhance = [resolveColorEnhance(), uniqueIDEnhancement()];
|
|
@@ -86,7 +85,11 @@ class LegendItemRoot extends Component {
|
|
|
86
85
|
};
|
|
87
86
|
}
|
|
88
87
|
getIconProps() {
|
|
89
|
-
const
|
|
88
|
+
const {
|
|
89
|
+
onMouseEnter,
|
|
90
|
+
onMouseLeave,
|
|
91
|
+
...props
|
|
92
|
+
} = this.asProps;
|
|
90
93
|
return {
|
|
91
94
|
...props,
|
|
92
95
|
children: props.icon,
|
|
@@ -104,6 +107,8 @@ class LegendItemRoot extends Component {
|
|
|
104
107
|
color: _color,
|
|
105
108
|
onChangeLegendItem,
|
|
106
109
|
shape: _shape,
|
|
110
|
+
onMouseEnter,
|
|
111
|
+
onMouseLeave,
|
|
107
112
|
...props
|
|
108
113
|
} = this.asProps;
|
|
109
114
|
return {
|