@semcore/d3-chart 17.3.1-prerelease.9 → 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 +7 -1
- 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
|
@@ -11,9 +11,13 @@ SLegendItem[disabled]:hover {
|
|
|
11
11
|
cursor: default;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
SLegendItem[transparent] {
|
|
15
|
+
opacity: 0.3;
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
SPointShape[color] {
|
|
15
19
|
background-color: var(--color);
|
|
16
|
-
margin-right:
|
|
20
|
+
margin-right: var(--intergalactic-spacing-content-gap-medium, 6px);
|
|
17
21
|
flex-shrink: 0;
|
|
18
22
|
}
|
|
19
23
|
|
|
@@ -21,60 +25,32 @@ SPointShape[shape='Circle'][size='l'] {
|
|
|
21
25
|
width: 16px;
|
|
22
26
|
height: 16px;
|
|
23
27
|
border-radius: 8px;
|
|
24
|
-
margin-top: 4px;
|
|
28
|
+
margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
SPointShape[shape='Circle'][size='m'] {
|
|
28
32
|
width: 12px;
|
|
29
33
|
height: 12px;
|
|
30
34
|
border-radius: 6px;
|
|
31
|
-
margin-top: 4px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
SPointShape[shape='Line'][size='l'] {
|
|
35
|
-
width: 16px;
|
|
36
|
-
height: 4px;
|
|
37
|
-
border-radius: 3px;
|
|
38
|
-
margin-top: 9px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
SPointShape[shape='Line'][size='m'] {
|
|
42
|
-
width: 12px;
|
|
43
|
-
height: 4px;
|
|
44
|
-
border-radius: 3px;
|
|
45
|
-
margin-top: 8px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
SPointShape[shape='Square'][size='l'] {
|
|
49
|
-
width: 16px;
|
|
50
|
-
height: 16px;
|
|
51
|
-
border-radius: 2px;
|
|
52
|
-
margin-top: 4px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
SPointShape[shape='Square'][size='m'] {
|
|
56
|
-
width: 12px;
|
|
57
|
-
height: 12px;
|
|
58
|
-
border-radius: 2px;
|
|
59
|
-
margin-top: 4px;
|
|
35
|
+
margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
60
36
|
}
|
|
61
37
|
|
|
62
38
|
SPointShape[shape='Pattern'] {
|
|
63
39
|
background-color: transparent;
|
|
64
|
-
margin-right: 4px;
|
|
40
|
+
margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
65
41
|
}
|
|
66
42
|
|
|
67
43
|
SIcon {
|
|
68
44
|
line-height: 0;
|
|
69
|
-
margin-right: 4px;
|
|
45
|
+
margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
70
46
|
}
|
|
71
47
|
|
|
72
48
|
SIcon[size='l'] {
|
|
73
|
-
margin-top: 4px;
|
|
49
|
+
margin-top: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
74
50
|
}
|
|
75
51
|
|
|
76
52
|
SIcon[size='m'] {
|
|
77
|
-
margin-top: 2px;
|
|
53
|
+
margin-top: var(--intergalactic-spacing-content-gap-xsmall, 2px);
|
|
78
54
|
}
|
|
79
55
|
|
|
80
56
|
SLabel {
|
|
@@ -85,19 +61,19 @@ SLabel[size='l'],
|
|
|
85
61
|
SAdditionalLabel[size='l'],
|
|
86
62
|
SCount[size='l'] {
|
|
87
63
|
font-size: var(--intergalactic-fs-300, 16px);
|
|
88
|
-
line-height: var(--intergalactic-lh-300,
|
|
64
|
+
line-height: var(--intergalactic-lh-300, 1.5);
|
|
89
65
|
}
|
|
90
66
|
|
|
91
67
|
SLabel[size='m'],
|
|
92
68
|
SAdditionalLabel[size='m'],
|
|
93
69
|
SCount[size='m'] {
|
|
94
70
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
95
|
-
line-height: var(--intergalactic-lh-200,
|
|
71
|
+
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
96
72
|
}
|
|
97
73
|
|
|
98
74
|
SAdditionalLabel,
|
|
99
75
|
SCount {
|
|
100
|
-
margin-left: 4px;
|
|
76
|
+
margin-left: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
101
77
|
}
|
|
102
78
|
|
|
103
79
|
SAdditionalLabel {
|
|
@@ -109,11 +85,11 @@ SAdditionalLabel {
|
|
|
109
85
|
SAdditionalLabel::before {
|
|
110
86
|
content: '';
|
|
111
87
|
display: inline-block;
|
|
112
|
-
background-color: var(--intergalactic-text-secondary, oklch(0.
|
|
88
|
+
background-color: var(--intergalactic-text-secondary, oklch(0.097 0.023 156.5 / 0.468));
|
|
113
89
|
height: 4px;
|
|
114
90
|
width: 4px;
|
|
115
91
|
border-radius: 2px;
|
|
116
|
-
margin-right: 4px;
|
|
92
|
+
margin-right: var(--intergalactic-spacing-content-gap-small, 4px);
|
|
117
93
|
}
|
|
118
94
|
|
|
119
95
|
SAdditionalLabel[size='l']::before {
|
|
@@ -9,16 +9,17 @@ const style = (
|
|
|
9
9
|
/*__reshadow_css_start__*/
|
|
10
10
|
(sstyled.insert(
|
|
11
11
|
/*__inner_css_start__*/
|
|
12
|
-
'.
|
|
12
|
+
'.___SLegendTable_whwqy_gg_.__columns-count_whwqy_gg_{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:var(--intergalactic-spacing-content-gap-large,8px);grid-row-gap:var(--intergalactic-spacing-content-gap-large,8px)}.___SColumnItem_whwqy_gg_._size_l_whwqy_gg_{font-size:var(--intergalactic-fs-300,16px);text-align:right}.___SColumnItem_whwqy_gg_._size_m_whwqy_gg_{font-size:var(--intergalactic-fs-200,14px);text-align:right}.___SColumnItem_whwqy_gg_.__transparent_whwqy_gg_{opacity:.3}',
|
|
13
13
|
/*__inner_css_end__*/
|
|
14
|
-
"
|
|
14
|
+
"whwqy_gg_"
|
|
15
15
|
), /*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SLegendTable": "
|
|
18
|
-
"_columns-count": "__columns-
|
|
19
|
-
"__SColumnItem": "
|
|
20
|
-
"_size_l": "
|
|
21
|
-
"_size_m": "
|
|
17
|
+
"__SLegendTable": "___SLegendTable_whwqy_gg_",
|
|
18
|
+
"_columns-count": "__columns-count_whwqy_gg_",
|
|
19
|
+
"__SColumnItem": "___SColumnItem_whwqy_gg_",
|
|
20
|
+
"_size_l": "_size_l_whwqy_gg_",
|
|
21
|
+
"_size_m": "_size_m_whwqy_gg_",
|
|
22
|
+
"_transparent": "__transparent_whwqy_gg_"
|
|
22
23
|
})
|
|
23
24
|
);
|
|
24
25
|
class LegendTableRoot extends BaseLegend {
|
|
@@ -29,7 +30,8 @@ class LegendTableRoot extends BaseLegend {
|
|
|
29
30
|
styles,
|
|
30
31
|
Children,
|
|
31
32
|
size = "m",
|
|
32
|
-
items
|
|
33
|
+
items,
|
|
34
|
+
highlightedItem
|
|
33
35
|
} = this.asProps;
|
|
34
36
|
const columnsCount = items[0]?.columns.length;
|
|
35
37
|
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SLegendTable, _ref3.cn("SLegendTable", {
|
|
@@ -41,6 +43,7 @@ class LegendTableRoot extends BaseLegend {
|
|
|
41
43
|
id,
|
|
42
44
|
columns = []
|
|
43
45
|
}, _index) => {
|
|
46
|
+
const isTransparent = highlightedItem !== void 0 && highlightedItem !== -1 && highlightedItem !== _index;
|
|
44
47
|
return /* @__PURE__ */ React.createElement(React.Fragment, {
|
|
45
48
|
key: id
|
|
46
49
|
}, /* @__PURE__ */ React.createElement(Children, null), columns.map((item, index) => {
|
|
@@ -49,7 +52,8 @@ class LegendTableRoot extends BaseLegend {
|
|
|
49
52
|
}, /* @__PURE__ */ React.createElement(LegendTable.Column, {
|
|
50
53
|
index,
|
|
51
54
|
size,
|
|
52
|
-
styles
|
|
55
|
+
styles,
|
|
56
|
+
transparent: isTransparent
|
|
53
57
|
}, item));
|
|
54
58
|
}));
|
|
55
59
|
}));
|
|
@@ -4,8 +4,8 @@ SLegendTable[columns-count] {
|
|
|
4
4
|
grid-template-columns: auto 0.2fr;
|
|
5
5
|
align-items: center;
|
|
6
6
|
height: fit-content;
|
|
7
|
-
grid-column-gap:
|
|
8
|
-
grid-row-gap: 8px;
|
|
7
|
+
grid-column-gap: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
8
|
+
grid-row-gap: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
SColumnItem[size='l'] {
|
|
@@ -17,3 +17,7 @@ SColumnItem[size='m'] {
|
|
|
17
17
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
18
18
|
text-align: right;
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
SColumnItem[transparent] {
|
|
22
|
+
opacity: 0.3;
|
|
23
|
+
}
|
|
@@ -7,13 +7,43 @@ SChart {
|
|
|
7
7
|
|
|
8
8
|
STooltipChildrenWrapper {
|
|
9
9
|
display: grid;
|
|
10
|
-
|
|
10
|
+
gap: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
11
|
+
align-items: center;
|
|
11
12
|
|
|
12
13
|
&[columnsCount='2'] {
|
|
13
14
|
grid-template-columns: auto minmax(28px, max-content);
|
|
15
|
+
|
|
16
|
+
STooltipDivider {
|
|
17
|
+
grid-column: span 2;
|
|
18
|
+
}
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
&[columnsCount='3'] {
|
|
17
22
|
grid-template-columns: auto minmax(28px, max-content) minmax(28px, max-content);
|
|
23
|
+
|
|
24
|
+
STooltipDivider {
|
|
25
|
+
grid-column: span 3;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
STooltipDeltaWrapper {
|
|
31
|
+
gap: var(--intergalactic-spacing-content-gap-xsmall, 2px);
|
|
32
|
+
justify-content: flex-end;
|
|
33
|
+
|
|
34
|
+
&[trend='upward'] {
|
|
35
|
+
color: var(--intergalactic-chart-data-success, oklch(0.82 0.19 143));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[trend='downward'] {
|
|
39
|
+
color: var(--intergalactic-chart-data-critical, oklch(0.74 0.19 22));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&[trend='stable'] {
|
|
43
|
+
color: var(--intergalactic-text-secondary-invert, oklch(0.997 0.004 165.9 / 0.684));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
STooltipDeltaIcon {
|
|
47
|
+
align-self: center;
|
|
18
48
|
}
|
|
19
49
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
@import './var.css';
|
|
2
2
|
|
|
3
3
|
SArea {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
5
|
-
fill-opacity: 0.
|
|
4
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
5
|
+
fill-opacity: 0.1;
|
|
6
|
+
mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.48) 60%, transparent 100%);
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
SArea[color] {
|
|
@@ -19,8 +20,8 @@ SArea[transparent] {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
SAreaLine {
|
|
22
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
23
|
-
stroke-width:
|
|
23
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
24
|
+
stroke-width: 2;
|
|
24
25
|
fill: transparent;
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -41,7 +42,7 @@ SAreaLine {
|
|
|
41
42
|
|
|
42
43
|
SNull {
|
|
43
44
|
fill: transparent;
|
|
44
|
-
stroke: var(--intergalactic-chart-
|
|
45
|
+
stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.002 177));
|
|
45
46
|
stroke-dasharray: 4;
|
|
46
47
|
}
|
|
47
48
|
|
|
@@ -8,7 +8,7 @@ SAxis[hide] {
|
|
|
8
8
|
|
|
9
9
|
STick {
|
|
10
10
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
11
|
-
fill: var(--intergalactic-chart-grid-text-label, oklch(0.
|
|
11
|
+
fill: var(--intergalactic-chart-grid-text-label, oklch(0.097 0.023 156.5 / 0.468));
|
|
12
12
|
}
|
|
13
13
|
STick[primaryText] {
|
|
14
14
|
fill: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
@@ -25,7 +25,7 @@ SGrid {
|
|
|
25
25
|
|
|
26
26
|
STitle {
|
|
27
27
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
28
|
-
fill: var(--intergalactic-text-hint, oklch(0.
|
|
28
|
+
fill: var(--intergalactic-text-hint, oklch(0.097 0.023 156.5 / 0.468));
|
|
29
29
|
transform-origin: var(--transform-origin);
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import './var.css';
|
|
2
2
|
|
|
3
3
|
SBar {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
4
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
5
5
|
transition-property: height, width, y;
|
|
6
6
|
transition-duration: var(--duration);
|
|
7
7
|
transition-timing-function: ease-in-out;
|
|
@@ -30,7 +30,7 @@ SBar[onClick] {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
SBackground {
|
|
33
|
-
fill: var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.
|
|
33
|
+
fill: var(--intergalactic-chart-grid-bar-chart-base-bg, oklch(0.96 0.001 180));
|
|
34
34
|
opacity: 0.4;
|
|
35
35
|
}
|
|
36
36
|
SBackground[onClick] {
|
|
@@ -45,13 +45,13 @@ SBarLabel {
|
|
|
45
45
|
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
46
46
|
margin-right: auto;
|
|
47
47
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
48
|
-
line-height: var(--intergalactic-lh-200,
|
|
48
|
+
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
49
49
|
}
|
|
50
50
|
SBarPercent {
|
|
51
|
-
color: var(--intergalactic-text-secondary, oklch(0.
|
|
51
|
+
color: var(--intergalactic-text-secondary, oklch(0.097 0.023 156.5 / 0.468));
|
|
52
52
|
margin-right: var(--intergalactic-spacing-2x, 8px);
|
|
53
53
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
54
|
-
line-height: var(--intergalactic-lh-200,
|
|
54
|
+
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
55
55
|
}
|
|
56
56
|
SBarValue {
|
|
57
57
|
min-width: 52px;
|
|
@@ -59,9 +59,9 @@ SBarValue {
|
|
|
59
59
|
justify-content: flex-end;
|
|
60
60
|
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
61
61
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
62
|
-
line-height: var(--intergalactic-lh-200,
|
|
62
|
+
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
63
63
|
text-align: right;
|
|
64
64
|
}
|
|
65
65
|
SCompactHorizontalBarHoverRect {
|
|
66
|
-
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.
|
|
66
|
+
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.042));
|
|
67
67
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import './var.css';
|
|
2
2
|
|
|
3
3
|
SBubble {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
5
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
4
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
5
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
6
6
|
stroke-width: 2px;
|
|
7
7
|
transition-property: cx, cy;
|
|
8
8
|
transition-duration: var(--duration);
|
|
@@ -40,7 +40,7 @@ SCenter {
|
|
|
40
40
|
text-anchor: middle;
|
|
41
41
|
/* disable-tokens-validator */
|
|
42
42
|
font-size: calc(var(--intergalactic-fs-100, 12px) - 1px);
|
|
43
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
43
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
SCenter[color] {
|
|
@@ -52,7 +52,7 @@ SCenter[transparent] {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
SLabel {
|
|
55
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
55
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
SLabel[position='right'] {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import './var.css';
|
|
2
2
|
|
|
3
3
|
SPie {
|
|
4
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
5
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
4
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
5
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
SPie[color] {
|
|
@@ -31,6 +31,6 @@ SLabel {
|
|
|
31
31
|
text-anchor: middle;
|
|
32
32
|
vertical-anchor: middle;
|
|
33
33
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
34
|
-
line-height: var(--intergalactic-lh-200,
|
|
34
|
+
line-height: var(--intergalactic-lh-200, 1.4286);
|
|
35
35
|
|
|
36
36
|
}
|
|
@@ -8,12 +8,18 @@ SDots {
|
|
|
8
8
|
|
|
9
9
|
SDot {
|
|
10
10
|
stroke-width: 1px;
|
|
11
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
12
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
13
|
-
transition-property: cx, cy, x, y;
|
|
11
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
12
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
13
|
+
transition-property: cx, cy, x, y, filter;
|
|
14
14
|
transition-timing-function: ease-in-out;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
SDot[active] {
|
|
18
|
+
filter:
|
|
19
|
+
drop-shadow(0 0 1px oklch(0.137 0.026 175.7 / 0.161))
|
|
20
|
+
drop-shadow(0 1px 1px oklch(0.137 0.026 175.7 / 0.161));
|
|
21
|
+
}
|
|
22
|
+
|
|
17
23
|
SDot[hide] {
|
|
18
24
|
display: none;
|
|
19
25
|
}
|
|
@@ -5,5 +5,23 @@ SHoverLine, SHoverLine:focus-visible {
|
|
|
5
5
|
|
|
6
6
|
SHoverRect, SHoverRect:focus-visible {
|
|
7
7
|
outline: none;
|
|
8
|
-
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.
|
|
8
|
+
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.042));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
STick {
|
|
12
|
+
font-size: var(--intergalactic-fs-100, 12px);
|
|
13
|
+
fill: var(--intergalactic-chart-grid-text-label, oklch(0.097 0.023 156.5 / 0.468));
|
|
14
|
+
transform: translateY(12px);
|
|
15
|
+
text-anchor: middle;
|
|
16
|
+
dominant-baseline: hanging;
|
|
17
|
+
|
|
18
|
+
tspan {
|
|
19
|
+
dominant-baseline: hanging;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
cursor: default;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
STickHover {
|
|
26
|
+
fill: var(--intergalactic-chart-x-axis-accent-tick, oklch(0.96 0.001 180));
|
|
9
27
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
SLine {
|
|
4
4
|
fill: transparent;
|
|
5
|
-
stroke-width:
|
|
6
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
5
|
+
stroke-width: 2;
|
|
6
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
7
7
|
transition-property: d;
|
|
8
8
|
transition-duration: var(--duration);
|
|
9
9
|
transition-timing-function: ease-in-out;
|
|
@@ -23,7 +23,7 @@ SLine[transparent] {
|
|
|
23
23
|
|
|
24
24
|
SNull {
|
|
25
25
|
fill: transparent;
|
|
26
|
-
stroke: var(--intergalactic-
|
|
26
|
+
stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.002 177));
|
|
27
27
|
stroke-dasharray: 4;
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -36,7 +36,7 @@ SLineArea {
|
|
|
36
36
|
transition-duration: var(--duration);
|
|
37
37
|
transition-timing-function: ease-in-out;
|
|
38
38
|
opacity: 0.3;
|
|
39
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
39
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
40
40
|
}
|
|
41
41
|
SLineArea[color] {
|
|
42
42
|
fill: var(--color);
|
|
@@ -31,7 +31,7 @@ SAxisLabel[yDirection] {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
SPolygon {
|
|
34
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
34
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
35
35
|
opacity: 0.2;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -47,9 +47,9 @@ SPolygon[pattern][color] {
|
|
|
47
47
|
|
|
48
48
|
SPolygonDot {
|
|
49
49
|
stroke-width: 2px;
|
|
50
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
50
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
51
51
|
r: 6px;
|
|
52
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
52
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
SPolygonDot[transparent] {
|
|
@@ -61,7 +61,7 @@ SPolygonDot[color] {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
SPolygonLine {
|
|
64
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
64
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
65
65
|
stroke-width: 3;
|
|
66
66
|
fill: transparent;
|
|
67
67
|
}
|
|
@@ -76,5 +76,5 @@ SPolygonLine[color] {
|
|
|
76
76
|
|
|
77
77
|
SPieRect {
|
|
78
78
|
outline: none;
|
|
79
|
-
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.
|
|
79
|
+
fill: var(--intergalactic-chart-grid-bar-chart-hover, oklch(0.177 0.033 175.6 / 0.042));
|
|
80
80
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
SRadian {
|
|
4
4
|
cursor: pointer;
|
|
5
|
-
fill: var(--intergalactic-text-large-info, oklch(0.
|
|
5
|
+
fill: var(--intergalactic-text-large-info, oklch(0.6 0.166 277.7));
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
SLine {
|
|
9
|
-
stroke: var(--intergalactic-text-large-info, oklch(0.
|
|
9
|
+
stroke: var(--intergalactic-text-large-info, oklch(0.6 0.166 277.7));
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
SLine[stroke] {
|
|
@@ -22,7 +22,7 @@ SCap {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
SCap[pattern] {
|
|
25
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
25
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
26
26
|
stroke-width: 1px;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -5,7 +5,7 @@ SReferenceLine {
|
|
|
5
5
|
|
|
6
6
|
STitle {
|
|
7
7
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
8
|
-
fill: var(--intergalactic-chart-grid-text-label, oklch(0.
|
|
8
|
+
fill: var(--intergalactic-chart-grid-text-label, oklch(0.097 0.023 156.5 / 0.468));
|
|
9
9
|
transform-origin: var(--transform-origin);
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import './var.css';
|
|
2
2
|
|
|
3
3
|
SScatterPlot {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.
|
|
4
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.01 140));
|
|
5
5
|
transition-property: cx, cy;
|
|
6
6
|
transition-duration: var(--duration);
|
|
7
7
|
transition-timing-function: ease-in-out;
|
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
STooltip {
|
|
4
4
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
5
|
-
line-height: var(--intergalactic-lh-100,
|
|
5
|
+
line-height: var(--intergalactic-lh-100, 1.3334);
|
|
6
|
+
font-variant-numeric: tabular-nums;
|
|
6
7
|
position: relative;
|
|
7
|
-
|
|
8
|
+
color: var(--intergalactic-text-primary-invert, oklch(0.999 0.001 180 / 0.949));
|
|
9
|
+
background-color: var(--intergalactic-tooltip-bg-invert, oklch(0.23 0.01 140));
|
|
8
10
|
border-radius: var(--intergalactic-popper-rounded, 6px);
|
|
9
|
-
border: 1px solid var(--intergalactic-border-
|
|
11
|
+
border: 1px solid var(--intergalactic-tooltip-border-invert, oklch(0.4 0.004 140));
|
|
10
12
|
box-sizing: border-box;
|
|
11
13
|
box-shadow: var(--intergalactic-box-shadow-popper, 1px 1px 10px 0px oklch(0.176 0.033 175.7 / 0.07));
|
|
12
|
-
padding: var(--intergalactic-spacing-
|
|
14
|
+
padding: var(--intergalactic-spacing-content-padding-medium, 12px);
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
STitle {
|
|
16
|
-
color: var(--intergalactic-text-secondary, oklch(0.
|
|
17
|
-
margin-bottom: var(--intergalactic-spacing-
|
|
18
|
+
color: var(--intergalactic-text-secondary-invert, oklch(0.997 0.004 165.9 / 0.684));
|
|
19
|
+
margin-bottom: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
SDotGroup {
|
|
@@ -23,20 +25,27 @@ SDotGroup {
|
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
SDot {
|
|
26
|
-
margin-right: var(--intergalactic-spacing-
|
|
28
|
+
margin-right: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
SDotCircle[color] {
|
|
31
|
+
SDotCircle[color][lightness] {
|
|
30
32
|
background-color: var(--color);
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
33
|
+
width: 10px;
|
|
34
|
+
height: 10px;
|
|
33
35
|
border-radius: 50%;
|
|
36
|
+
box-shadow: 0 0 0 1px oklch(from var(--color) calc(l + var(--lightness)) c h);
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
|
|
37
40
|
SFooter {
|
|
38
|
-
background: var(--intergalactic-bg-secondary-
|
|
39
|
-
|
|
41
|
+
background: var(--intergalactic-bg-secondary-invert, oklch(0.969 0.057 140 / 0.118));
|
|
42
|
+
color: var(--intergalactic-text-secondary-invert, oklch(0.997 0.004 165.9 / 0.684));
|
|
43
|
+
padding: var(--intergalactic-spacing-content-padding-xsmall, 4px) var(--intergalactic-spacing-content-padding-medium, 12px);
|
|
40
44
|
border-radius: 0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);
|
|
41
|
-
margin: var(--intergalactic-spacing-
|
|
42
|
-
}
|
|
45
|
+
margin: var(--intergalactic-spacing-content-gap-xlarge, 12px) calc(-1 * var(--intergalactic-spacing-content-gap-xlarge, 12px)) calc(-1 * var(--intergalactic-spacing-content-gap-xlarge, 12px));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
SDotPattern {
|
|
49
|
+
stroke-width: 1px;
|
|
50
|
+
stroke: oklch(from var(--intergalactic-chart-grid-border, #ffffff) l c h / 0.5);
|
|
51
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import './var.css';
|
|
2
2
|
|
|
3
3
|
SCircle {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-2, oklch(0.
|
|
5
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
4
|
+
fill: var(--intergalactic-chart-palette-order-2, oklch(0.58 0.168 278.2));
|
|
5
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
6
6
|
stroke-width: 2px;
|
|
7
7
|
fill-opacity: 0.5;
|
|
8
8
|
transition-property: cx, cy;
|
|
@@ -34,7 +34,7 @@ SCircle[transparent] {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
SIntersection {
|
|
37
|
-
stroke: var(--intergalactic-chart-grid-border, #
|
|
37
|
+
stroke: var(--intergalactic-chart-grid-border, #ffffff);
|
|
38
38
|
stroke-width: 2px;
|
|
39
39
|
fill-opacity: 0;
|
|
40
40
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
class TextMeasurer {
|
|
3
|
+
constructor() {
|
|
4
|
+
_defineProperty(this, "store", /* @__PURE__ */ new Map());
|
|
5
|
+
}
|
|
6
|
+
measure(text, fontSize = 12) {
|
|
7
|
+
const key = `${text};${fontSize}`;
|
|
8
|
+
const storedValue = this.store.get(key);
|
|
9
|
+
if (storedValue !== void 0) return storedValue;
|
|
10
|
+
const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
11
|
+
const textEl = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
12
|
+
svg.style.position = "absolute";
|
|
13
|
+
svg.style.visibility = "hidden";
|
|
14
|
+
svg.style.pointerEvents = "none";
|
|
15
|
+
textEl.setAttribute("font-size", String(fontSize));
|
|
16
|
+
textEl.textContent = text;
|
|
17
|
+
svg.appendChild(textEl);
|
|
18
|
+
document.body.appendChild(svg);
|
|
19
|
+
const bbox = textEl.getBBox();
|
|
20
|
+
this.store.set(key, bbox);
|
|
21
|
+
svg.remove();
|
|
22
|
+
return bbox;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
TextMeasurer
|
|
27
|
+
};
|