@semcore/d3-chart 18.0.0-prerelease.1 → 18.0.0-prerelease.5
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 +52 -1
- package/README.md +0 -1
- package/lib/cjs/Area.js +123 -23
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +109 -97
- 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/ChartMetaData.js +44 -0
- package/lib/cjs/ChartMetaData.js.map +1 -0
- package/lib/cjs/CompactHorizontalBar.js +17 -17
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +18 -19
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +67 -13
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +5 -2
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +16 -16
- package/lib/cjs/Hover.js +55 -52
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +82 -17
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +113 -2
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +5 -2
- 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 +55 -18
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/Tooltip.js +16 -14
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +9 -9
- package/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/lib/cjs/component/Chart/AbstractChart.js +29 -23
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.type.js +19 -0
- package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js +21 -7
- 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 +17 -8
- 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 +4 -0
- 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 +5 -1
- 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.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +0 -1
- 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 -3
- 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 +16 -6
- 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.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/index.js +43 -0
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +0 -4
- package/lib/cjs/component/ChartLegend/BaseLegend.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 +19 -17
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +28 -21
- 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 +31 -15
- package/lib/cjs/component/Cigarette/Cigarette.js +0 -1
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/Metric/Metric.js +78 -0
- package/lib/cjs/component/Metric/Metric.js.map +1 -0
- package/lib/cjs/component/Metric/Metric.type.js +2 -0
- package/lib/cjs/component/Metric/Metric.type.js.map +1 -0
- package/lib/cjs/index.js +62 -8
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/abstract-chart.shadow.css +13 -3
- package/lib/cjs/style/area.shadow.css +8 -7
- package/lib/cjs/style/axis.shadow.css +51 -60
- package/lib/cjs/style/bar.shadow.css +7 -9
- package/lib/cjs/style/bubble.shadow.css +4 -6
- package/lib/cjs/style/donut.shadow.css +3 -5
- package/lib/cjs/style/dot.shadow.css +37 -4
- package/lib/cjs/style/hover.shadow.css +30 -13
- package/lib/cjs/style/line.shadow.css +3 -5
- package/lib/cjs/style/pattern.shadow.css +10 -0
- package/lib/cjs/style/plotA11yView.shadow.css +3 -3
- package/lib/cjs/style/radar.shadow.css +7 -7
- package/lib/cjs/style/radial-tree.shadow.css +3 -5
- package/lib/cjs/style/reference.shadow.css +5 -5
- package/lib/cjs/style/scatterplot.shadow.css +2 -4
- package/lib/cjs/style/tooltip.shadow.css +12 -14
- package/lib/cjs/style/venn.shadow.css +0 -2
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/types/index.d.js +20 -0
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +21 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/Area.js +125 -25
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +109 -97
- 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/ChartMetaData.js +36 -0
- package/lib/es6/ChartMetaData.js.map +1 -0
- package/lib/es6/CompactHorizontalBar.js +17 -17
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +18 -19
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +68 -14
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +5 -2
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +16 -16
- package/lib/es6/Hover.js +55 -52
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +84 -19
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +108 -2
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +5 -2
- 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 +55 -18
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/Tooltip.js +16 -14
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +9 -9
- package/lib/es6/a11y/PlotA11yView.js +2 -2
- package/lib/es6/component/Chart/AbstractChart.js +29 -23
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.type.js +14 -1
- package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js +21 -7
- 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 +17 -8
- 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 +4 -0
- 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 +5 -1
- 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.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +0 -1
- 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 -3
- 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 +14 -4
- 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.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/Chart/index.js +2 -0
- package/lib/es6/component/Chart/index.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +0 -4
- package/lib/es6/component/ChartLegend/BaseLegend.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 +19 -17
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +28 -21
- 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 +31 -15
- package/lib/es6/component/Cigarette/Cigarette.js +0 -1
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/Metric/Metric.js +72 -0
- package/lib/es6/component/Metric/Metric.js.map +1 -0
- package/lib/es6/component/Metric/Metric.type.js +2 -0
- package/lib/es6/component/Metric/Metric.type.js.map +1 -0
- package/lib/es6/index.js +2 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/abstract-chart.shadow.css +13 -3
- package/lib/es6/style/area.shadow.css +8 -7
- package/lib/es6/style/axis.shadow.css +51 -60
- package/lib/es6/style/bar.shadow.css +7 -9
- package/lib/es6/style/bubble.shadow.css +4 -6
- package/lib/es6/style/donut.shadow.css +3 -5
- package/lib/es6/style/dot.shadow.css +37 -4
- package/lib/es6/style/hover.shadow.css +30 -13
- package/lib/es6/style/line.shadow.css +3 -5
- package/lib/es6/style/pattern.shadow.css +10 -0
- package/lib/es6/style/plotA11yView.shadow.css +3 -3
- package/lib/es6/style/radar.shadow.css +7 -7
- package/lib/es6/style/radial-tree.shadow.css +3 -5
- package/lib/es6/style/reference.shadow.css +5 -5
- package/lib/es6/style/scatterplot.shadow.css +2 -4
- package/lib/es6/style/tooltip.shadow.css +12 -14
- package/lib/es6/style/venn.shadow.css +0 -2
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/types/index.d.js +5 -7
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +18 -0
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/Area.mjs +127 -26
- package/lib/esm/Axis.mjs +110 -98
- package/lib/esm/Bar.mjs +17 -17
- package/lib/esm/Bubble.mjs +15 -15
- package/lib/esm/ChartMetaData.mjs +38 -0
- package/lib/esm/CompactHorizontalBar.mjs +18 -18
- package/lib/esm/Donut.mjs +19 -20
- package/lib/esm/Dots.mjs +66 -15
- package/lib/esm/GroupBar.mjs +5 -2
- package/lib/esm/HorizontalBar.mjs +17 -17
- package/lib/esm/Hover.mjs +56 -53
- package/lib/esm/Line.mjs +86 -20
- package/lib/esm/Pattern.mjs +119 -0
- package/lib/esm/Plot.mjs +6 -3
- package/lib/esm/Radar.mjs +20 -20
- package/lib/esm/RadialTree.mjs +13 -13
- package/lib/esm/Reference.mjs +56 -19
- package/lib/esm/ScatterPlot.mjs +10 -10
- package/lib/esm/Tooltip.mjs +17 -15
- package/lib/esm/Venn.mjs +10 -10
- package/lib/esm/a11y/PlotA11yView.mjs +3 -3
- package/lib/esm/component/Chart/AbstractChart.mjs +28 -24
- package/lib/esm/component/Chart/AbstractChart.type.mjs +16 -0
- package/lib/esm/component/Chart/AreaChart.mjs +21 -7
- package/lib/esm/component/Chart/BarChart.mjs +17 -8
- package/lib/esm/component/Chart/BubbleChart.mjs +4 -0
- package/lib/esm/component/Chart/CigaretteChart.mjs +5 -1
- package/lib/esm/component/Chart/DonutChart.mjs +0 -1
- package/lib/esm/component/Chart/HistogramChart.mjs +6 -3
- package/lib/esm/component/Chart/LineChart.mjs +14 -4
- package/lib/esm/component/Chart/index.mjs +8 -0
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +0 -4
- 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 +20 -18
- package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +29 -22
- package/lib/esm/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
- package/lib/esm/component/Cigarette/Cigarette.mjs +0 -1
- package/lib/esm/component/Metric/Metric.mjs +62 -0
- package/lib/esm/index.mjs +42 -34
- package/lib/esm/style/abstract-chart.shadow.css +13 -3
- package/lib/esm/style/area.shadow.css +8 -7
- package/lib/esm/style/axis.shadow.css +51 -60
- package/lib/esm/style/bar.shadow.css +7 -9
- package/lib/esm/style/bubble.shadow.css +4 -6
- package/lib/esm/style/donut.shadow.css +3 -5
- package/lib/esm/style/dot.shadow.css +37 -4
- package/lib/esm/style/hover.shadow.css +30 -13
- package/lib/esm/style/line.shadow.css +3 -5
- package/lib/esm/style/pattern.shadow.css +10 -0
- package/lib/esm/style/plotA11yView.shadow.css +3 -3
- package/lib/esm/style/radar.shadow.css +7 -7
- package/lib/esm/style/radial-tree.shadow.css +3 -5
- package/lib/esm/style/reference.shadow.css +5 -5
- package/lib/esm/style/scatterplot.shadow.css +2 -4
- package/lib/esm/style/tooltip.shadow.css +12 -14
- package/lib/esm/style/venn.shadow.css +0 -2
- package/lib/esm/utils.mjs +20 -0
- package/lib/types/Axis.d.ts +3 -2
- package/lib/types/ChartMetaData.d.ts +17 -0
- package/lib/types/ChartMetaData.d.ts.map +1 -0
- package/lib/types/Donut.d.ts +1 -1
- package/lib/types/Hover.d.ts +2 -0
- package/lib/types/Pattern.d.ts +18 -0
- package/lib/types/Pattern.d.ts.map +1 -1
- package/lib/types/component/Chart/AbstractChart.d.ts +8 -4
- package/lib/types/component/Chart/AbstractChart.d.ts.map +1 -1
- package/lib/types/component/Chart/AbstractChart.type.d.ts +28 -8
- 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 +8 -4
- 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 +3 -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 +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/CigaretteChart.d.ts.map +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -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 +1 -2
- 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.type.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/index.d.ts +2 -0
- package/lib/types/component/Chart/index.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.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 +5 -3
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts.map +1 -1
- package/lib/types/component/Metric/Metric.d.ts +9 -0
- package/lib/types/component/Metric/Metric.d.ts.map +1 -0
- package/lib/types/component/Metric/Metric.type.d.ts +33 -0
- package/lib/types/component/Metric/Metric.type.d.ts.map +1 -0
- package/lib/types/index.d.ts +5 -7
- package/lib/types/utils.d.ts +4 -1
- package/lib/types/utils.d.ts.map +1 -1
- package/package.json +16 -15
- package/lib/cjs/color.js +0 -132
- package/lib/cjs/color.js.map +0 -1
- package/lib/cjs/style/var.css +0 -125
- package/lib/es6/color.js +0 -127
- package/lib/es6/color.js.map +0 -1
- package/lib/es6/style/var.css +0 -125
- package/lib/esm/color.mjs +0 -127
- package/lib/esm/utils/TextMeasurer.mjs +0 -27
|
@@ -14,26 +14,26 @@ const style = (
|
|
|
14
14
|
/*__reshadow_css_start__*/
|
|
15
15
|
(sstyled.insert(
|
|
16
16
|
/*__inner_css_start__*/
|
|
17
|
-
'.
|
|
17
|
+
'.___SLegendItem_10kc6_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_10kc6_gg_:hover{cursor:pointer}.___SLegendItem_10kc6_gg_.__disabled_10kc6_gg_:hover{cursor:default}}.___SLegendItem_10kc6_gg_.__transparent_10kc6_gg_{opacity:.3}.___SPointShape_10kc6_gg_.__color_10kc6_gg_{background-color:var(--color_10kc6);margin-right:var(--intergalactic-spacing-1-5x,6px);flex-shrink:0}.___SPointShape_10kc6_gg_._shape_Circle_10kc6_gg_._size_l_10kc6_gg_{width:16px;height:16px;border-radius:8px;margin-top:var(--intergalactic-spacing-1x,4px)}.___SPointShape_10kc6_gg_._shape_Circle_10kc6_gg_._size_m_10kc6_gg_{width:12px;height:12px;border-radius:6px;margin-top:var(--intergalactic-spacing-1x,4px)}.___SPointShape_10kc6_gg_._shape_Pattern_10kc6_gg_{background-color:initial;margin-right:var(--intergalactic-spacing-1x,4px)}.___SIcon_10kc6_gg_{line-height:0;margin-right:var(--intergalactic-spacing-1x,4px)}.___SIcon_10kc6_gg_._size_l_10kc6_gg_{margin-top:var(--intergalactic-spacing-1x,4px)}.___SIcon_10kc6_gg_._size_m_10kc6_gg_{margin-top:var(--intergalactic-spacing-05x,2px)}.___SLabel_10kc6_gg_{min-width:0}.___SAdditionalLabel_10kc6_gg_._size_l_10kc6_gg_,.___SCount_10kc6_gg_._size_l_10kc6_gg_,.___SLabel_10kc6_gg_._size_l_10kc6_gg_{font-size:var(--intergalactic-fs-300,16px);line-height:var(--intergalactic-lh-300,1.5)}.___SAdditionalLabel_10kc6_gg_._size_m_10kc6_gg_,.___SCount_10kc6_gg_._size_m_10kc6_gg_,.___SLabel_10kc6_gg_._size_m_10kc6_gg_{font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,1.4286)}.___SAdditionalLabel_10kc6_gg_,.___SCount_10kc6_gg_{margin-left:var(--intergalactic-spacing-1x,4px)}.___SAdditionalLabel_10kc6_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_10kc6_gg_:before{content:"";display:inline-block;background-color:var(--intergalactic-text-secondary,oklch(.182 .045 244.8/.593));height:4px;width:4px;border-radius:2px;margin-right:var(--intergalactic-spacing-1x,4px)}.___SAdditionalLabel_10kc6_gg_._size_l_10kc6_gg_:before{margin-top:10px}.___SAdditionalLabel_10kc6_gg_._size_m_10kc6_gg_:before{margin-top:8px}.___SPatternSymbol_10kc6_gg_{transform:scale(.8)}',
|
|
18
18
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
19
|
+
"10kc6_gg_"
|
|
20
20
|
), /*__reshadow_css_end__*/
|
|
21
21
|
{
|
|
22
|
-
"__SLegendItem": "
|
|
23
|
-
"_disabled": "
|
|
24
|
-
"_transparent": "
|
|
25
|
-
"__SPointShape": "
|
|
26
|
-
"_color": "
|
|
27
|
-
"--color": "--
|
|
28
|
-
"_shape_Circle": "
|
|
29
|
-
"_size_l": "
|
|
30
|
-
"_size_m": "
|
|
31
|
-
"_shape_Pattern": "
|
|
32
|
-
"__SIcon": "
|
|
33
|
-
"__SLabel": "
|
|
34
|
-
"__SAdditionalLabel": "
|
|
35
|
-
"__SCount": "
|
|
36
|
-
"__SPatternSymbol": "
|
|
22
|
+
"__SLegendItem": "___SLegendItem_10kc6_gg_",
|
|
23
|
+
"_disabled": "__disabled_10kc6_gg_",
|
|
24
|
+
"_transparent": "__transparent_10kc6_gg_",
|
|
25
|
+
"__SPointShape": "___SPointShape_10kc6_gg_",
|
|
26
|
+
"_color": "__color_10kc6_gg_",
|
|
27
|
+
"--color": "--color_10kc6",
|
|
28
|
+
"_shape_Circle": "_shape_Circle_10kc6_gg_",
|
|
29
|
+
"_size_l": "_size_l_10kc6_gg_",
|
|
30
|
+
"_size_m": "_size_m_10kc6_gg_",
|
|
31
|
+
"_shape_Pattern": "_shape_Pattern_10kc6_gg_",
|
|
32
|
+
"__SIcon": "___SIcon_10kc6_gg_",
|
|
33
|
+
"__SLabel": "___SLabel_10kc6_gg_",
|
|
34
|
+
"__SAdditionalLabel": "___SAdditionalLabel_10kc6_gg_",
|
|
35
|
+
"__SCount": "___SCount_10kc6_gg_",
|
|
36
|
+
"__SPatternSymbol": "___SPatternSymbol_10kc6_gg_"
|
|
37
37
|
})
|
|
38
38
|
);
|
|
39
39
|
const enhance = [resolveColorEnhance(), uniqueIDEnhancement()];
|
|
@@ -206,7 +206,9 @@ function Shape(props) {
|
|
|
206
206
|
if (shape === "Pattern") {
|
|
207
207
|
var _ref8;
|
|
208
208
|
return _ref8 = sstyled(styles), /* @__PURE__ */ React.createElement(Box, _ref8.cn("Box", {
|
|
209
|
-
"mr": 1
|
|
209
|
+
"mr": 1,
|
|
210
|
+
"mt": "1px",
|
|
211
|
+
"mb": "-1px"
|
|
210
212
|
}), /* @__PURE__ */ React.createElement(SPatternSymbol, _ref8.cn("SPatternSymbol", {
|
|
211
213
|
"color": color,
|
|
212
214
|
"patternKey": patternKey,
|
|
@@ -17,7 +17,7 @@ SLegendItem[transparent] {
|
|
|
17
17
|
|
|
18
18
|
SPointShape[color] {
|
|
19
19
|
background-color: var(--color);
|
|
20
|
-
margin-right: var(--intergalactic-spacing-
|
|
20
|
+
margin-right: var(--intergalactic-spacing-1-5x, 6px);
|
|
21
21
|
flex-shrink: 0;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -25,32 +25,32 @@ SPointShape[shape='Circle'][size='l'] {
|
|
|
25
25
|
width: 16px;
|
|
26
26
|
height: 16px;
|
|
27
27
|
border-radius: 8px;
|
|
28
|
-
margin-top: var(--intergalactic-spacing-
|
|
28
|
+
margin-top: var(--intergalactic-spacing-1x, 4px);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
SPointShape[shape='Circle'][size='m'] {
|
|
32
32
|
width: 12px;
|
|
33
33
|
height: 12px;
|
|
34
34
|
border-radius: 6px;
|
|
35
|
-
margin-top: var(--intergalactic-spacing-
|
|
35
|
+
margin-top: var(--intergalactic-spacing-1x, 4px);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
SPointShape[shape='Pattern'] {
|
|
39
39
|
background-color: transparent;
|
|
40
|
-
margin-right: var(--intergalactic-spacing-
|
|
40
|
+
margin-right: var(--intergalactic-spacing-1x, 4px);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
SIcon {
|
|
44
44
|
line-height: 0;
|
|
45
|
-
margin-right: var(--intergalactic-spacing-
|
|
45
|
+
margin-right: var(--intergalactic-spacing-1x, 4px);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
SIcon[size='l'] {
|
|
49
|
-
margin-top: var(--intergalactic-spacing-
|
|
49
|
+
margin-top: var(--intergalactic-spacing-1x, 4px);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
SIcon[size='m'] {
|
|
53
|
-
margin-top: var(--intergalactic-spacing-
|
|
53
|
+
margin-top: var(--intergalactic-spacing-05x, 2px);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
SLabel {
|
|
@@ -73,7 +73,7 @@ SCount[size='m'] {
|
|
|
73
73
|
|
|
74
74
|
SAdditionalLabel,
|
|
75
75
|
SCount {
|
|
76
|
-
margin-left: var(--intergalactic-spacing-
|
|
76
|
+
margin-left: var(--intergalactic-spacing-1x, 4px);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
SAdditionalLabel {
|
|
@@ -85,11 +85,11 @@ SAdditionalLabel {
|
|
|
85
85
|
SAdditionalLabel::before {
|
|
86
86
|
content: '';
|
|
87
87
|
display: inline-block;
|
|
88
|
-
background-color: var(--intergalactic-text-secondary, oklch(0.
|
|
88
|
+
background-color: var(--intergalactic-text-secondary, oklch(0.182 0.045 244.8 / 0.593));
|
|
89
89
|
height: 4px;
|
|
90
90
|
width: 4px;
|
|
91
91
|
border-radius: 2px;
|
|
92
|
-
margin-right: var(--intergalactic-spacing-
|
|
92
|
+
margin-right: var(--intergalactic-spacing-1x, 4px);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
SAdditionalLabel[size='l']::before {
|
|
@@ -102,4 +102,4 @@ SAdditionalLabel[size='m']::before {
|
|
|
102
102
|
|
|
103
103
|
SPatternSymbol {
|
|
104
104
|
transform: scale(0.8);
|
|
105
|
-
}
|
|
105
|
+
}
|
|
@@ -9,17 +9,21 @@ const style = (
|
|
|
9
9
|
/*__reshadow_css_start__*/
|
|
10
10
|
(sstyled.insert(
|
|
11
11
|
/*__inner_css_start__*/
|
|
12
|
-
'.
|
|
12
|
+
'.___SLegendTable_13s97_gg_.__additions-count_13s97_gg_{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;display:grid;align-items:center;grid-column-gap:var(--intergalactic-spacing-2x,8px)}.___SLegendTable_13s97_gg_.__additions-count_13s97_gg_._additions-direction_columns_13s97_gg_{grid-template-columns:auto repeat(var(--additions-count_13s97),.2fr);height:-moz-fit-content;height:fit-content;grid-row-gap:var(--intergalactic-spacing-2x,8px)}.___SLegendTable_13s97_gg_.__additions-count_13s97_gg_._additions-direction_columns_13s97_gg_>.___SColumnItem_13s97_gg_{text-align:right}.___SLegendTable_13s97_gg_.__additions-count_13s97_gg_._additions-direction_rows_13s97_gg_{grid-template-rows:auto repeat(var(--additions-count_13s97),.2fr);grid-auto-flow:column;grid-row-gap:var(--intergalactic-spacing-1x,4px);grid-column-gap:var(--intergalactic-spacing-14x,56px);grid-template-columns:repeat(var(--items-count_13s97),max-content)}.___SColumnItem_13s97_gg_{white-space:nowrap}.___SColumnItem_13s97_gg_._size_l_13s97_gg_{font-size:var(--intergalactic-fs-300,16px)}.___SColumnItem_13s97_gg_._size_m_13s97_gg_{font-size:var(--intergalactic-fs-200,14px)}.___SColumnItem_13s97_gg_.__transparent_13s97_gg_{opacity:.3}',
|
|
13
13
|
/*__inner_css_end__*/
|
|
14
|
-
"
|
|
14
|
+
"13s97_gg_"
|
|
15
15
|
), /*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SLegendTable": "
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
17
|
+
"__SLegendTable": "___SLegendTable_13s97_gg_",
|
|
18
|
+
"_additions-count": "__additions-count_13s97_gg_",
|
|
19
|
+
"_additions-direction_columns": "_additions-direction_columns_13s97_gg_",
|
|
20
|
+
"--additions-count": "--additions-count_13s97",
|
|
21
|
+
"__SColumnItem": "___SColumnItem_13s97_gg_",
|
|
22
|
+
"_additions-direction_rows": "_additions-direction_rows_13s97_gg_",
|
|
23
|
+
"--items-count": "--items-count_13s97",
|
|
24
|
+
"_size_l": "_size_l_13s97_gg_",
|
|
25
|
+
"_size_m": "_size_m_13s97_gg_",
|
|
26
|
+
"_transparent": "__transparent_13s97_gg_"
|
|
23
27
|
})
|
|
24
28
|
);
|
|
25
29
|
class LegendTableRoot extends BaseLegend {
|
|
@@ -33,28 +37,35 @@ class LegendTableRoot extends BaseLegend {
|
|
|
33
37
|
items,
|
|
34
38
|
highlightedItem
|
|
35
39
|
} = this.asProps;
|
|
36
|
-
|
|
40
|
+
if (!items[0]) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
const direction = "columns" in items[0] ? "columns" : "rows";
|
|
44
|
+
const additionsCount = "columns" in items[0] ? items[0]?.columns.length : items[0]?.rows.length;
|
|
37
45
|
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SLegendTable, _ref3.cn("SLegendTable", {
|
|
38
46
|
...assignProps({
|
|
39
|
-
"
|
|
40
|
-
"role": "group"
|
|
47
|
+
"additions-count": additionsCount,
|
|
48
|
+
"role": "group",
|
|
49
|
+
"additions-direction": direction,
|
|
50
|
+
"items-count": items.length
|
|
41
51
|
}, _ref)
|
|
42
|
-
}), items.map(({
|
|
43
|
-
id
|
|
44
|
-
|
|
45
|
-
}, _index) => {
|
|
52
|
+
}), items.map((legendItem, _index) => {
|
|
53
|
+
const id = legendItem.id;
|
|
54
|
+
const additions = "columns" in legendItem ? legendItem.columns : legendItem.rows;
|
|
46
55
|
const isTransparent = highlightedItem !== void 0 && highlightedItem !== -1 && highlightedItem !== _index;
|
|
47
56
|
return /* @__PURE__ */ React.createElement(React.Fragment, {
|
|
48
57
|
key: id
|
|
49
|
-
}, /* @__PURE__ */ React.createElement(Children, null),
|
|
58
|
+
}, /* @__PURE__ */ React.createElement(Children, null), additions.map((additionItem, index) => {
|
|
50
59
|
return /* @__PURE__ */ React.createElement(React.Fragment, {
|
|
51
60
|
key: `${id}__${index}`
|
|
52
61
|
}, /* @__PURE__ */ React.createElement(LegendTable.Column, {
|
|
53
62
|
index,
|
|
54
63
|
size,
|
|
55
64
|
styles,
|
|
56
|
-
transparent: isTransparent
|
|
57
|
-
|
|
65
|
+
transparent: isTransparent,
|
|
66
|
+
onMouseEnter: legendItem.checked ? this.bindOnMouseEnterItem(legendItem.id) : void 0,
|
|
67
|
+
onMouseLeave: this.bindOnMouseLeaveItem(legendItem.id)
|
|
68
|
+
}, additionItem));
|
|
58
69
|
}));
|
|
59
70
|
}));
|
|
60
71
|
}
|
|
@@ -75,10 +86,6 @@ function ColumnComponent(props) {
|
|
|
75
86
|
} = props;
|
|
76
87
|
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SColumnItem, _ref4.cn("SColumnItem", {
|
|
77
88
|
...assignProps({
|
|
78
|
-
"style": {
|
|
79
|
-
gridColumnStart: `${index + 2}`,
|
|
80
|
-
gridColumnEnd: `${index + 3}`
|
|
81
|
-
},
|
|
82
89
|
"size": size
|
|
83
90
|
}, _ref2)
|
|
84
91
|
}), /* @__PURE__ */ React.createElement(Children, _ref4.cn("Children", {})));
|
|
@@ -1,23 +1,39 @@
|
|
|
1
|
-
SLegendTable[
|
|
1
|
+
SLegendTable[additions-count] {
|
|
2
2
|
font-variant-numeric: tabular-nums;
|
|
3
3
|
display: grid;
|
|
4
|
-
grid-template-columns: auto 0.2fr;
|
|
5
4
|
align-items: center;
|
|
6
|
-
|
|
7
|
-
grid-column-gap: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
8
|
-
grid-row-gap: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
9
|
-
}
|
|
5
|
+
grid-column-gap: var(--intergalactic-spacing-2x, 8px);
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
&[additions-direction='columns'] {
|
|
8
|
+
grid-template-columns: auto repeat(var(--additions-count), 0.2fr);
|
|
9
|
+
height: fit-content;
|
|
10
|
+
grid-row-gap: var(--intergalactic-spacing-2x, 8px);
|
|
15
11
|
|
|
16
|
-
SColumnItem
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
& > SColumnItem {
|
|
13
|
+
text-align: right;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
&[additions-direction='rows'] {
|
|
17
|
+
grid-template-rows: auto repeat(var(--additions-count), 0.2fr);
|
|
18
|
+
grid-auto-flow: column;
|
|
19
|
+
grid-row-gap: var(--intergalactic-spacing-1x, 4px);
|
|
20
|
+
grid-column-gap: var(--intergalactic-spacing-14x, 56px);
|
|
21
|
+
grid-template-columns: repeat(var(--items-count), max-content);
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
|
|
21
|
-
SColumnItem
|
|
22
|
-
|
|
25
|
+
SColumnItem {
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
|
|
28
|
+
&[size='l'] {
|
|
29
|
+
font-size: var(--intergalactic-fs-300, 16px);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[size='m'] {
|
|
33
|
+
font-size: var(--intergalactic-fs-200, 14px);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[transparent] {
|
|
37
|
+
opacity: 0.3;
|
|
38
|
+
}
|
|
23
39
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import { Component, sstyled, assignProps, createComponent } from "@semcore/core";
|
|
3
|
+
import { Flex } from "@semcore/base-components";
|
|
4
|
+
import Link from "@semcore/link";
|
|
5
|
+
import { Text } from "@semcore/typography";
|
|
6
|
+
import React from "react";
|
|
7
|
+
class MetricRoot extends Component {
|
|
8
|
+
getDiffColor() {
|
|
9
|
+
const {
|
|
10
|
+
diffUse
|
|
11
|
+
} = this.asProps;
|
|
12
|
+
switch (diffUse) {
|
|
13
|
+
case "good": {
|
|
14
|
+
return "var(--intergalactic-text-success)";
|
|
15
|
+
}
|
|
16
|
+
case "bad": {
|
|
17
|
+
return "var(--intergalactic-text-critical)";
|
|
18
|
+
}
|
|
19
|
+
default: {
|
|
20
|
+
return "var(--intergalactic-text-secondary)";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
var _ref = this.asProps, _ref2;
|
|
26
|
+
const SMetric = Flex;
|
|
27
|
+
const {
|
|
28
|
+
styles,
|
|
29
|
+
value,
|
|
30
|
+
diffValue,
|
|
31
|
+
href,
|
|
32
|
+
diffIcon: DiffIcon
|
|
33
|
+
} = this.asProps;
|
|
34
|
+
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(SMetric, _ref2.cn("SMetric", {
|
|
35
|
+
...assignProps({
|
|
36
|
+
"mt": -2,
|
|
37
|
+
"pt": 2,
|
|
38
|
+
"gap": 1,
|
|
39
|
+
"alignItems": "baseline",
|
|
40
|
+
"__excludeProps": ["value", "href"]
|
|
41
|
+
}, _ref)
|
|
42
|
+
}), href ? /* @__PURE__ */ React.createElement(Link, _ref2.cn("Link", {
|
|
43
|
+
"href": href
|
|
44
|
+
}), /* @__PURE__ */ React.createElement(Link.Text, {
|
|
45
|
+
size: 500,
|
|
46
|
+
bold: true
|
|
47
|
+
}, value)) : /* @__PURE__ */ React.createElement(Text, _ref2.cn("Text", {
|
|
48
|
+
"size": 500,
|
|
49
|
+
"bold": true
|
|
50
|
+
}), value), /* @__PURE__ */ React.createElement(Text, _ref2.cn("Text", {
|
|
51
|
+
"size": 100,
|
|
52
|
+
"color": this.getDiffColor()
|
|
53
|
+
}), DiffIcon && /* @__PURE__ */ React.createElement(DiffIcon, _ref2.cn("DiffIcon", {
|
|
54
|
+
"height": "8px"
|
|
55
|
+
})), diffValue));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
_defineProperty(MetricRoot, "displayName", "Metric");
|
|
59
|
+
const Metric = createComponent(MetricRoot);
|
|
60
|
+
export {
|
|
61
|
+
Metric as default
|
|
62
|
+
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -3,66 +3,74 @@ import "./component/ChartLegend/index.mjs";
|
|
|
3
3
|
import { default as default3 } from "./component/Chart/index.mjs";
|
|
4
4
|
import { default as default4 } from "./component/StackGroupBar/StackGroupBar.mjs";
|
|
5
5
|
import { SvgElement } from "./component/SvgElement.mjs";
|
|
6
|
+
import { default as default5 } from "./component/Metric/Metric.mjs";
|
|
6
7
|
import { XAxis, YAxis } from "./Axis.mjs";
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
8
|
+
import { default as default6 } from "./Line.mjs";
|
|
9
|
+
import { default as default7 } from "./Bar.mjs";
|
|
10
|
+
import { default as default8 } from "./CompactHorizontalBar.mjs";
|
|
11
|
+
import { default as default9 } from "./HorizontalBar.mjs";
|
|
12
|
+
import { default as default10 } from "./GroupBar.mjs";
|
|
13
|
+
import { default as default11 } from "./StackBar.mjs";
|
|
14
|
+
import { default as default12 } from "./Area.mjs";
|
|
15
|
+
import { default as default13 } from "./StackedArea.mjs";
|
|
16
|
+
import { default as default14 } from "./ScatterPlot.mjs";
|
|
17
|
+
import { default as default15 } from "./Bubble.mjs";
|
|
18
|
+
import { default as default16 } from "./RadialTree.mjs";
|
|
19
|
+
import { default as default17 } from "./Donut.mjs";
|
|
20
|
+
import { default as default18 } from "./Venn.mjs";
|
|
21
|
+
import { default as default19, getLabelOffsetPosition } from "./Radar.mjs";
|
|
22
|
+
import { default as default20 } from "./Tooltip.mjs";
|
|
23
|
+
import { default as default21 } from "./ResponsiveContainer.mjs";
|
|
23
24
|
import { ReferenceBackground, ReferenceLine, ReferenceStripes } from "./Reference.mjs";
|
|
24
25
|
import { HoverLine, HoverRect } from "./Hover.mjs";
|
|
25
26
|
import { PlotEventEmitter, calculateBubbleDomain, getBubbleChartValueScale, getScatterPlotRadius, interpolateValue, minMax } from "./utils.mjs";
|
|
26
|
-
import { colors } from "./color.mjs";
|
|
27
27
|
import { makeDataHintsContainer } from "./a11y/hints.mjs";
|
|
28
28
|
import { PatternFill, PatternSymbol, getPatternSymbolSize } from "./Pattern.mjs";
|
|
29
|
+
import { BAD, DATA_TYPE, FORECAST, GOOD, HIGHLIGHT_DOT, INSIGHTFUL, POTENTIAL } from "./component/Chart/AbstractChart.type.mjs";
|
|
29
30
|
import { LegendFlex } from "./component/ChartLegend/LegendFlex/LegendFlex.mjs";
|
|
30
31
|
import { LegendTable } from "./component/ChartLegend/LegendTable/LegendTable.mjs";
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
default12 as Area,
|
|
34
|
+
BAD,
|
|
35
|
+
default7 as Bar,
|
|
36
|
+
default15 as Bubble,
|
|
35
37
|
default3 as Chart,
|
|
36
38
|
LegendFlex as ChartLegend,
|
|
37
39
|
LegendTable as ChartLegendTable,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
default8 as CompactHorizontalBar,
|
|
41
|
+
DATA_TYPE,
|
|
42
|
+
default17 as Donut,
|
|
43
|
+
FORECAST,
|
|
44
|
+
GOOD,
|
|
45
|
+
default10 as GroupBar,
|
|
46
|
+
HIGHLIGHT_DOT,
|
|
47
|
+
default9 as HorizontalBar,
|
|
42
48
|
HoverLine,
|
|
43
49
|
HoverRect,
|
|
44
|
-
|
|
50
|
+
INSIGHTFUL,
|
|
51
|
+
default6 as Line,
|
|
52
|
+
default5 as Metric,
|
|
53
|
+
POTENTIAL,
|
|
45
54
|
PatternFill,
|
|
46
55
|
PatternSymbol,
|
|
47
56
|
default2 as Plot,
|
|
48
57
|
PlotEventEmitter,
|
|
49
|
-
|
|
50
|
-
|
|
58
|
+
default19 as Radar,
|
|
59
|
+
default16 as RadialTree,
|
|
51
60
|
ReferenceBackground,
|
|
52
61
|
ReferenceLine,
|
|
53
62
|
ReferenceStripes,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
63
|
+
default21 as ResponsiveContainer,
|
|
64
|
+
default14 as ScatterPlot,
|
|
65
|
+
default11 as StackBar,
|
|
57
66
|
default4 as StackGroupBar,
|
|
58
|
-
|
|
67
|
+
default13 as StackedArea,
|
|
59
68
|
SvgElement,
|
|
60
|
-
|
|
61
|
-
|
|
69
|
+
default20 as Tooltip,
|
|
70
|
+
default18 as Venn,
|
|
62
71
|
XAxis,
|
|
63
72
|
YAxis,
|
|
64
73
|
calculateBubbleDomain,
|
|
65
|
-
colors,
|
|
66
74
|
getBubbleChartValueScale,
|
|
67
75
|
getLabelOffsetPosition,
|
|
68
76
|
getPatternSymbolSize,
|
|
@@ -7,7 +7,7 @@ SChart {
|
|
|
7
7
|
|
|
8
8
|
STooltipChildrenWrapper {
|
|
9
9
|
display: grid;
|
|
10
|
-
gap: var(--intergalactic-spacing-
|
|
10
|
+
gap: var(--intergalactic-spacing-2x, 8px);
|
|
11
11
|
align-items: center;
|
|
12
12
|
|
|
13
13
|
&[columnsCount='2'] {
|
|
@@ -28,7 +28,7 @@ STooltipChildrenWrapper {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
STooltipDeltaWrapper {
|
|
31
|
-
gap: var(--intergalactic-spacing-
|
|
31
|
+
gap: var(--intergalactic-spacing-05x, 2px);
|
|
32
32
|
justify-content: flex-end;
|
|
33
33
|
|
|
34
34
|
&[trend='upward'] {
|
|
@@ -40,7 +40,17 @@ STooltipDeltaWrapper {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&[trend='stable'] {
|
|
43
|
-
color: var(--intergalactic-text-secondary-invert, oklch(0.
|
|
43
|
+
color: var(--intergalactic-text-secondary-invert, oklch(0.953 0.025 240.1 / 0.726));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[deltaPercentGrowthColor='bad'] {
|
|
47
|
+
&[trend='upward'] {
|
|
48
|
+
color: var(--intergalactic-chart-data-critical, oklch(0.74 0.19 22));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&[trend='downward'] {
|
|
52
|
+
color: var(--intergalactic-chart-data-success, oklch(0.82 0.19 143));
|
|
53
|
+
}
|
|
44
54
|
}
|
|
45
55
|
|
|
46
56
|
STooltipDeltaIcon {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
@import './var.css';
|
|
2
|
-
|
|
3
1
|
SArea {
|
|
4
|
-
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
2
|
+
fill: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
5
3
|
fill-opacity: 0.1;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
SArea[withGradient] {
|
|
6
7
|
mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.48) 60%, transparent 100%);
|
|
7
8
|
}
|
|
8
9
|
|
|
@@ -12,7 +13,7 @@ SArea[color] {
|
|
|
12
13
|
|
|
13
14
|
SArea[pattern] {
|
|
14
15
|
fill: var(--pattern);
|
|
15
|
-
fill-opacity: 0.
|
|
16
|
+
fill-opacity: 0.5;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
SArea[transparent] {
|
|
@@ -20,7 +21,7 @@ SArea[transparent] {
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
SAreaLine {
|
|
23
|
-
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.
|
|
24
|
+
stroke: var(--intergalactic-chart-palette-order-1, oklch(0.23 0.009 245));
|
|
24
25
|
stroke-width: 2;
|
|
25
26
|
fill: transparent;
|
|
26
27
|
}
|
|
@@ -42,10 +43,10 @@ SAreaLine {
|
|
|
42
43
|
|
|
43
44
|
SNull {
|
|
44
45
|
fill: transparent;
|
|
45
|
-
stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.
|
|
46
|
+
stroke: var(--intergalactic-chart-palette-order-null, oklch(0.9 0.009 234));
|
|
46
47
|
stroke-dasharray: 4;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
SNull[hide] {
|
|
50
51
|
display: none;
|
|
51
|
-
}
|
|
52
|
+
}
|