@semcore/d3-chart 16.7.0-prerelease.3 → 16.7.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/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +18 -16
- 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 +20 -20
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +9 -9
- package/lib/cjs/Dots.js +8 -8
- package/lib/cjs/HorizontalBar.js +17 -17
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +3 -3
- package/lib/cjs/Line.js +9 -9
- package/lib/cjs/Plot.js +6 -9
- 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/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +12 -12
- package/lib/cjs/ResponsiveContainer.js +2 -2
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/StackBar.js +3 -8
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/Tooltip.js +18 -19
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +12 -12
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +37 -79
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +39 -12
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/translations/module/de.json +2 -2
- package/lib/cjs/a11y/translations/module/en.json +2 -2
- package/lib/cjs/a11y/translations/module/es.json +2 -2
- package/lib/cjs/a11y/translations/module/fr.json +2 -2
- package/lib/cjs/a11y/translations/module/it.json +2 -2
- package/lib/cjs/a11y/translations/module/ja.json +2 -2
- package/lib/cjs/a11y/translations/module/ko.json +2 -2
- package/lib/cjs/a11y/translations/module/nl.json +2 -2
- package/lib/cjs/a11y/translations/module/pl.json +2 -2
- package/lib/cjs/a11y/translations/module/pt.json +2 -2
- package/lib/cjs/a11y/translations/module/sv.json +2 -2
- package/lib/cjs/a11y/translations/module/tr.json +2 -2
- package/lib/cjs/a11y/translations/module/vi.json +2 -2
- package/lib/cjs/a11y/translations/module/zh.json +2 -2
- package/lib/cjs/component/Chart/AbstractChart.js +9 -9
- 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.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.js +66 -19
- 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.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +8 -8
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +2 -2
- 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.type.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/ChartLegend/BaseLegend.js +1 -1
- 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 +6 -6
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +23 -23
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +9 -9
- 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/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/style/axis.shadow.css +3 -1
- package/lib/cjs/style/plot.shadow.css +1 -3
- package/lib/cjs/style/plotA11yModule.shadow.css +10 -11
- package/lib/cjs/style/plotA11yView.shadow.css +13 -26
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/types/Line.d.js.map +1 -1
- package/lib/cjs/types/Plot.d.js.map +1 -1
- package/lib/cjs/types/Radar.d.js.map +1 -1
- package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/cjs/types/Tooltip.d.js.map +1 -1
- package/lib/cjs/types/Venn.d.js.map +1 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/Area.js +11 -11
- package/lib/es6/Axis.js +18 -16
- 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 +17 -17
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +9 -9
- package/lib/es6/Dots.js +8 -8
- package/lib/es6/HorizontalBar.js +17 -17
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +3 -3
- package/lib/es6/Line.js +9 -9
- package/lib/es6/Plot.js +5 -8
- 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/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +12 -12
- package/lib/es6/ResponsiveContainer.js +1 -1
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/StackBar.js +3 -8
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/Tooltip.js +10 -11
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +10 -10
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +36 -80
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +37 -10
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/translations/module/de.json +2 -2
- package/lib/es6/a11y/translations/module/en.json +2 -2
- package/lib/es6/a11y/translations/module/es.json +2 -2
- package/lib/es6/a11y/translations/module/fr.json +2 -2
- package/lib/es6/a11y/translations/module/it.json +2 -2
- package/lib/es6/a11y/translations/module/ja.json +2 -2
- package/lib/es6/a11y/translations/module/ko.json +2 -2
- package/lib/es6/a11y/translations/module/nl.json +2 -2
- package/lib/es6/a11y/translations/module/pl.json +2 -2
- package/lib/es6/a11y/translations/module/pt.json +2 -2
- package/lib/es6/a11y/translations/module/sv.json +2 -2
- package/lib/es6/a11y/translations/module/tr.json +2 -2
- package/lib/es6/a11y/translations/module/vi.json +2 -2
- package/lib/es6/a11y/translations/module/zh.json +2 -2
- package/lib/es6/component/Chart/AbstractChart.js +5 -5
- 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.map +1 -1
- package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.js +67 -20
- 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.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +1 -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.type.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/ChartLegend/BaseLegend.js +1 -1
- 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 +5 -5
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +18 -18
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +7 -7
- 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/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/style/axis.shadow.css +3 -1
- package/lib/es6/style/plot.shadow.css +1 -3
- package/lib/es6/style/plotA11yModule.shadow.css +10 -11
- package/lib/es6/style/plotA11yView.shadow.css +13 -26
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/types/Line.d.js.map +1 -1
- package/lib/es6/types/Plot.d.js.map +1 -1
- package/lib/es6/types/Radar.d.js.map +1 -1
- package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/es6/types/Tooltip.d.js.map +1 -1
- package/lib/es6/types/Venn.d.js.map +1 -1
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +2 -7
- package/lib/esm/Area.mjs +14 -14
- package/lib/esm/Axis.mjs +21 -19
- package/lib/esm/Bar.mjs +17 -17
- package/lib/esm/Bubble.mjs +16 -16
- package/lib/esm/CompactHorizontalBar.mjs +20 -19
- package/lib/esm/Donut.mjs +15 -13
- package/lib/esm/Dots.mjs +10 -10
- package/lib/esm/HorizontalBar.mjs +18 -18
- package/lib/esm/Hover.mjs +6 -6
- package/lib/esm/Line.mjs +12 -12
- package/lib/esm/Plot.mjs +7 -10
- package/lib/esm/Radar.mjs +23 -23
- package/lib/esm/RadialTree.mjs +13 -13
- package/lib/esm/Reference.mjs +13 -13
- package/lib/esm/ResponsiveContainer.mjs +2 -2
- package/lib/esm/ScatterPlot.mjs +12 -11
- package/lib/esm/StackBar.mjs +4 -9
- package/lib/esm/StackedArea.mjs +2 -2
- package/lib/esm/Tooltip.mjs +13 -16
- package/lib/esm/Venn.mjs +13 -12
- package/lib/esm/a11y/PlotA11yModule.mjs +31 -69
- package/lib/esm/a11y/PlotA11yView.mjs +35 -10
- package/lib/esm/a11y/insights.mjs +2 -1
- package/lib/esm/a11y/intl.mjs +1 -1
- package/lib/esm/a11y/translations/module/de.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/en.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/es.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/fr.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/it.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/ja.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/ko.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/nl.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/pl.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/pt.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/sv.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/tr.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/vi.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/zh.json.mjs +2 -4
- package/lib/esm/component/Chart/AbstractChart.mjs +12 -10
- package/lib/esm/component/Chart/AreaChart.mjs +5 -4
- package/lib/esm/component/Chart/BarChart.mjs +44 -3
- package/lib/esm/component/Chart/BubbleChart.mjs +3 -2
- package/lib/esm/component/Chart/CigaretteChart.mjs +6 -5
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +2 -1
- package/lib/esm/component/Chart/DonutChart.mjs +3 -2
- package/lib/esm/component/Chart/HistogramChart.mjs +5 -4
- package/lib/esm/component/Chart/LineChart.mjs +4 -3
- package/lib/esm/component/Chart/RadarChart.mjs +2 -1
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +3 -2
- package/lib/esm/component/Chart/VennChart.mjs +2 -1
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +1 -1
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +7 -7
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +21 -25
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +9 -9
- package/lib/esm/component/ChartLegend/index.mjs +2 -0
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +1 -1
- package/lib/esm/createElement.mjs +2 -4
- package/lib/esm/index.mjs +1 -0
- package/lib/esm/style/axis.shadow.css +3 -1
- package/lib/esm/style/plot.shadow.css +1 -3
- package/lib/esm/style/plotA11yModule.shadow.css +10 -11
- package/lib/esm/style/plotA11yView.shadow.css +13 -26
- package/lib/esm/utils.mjs +2 -2
- package/lib/types/Axis.d.ts +4 -0
- package/lib/types/CompactHorizontalBar.d.ts +1 -1
- package/lib/types/Hover.d.ts +1 -1
- package/lib/types/Line.d.ts +1 -1
- package/lib/types/Plot.d.ts +1 -1
- package/lib/types/Radar.d.ts +1 -1
- package/lib/types/ResponsiveContainer.d.ts +1 -1
- package/lib/types/Tooltip.d.ts +1 -3
- package/lib/types/Venn.d.ts +1 -1
- package/lib/types/a11y/PlotA11yModule.d.ts +4 -11
- package/lib/types/a11y/PlotA11yView.d.ts +13 -2
- package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
- package/lib/types/component/Chart/AbstractChart.d.ts +1 -1
- package/lib/types/component/Chart/AbstractChart.type.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +1 -1
- package/lib/types/utils.d.ts +10 -10
- package/package.json +18 -18
package/lib/esm/Bubble.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import { sstyled,
|
|
8
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
9
9
|
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
10
10
|
import findComponent from "@semcore/core/lib/utils/findComponent";
|
|
11
11
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
@@ -21,24 +21,24 @@ var style = (
|
|
|
21
21
|
/*__reshadow_css_start__*/
|
|
22
22
|
(sstyled.insert(
|
|
23
23
|
/*__inner_css_start__*/
|
|
24
|
-
".
|
|
24
|
+
".___SBubble_cs3io_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));stroke:var(--intergalactic-chart-grid-border, #fff);stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_cs3io);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SBubble_cs3io_gg_:hover{opacity:.8}}g._visible_false_cs3io_gg_{display:none}.___SBubble_cs3io_gg_.__clickable_cs3io_gg_{cursor:pointer}.___SBubble_cs3io_gg_.__color_cs3io_gg_{fill:var(--color_cs3io)}.___SBubble_cs3io_gg_.__pattern_cs3io_gg_.__color_cs3io_gg_{fill:var(--pattern_cs3io);stroke:var(--color_cs3io);stroke-width:1px}.___SBubble_cs3io_gg_.__transparent_cs3io_gg_{opacity:.3}.___SCenter_cs3io_gg_{text-anchor:middle;font-size:calc(var(--intergalactic-fs-100, 12px) - 1px);stroke:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219))}.___SCenter_cs3io_gg_.__color_cs3io_gg_{stroke:var(--color_cs3io)}.___SCenter_cs3io_gg_.__transparent_cs3io_gg_{opacity:.3}.___SLabel_cs3io_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219))}.___SLabel_cs3io_gg_._position_right_cs3io_gg_{text-anchor:end}.___SLabel_cs3io_gg_._position_left_cs3io_gg_{text-anchor:start}.___SLabel_cs3io_gg_.__color_cs3io_gg_{fill:var(--color_cs3io)}.___SLabel_cs3io_gg_.__transparent_cs3io_gg_{opacity:.3}",
|
|
25
25
|
/*__inner_css_end__*/
|
|
26
|
-
"
|
|
26
|
+
"cs3io_gg_"
|
|
27
27
|
), /*__reshadow_css_end__*/
|
|
28
28
|
{
|
|
29
|
-
"_visible_false": "
|
|
30
|
-
"__SBubble": "
|
|
31
|
-
"_clickable": "
|
|
32
|
-
"_color": "
|
|
33
|
-
"--color": "--
|
|
34
|
-
"_pattern": "
|
|
35
|
-
"--pattern": "--
|
|
36
|
-
"_transparent": "
|
|
37
|
-
"__SCenter": "
|
|
38
|
-
"__SLabel": "
|
|
39
|
-
"_position_right": "
|
|
40
|
-
"_position_left": "
|
|
41
|
-
"--duration": "--
|
|
29
|
+
"_visible_false": "_visible_false_cs3io_gg_",
|
|
30
|
+
"__SBubble": "___SBubble_cs3io_gg_",
|
|
31
|
+
"_clickable": "__clickable_cs3io_gg_",
|
|
32
|
+
"_color": "__color_cs3io_gg_",
|
|
33
|
+
"--color": "--color_cs3io",
|
|
34
|
+
"_pattern": "__pattern_cs3io_gg_",
|
|
35
|
+
"--pattern": "--pattern_cs3io",
|
|
36
|
+
"_transparent": "__transparent_cs3io_gg_",
|
|
37
|
+
"__SCenter": "___SCenter_cs3io_gg_",
|
|
38
|
+
"__SLabel": "___SLabel_cs3io_gg_",
|
|
39
|
+
"_position_right": "_position_right_cs3io_gg_",
|
|
40
|
+
"_position_left": "_position_left_cs3io_gg_",
|
|
41
|
+
"--duration": "--duration_cs3io"
|
|
42
42
|
})
|
|
43
43
|
);
|
|
44
44
|
var BubbleRoot = /* @__PURE__ */ (function(_Component) {
|
|
@@ -6,12 +6,12 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
6
6
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
7
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import { sstyled,
|
|
9
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
10
|
+
import { Box } from "@semcore/base-components";
|
|
10
11
|
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
11
12
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
12
13
|
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
13
14
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
14
|
-
import { Box } from "@semcore/flex-box";
|
|
15
15
|
import React from "react";
|
|
16
16
|
import AnimatedClipPath from "./AnimatedClipPath.mjs";
|
|
17
17
|
import createElement from "./createElement.mjs";
|
|
@@ -23,26 +23,26 @@ var style = (
|
|
|
23
23
|
/*__reshadow_css_start__*/
|
|
24
24
|
(sstyled.insert(
|
|
25
25
|
/*__inner_css_start__*/
|
|
26
|
-
".
|
|
26
|
+
".___SBar_3jzeq_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));transition-property:height,width,y;transition-duration:var(--duration_3jzeq);transition-timing-function:ease-in-out}.___SBar_3jzeq_gg_.__color_3jzeq_gg_{fill:var(--color_3jzeq)}.___SBar_3jzeq_gg_.__pattern_3jzeq_gg_.__color_3jzeq_gg_{fill:var(--pattern_3jzeq);stroke:var(--color_3jzeq);stroke-width:1px}.___SBar_3jzeq_gg_.__hide_3jzeq_gg_{display:none}.___SBar_3jzeq_gg_.__transparent_3jzeq_gg_{opacity:.3}.___SBackground_3jzeq_gg_.__onClick_3jzeq_gg_,.___SBar_3jzeq_gg_.__onClick_3jzeq_gg_{cursor:pointer}.___SBackground_3jzeq_gg_{fill:var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242))}.___SBarAnnotation_3jzeq_gg_{display:flex;justify-content:space-between}.___SBarLabel_3jzeq_gg_,.___SBarPercent_3jzeq_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SBarLabel_3jzeq_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));margin-right:auto}.___SBarPercent_3jzeq_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));margin-right:var(--intergalactic-spacing-2x, 8px)}@supports (color:color(display-p3 0 0 0%)){.___SBarPercent_3jzeq_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SBarPercent_3jzeq_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SBarValue_3jzeq_gg_{min-width:52px;display:flex;justify-content:flex-end;color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);text-align:right}.___SCompactHorizontalBarHoverRect_3jzeq_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(0, 22, 16, 0.028))}",
|
|
27
27
|
/*__inner_css_end__*/
|
|
28
|
-
"
|
|
28
|
+
"3jzeq_gg_"
|
|
29
29
|
), /*__reshadow_css_end__*/
|
|
30
30
|
{
|
|
31
|
-
"__SBar": "
|
|
32
|
-
"--duration": "--
|
|
33
|
-
"_color": "
|
|
34
|
-
"--color": "--
|
|
35
|
-
"_pattern": "
|
|
36
|
-
"--pattern": "--
|
|
37
|
-
"_hide": "
|
|
38
|
-
"_transparent": "
|
|
39
|
-
"_onClick": "
|
|
40
|
-
"__SBackground": "
|
|
41
|
-
"__SBarAnnotation": "
|
|
42
|
-
"__SBarLabel": "
|
|
43
|
-
"__SBarPercent": "
|
|
44
|
-
"__SBarValue": "
|
|
45
|
-
"__SCompactHorizontalBarHoverRect": "
|
|
31
|
+
"__SBar": "___SBar_3jzeq_gg_",
|
|
32
|
+
"--duration": "--duration_3jzeq",
|
|
33
|
+
"_color": "__color_3jzeq_gg_",
|
|
34
|
+
"--color": "--color_3jzeq",
|
|
35
|
+
"_pattern": "__pattern_3jzeq_gg_",
|
|
36
|
+
"--pattern": "--pattern_3jzeq",
|
|
37
|
+
"_hide": "__hide_3jzeq_gg_",
|
|
38
|
+
"_transparent": "__transparent_3jzeq_gg_",
|
|
39
|
+
"_onClick": "__onClick_3jzeq_gg_",
|
|
40
|
+
"__SBackground": "___SBackground_3jzeq_gg_",
|
|
41
|
+
"__SBarAnnotation": "___SBarAnnotation_3jzeq_gg_",
|
|
42
|
+
"__SBarLabel": "___SBarLabel_3jzeq_gg_",
|
|
43
|
+
"__SBarPercent": "___SBarPercent_3jzeq_gg_",
|
|
44
|
+
"__SBarValue": "___SBarValue_3jzeq_gg_",
|
|
45
|
+
"__SCompactHorizontalBarHoverRect": "___SCompactHorizontalBarHoverRect_3jzeq_gg_"
|
|
46
46
|
})
|
|
47
47
|
);
|
|
48
48
|
var MIN_WIDTH = 4;
|
|
@@ -507,6 +507,7 @@ function CompactHorizontalBarTooltip(props) {
|
|
|
507
507
|
"excludeAnchorProps": true
|
|
508
508
|
}, _ref4))));
|
|
509
509
|
}
|
|
510
|
+
;
|
|
510
511
|
var CompactHorizontalBar = createElement(CompactHorizontalBarRoot, {
|
|
511
512
|
Annotation,
|
|
512
513
|
Label,
|
package/lib/esm/Donut.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
8
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
9
|
-
import { sstyled,
|
|
9
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
10
10
|
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
11
11
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
12
12
|
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
@@ -25,22 +25,22 @@ var style = (
|
|
|
25
25
|
/*__reshadow_css_start__*/
|
|
26
26
|
(sstyled.insert(
|
|
27
27
|
/*__inner_css_start__*/
|
|
28
|
-
".
|
|
28
|
+
".___SPie_tg3q1_gg_{stroke:var(--intergalactic-chart-grid-border, #fff);fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219))}.___SPie_tg3q1_gg_.__color_tg3q1_gg_{fill:var(--color_tg3q1)}.___SPie_tg3q1_gg_.__pattern_tg3q1_gg_.__color_tg3q1_gg_{fill:var(--pattern_tg3q1);stroke:var(--color_tg3q1);stroke-width:1px}.___SPie_tg3q1_gg_.__transparent_tg3q1_gg_{opacity:.3}.___SEmptyData_tg3q1_gg_{fill:var(--intergalactic-chart-palette-order-null, rgb(221, 222, 222))}.___SEmptyData_tg3q1_gg_.__color_tg3q1_gg_{fill:var(--color_tg3q1)}.___SLabel_tg3q1_gg_{text-anchor:middle;vertical-anchor:middle;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}",
|
|
29
29
|
/*__inner_css_end__*/
|
|
30
|
-
"
|
|
30
|
+
"tg3q1_gg_"
|
|
31
31
|
), /*__reshadow_css_end__*/
|
|
32
32
|
{
|
|
33
|
-
"__SPie": "
|
|
34
|
-
"_color": "
|
|
35
|
-
"--color": "--
|
|
36
|
-
"_pattern": "
|
|
37
|
-
"--pattern": "--
|
|
38
|
-
"_transparent": "
|
|
39
|
-
"__SEmptyData": "
|
|
40
|
-
"__SLabel": "
|
|
33
|
+
"__SPie": "___SPie_tg3q1_gg_",
|
|
34
|
+
"_color": "__color_tg3q1_gg_",
|
|
35
|
+
"--color": "--color_tg3q1",
|
|
36
|
+
"_pattern": "__pattern_tg3q1_gg_",
|
|
37
|
+
"--pattern": "--pattern_tg3q1",
|
|
38
|
+
"_transparent": "__transparent_tg3q1_gg_",
|
|
39
|
+
"__SEmptyData": "___SEmptyData_tg3q1_gg_",
|
|
40
|
+
"__SLabel": "___SLabel_tg3q1_gg_"
|
|
41
41
|
})
|
|
42
42
|
);
|
|
43
|
-
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
43
|
+
var DEFAULT_INSTANCE = /* @__PURE__ */ Symbol("DEFAULT_INSTANCE");
|
|
44
44
|
function transitionAnglePie(_ref6) {
|
|
45
45
|
var selector = _ref6.selector, duration = _ref6.duration, halfsize = _ref6.halfsize, d3Arc = _ref6.d3Arc, d3ArcOut = _ref6.d3ArcOut, arcs = _ref6.arcs, activeIndexPie = _ref6.activeIndexPie;
|
|
46
46
|
return transition().selection().selectAll(selector).interrupt().transition().duration(duration).attrTween("d", function(_, ind) {
|
|
@@ -318,7 +318,8 @@ _defineProperty(DonutRoot, "defaultProps", function(_ref18) {
|
|
|
318
318
|
var _ref18$innerRadius = _ref18.innerRadius, innerRadius = _ref18$innerRadius === void 0 ? 0 : _ref18$innerRadius, _ref18$paddingAngle = _ref18.paddingAngle, paddingAngle = _ref18$paddingAngle === void 0 ? 0 : _ref18$paddingAngle, outerRadius = _ref18.outerRadius, _ref18$halfsize = _ref18.halfsize, halfsize = _ref18$halfsize === void 0 ? false : _ref18$halfsize, size = _ref18.$rootProps.size;
|
|
319
319
|
var d3Arc = arc().outerRadius(outerRadius || getOuterRadius({
|
|
320
320
|
size,
|
|
321
|
-
halfsize
|
|
321
|
+
halfsize,
|
|
322
|
+
outerRadius
|
|
322
323
|
})).innerRadius(innerRadius).padAngle(paddingAngle);
|
|
323
324
|
var d3ArcOut = arc().outerRadius((outerRadius || getOuterRadius({
|
|
324
325
|
size,
|
|
@@ -414,6 +415,7 @@ function DonutTooltip(props) {
|
|
|
414
415
|
"excludeAnchorProps": true
|
|
415
416
|
}, _ref))));
|
|
416
417
|
}
|
|
418
|
+
;
|
|
417
419
|
var Donut = createElement(DonutRoot, {
|
|
418
420
|
Pie,
|
|
419
421
|
Label,
|
package/lib/esm/Dots.mjs
CHANGED
|
@@ -5,24 +5,24 @@ import { bisector } from "d3-array";
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import createElement from "./createElement.mjs";
|
|
7
7
|
import { getPatternSymbolSize, PatternSymbol } from "./Pattern.mjs";
|
|
8
|
-
import { interpolateValue, eventToPoint, invert
|
|
8
|
+
import { getChartDefaultColorName, interpolateValue, eventToPoint, invert } from "./utils.mjs";
|
|
9
9
|
/*!__reshadow-styles__:"./style/dot.shadow.css"*/
|
|
10
10
|
var style = (
|
|
11
11
|
/*__reshadow_css_start__*/
|
|
12
12
|
(sstyled.insert(
|
|
13
13
|
/*__inner_css_start__*/
|
|
14
|
-
".
|
|
14
|
+
".___SDots_1s5uq_gg_ .___SDot_1s5uq_gg_{transition-duration:var(--duration_1s5uq)}.___SDot_1s5uq_gg_{stroke-width:1px;stroke:var(--intergalactic-chart-grid-border, #fff);fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));transition-property:cx,cy,x,y;transition-timing-function:ease-in-out}.___SDot_1s5uq_gg_.__hide_1s5uq_gg_{display:none}.___SDot_1s5uq_gg_.__color_1s5uq_gg_{fill:var(--color_1s5uq)}.___SDot_1s5uq_gg_.__transparent_1s5uq_gg_{opacity:.3}",
|
|
15
15
|
/*__inner_css_end__*/
|
|
16
|
-
"
|
|
16
|
+
"1s5uq_gg_"
|
|
17
17
|
), /*__reshadow_css_end__*/
|
|
18
18
|
{
|
|
19
|
-
"__SDot": "
|
|
20
|
-
"_hide": "
|
|
21
|
-
"_color": "
|
|
22
|
-
"--color": "--
|
|
23
|
-
"_transparent": "
|
|
24
|
-
"__SDots": "
|
|
25
|
-
"--duration": "--
|
|
19
|
+
"__SDot": "___SDot_1s5uq_gg_",
|
|
20
|
+
"_hide": "__hide_1s5uq_gg_",
|
|
21
|
+
"_color": "__color_1s5uq_gg_",
|
|
22
|
+
"--color": "--color_1s5uq",
|
|
23
|
+
"_transparent": "__transparent_1s5uq_gg_",
|
|
24
|
+
"__SDots": "___SDots_1s5uq_gg_",
|
|
25
|
+
"--duration": "--duration_1s5uq"
|
|
26
26
|
})
|
|
27
27
|
);
|
|
28
28
|
function Dots(props) {
|
|
@@ -16,26 +16,26 @@ var style = (
|
|
|
16
16
|
/*__reshadow_css_start__*/
|
|
17
17
|
(sstyled.insert(
|
|
18
18
|
/*__inner_css_start__*/
|
|
19
|
-
".
|
|
19
|
+
".___SBar_3jzeq_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));transition-property:height,width,y;transition-duration:var(--duration_3jzeq);transition-timing-function:ease-in-out}.___SBar_3jzeq_gg_.__color_3jzeq_gg_{fill:var(--color_3jzeq)}.___SBar_3jzeq_gg_.__pattern_3jzeq_gg_.__color_3jzeq_gg_{fill:var(--pattern_3jzeq);stroke:var(--color_3jzeq);stroke-width:1px}.___SBar_3jzeq_gg_.__hide_3jzeq_gg_{display:none}.___SBar_3jzeq_gg_.__transparent_3jzeq_gg_{opacity:.3}.___SBackground_3jzeq_gg_.__onClick_3jzeq_gg_,.___SBar_3jzeq_gg_.__onClick_3jzeq_gg_{cursor:pointer}.___SBackground_3jzeq_gg_{fill:var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242))}.___SBarAnnotation_3jzeq_gg_{display:flex;justify-content:space-between}.___SBarLabel_3jzeq_gg_,.___SBarPercent_3jzeq_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SBarLabel_3jzeq_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));margin-right:auto}.___SBarPercent_3jzeq_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));margin-right:var(--intergalactic-spacing-2x, 8px)}@supports (color:color(display-p3 0 0 0%)){.___SBarPercent_3jzeq_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SBarPercent_3jzeq_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SBarValue_3jzeq_gg_{min-width:52px;display:flex;justify-content:flex-end;color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);text-align:right}.___SCompactHorizontalBarHoverRect_3jzeq_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(0, 22, 16, 0.028))}",
|
|
20
20
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
21
|
+
"3jzeq_gg_"
|
|
22
22
|
), /*__reshadow_css_end__*/
|
|
23
23
|
{
|
|
24
|
-
"__SBar": "
|
|
25
|
-
"--duration": "--
|
|
26
|
-
"_color": "
|
|
27
|
-
"--color": "--
|
|
28
|
-
"_pattern": "
|
|
29
|
-
"--pattern": "--
|
|
30
|
-
"_hide": "
|
|
31
|
-
"_transparent": "
|
|
32
|
-
"_onClick": "
|
|
33
|
-
"__SBackground": "
|
|
34
|
-
"__SBarAnnotation": "
|
|
35
|
-
"__SBarLabel": "
|
|
36
|
-
"__SBarPercent": "
|
|
37
|
-
"__SBarValue": "
|
|
38
|
-
"__SCompactHorizontalBarHoverRect": "
|
|
24
|
+
"__SBar": "___SBar_3jzeq_gg_",
|
|
25
|
+
"--duration": "--duration_3jzeq",
|
|
26
|
+
"_color": "__color_3jzeq_gg_",
|
|
27
|
+
"--color": "--color_3jzeq",
|
|
28
|
+
"_pattern": "__pattern_3jzeq_gg_",
|
|
29
|
+
"--pattern": "--pattern_3jzeq",
|
|
30
|
+
"_hide": "__hide_3jzeq_gg_",
|
|
31
|
+
"_transparent": "__transparent_3jzeq_gg_",
|
|
32
|
+
"_onClick": "__onClick_3jzeq_gg_",
|
|
33
|
+
"__SBackground": "___SBackground_3jzeq_gg_",
|
|
34
|
+
"__SBarAnnotation": "___SBarAnnotation_3jzeq_gg_",
|
|
35
|
+
"__SBarLabel": "___SBarLabel_3jzeq_gg_",
|
|
36
|
+
"__SBarPercent": "___SBarPercent_3jzeq_gg_",
|
|
37
|
+
"__SBarValue": "___SBarValue_3jzeq_gg_",
|
|
38
|
+
"__SCompactHorizontalBarHoverRect": "___SCompactHorizontalBarHoverRect_3jzeq_gg_"
|
|
39
39
|
})
|
|
40
40
|
);
|
|
41
41
|
var MIN_WIDTH = 2;
|
|
@@ -142,7 +142,7 @@ _defineProperty(HorizontalBarRoot, "style", style);
|
|
|
142
142
|
_defineProperty(HorizontalBarRoot, "defaultProps", {
|
|
143
143
|
offset: [0, 0],
|
|
144
144
|
duration: 500,
|
|
145
|
-
r:
|
|
145
|
+
r: 0,
|
|
146
146
|
wMin: MIN_WIDTH
|
|
147
147
|
});
|
|
148
148
|
function Background(props) {
|
package/lib/esm/Hover.mjs
CHANGED
|
@@ -5,26 +5,26 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import { sstyled,
|
|
8
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
9
9
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
10
10
|
import { hasParent } from "@semcore/core/lib/utils/hasParent";
|
|
11
11
|
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
12
12
|
import React from "react";
|
|
13
13
|
import createElement from "./createElement.mjs";
|
|
14
14
|
import Tooltip from "./Tooltip.mjs";
|
|
15
|
-
import {
|
|
15
|
+
import { eventToPoint, invert, getIndexFromData, scaleOfBandwidth, scaleToBand } from "./utils.mjs";
|
|
16
16
|
/*!__reshadow-styles__:"./style/hover.shadow.css"*/
|
|
17
17
|
var style = (
|
|
18
18
|
/*__reshadow_css_start__*/
|
|
19
19
|
(sstyled.insert(
|
|
20
20
|
/*__inner_css_start__*/
|
|
21
|
-
".
|
|
21
|
+
".___SHoverLine_3ufbt_gg_,.___SHoverLine_3ufbt_gg_:focus-visible{outline:0;stroke:var(--intergalactic-chart-grid-x-axis, rgb(214, 216, 215))}.___SHoverRect_3ufbt_gg_,.___SHoverRect_3ufbt_gg_:focus-visible{outline:0;fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(0, 22, 16, 0.028))}",
|
|
22
22
|
/*__inner_css_end__*/
|
|
23
|
-
"
|
|
23
|
+
"3ufbt_gg_"
|
|
24
24
|
), /*__reshadow_css_end__*/
|
|
25
25
|
{
|
|
26
|
-
"__SHoverLine": "
|
|
27
|
-
"__SHoverRect": "
|
|
26
|
+
"__SHoverLine": "___SHoverLine_3ufbt_gg_",
|
|
27
|
+
"__SHoverRect": "___SHoverRect_3ufbt_gg_"
|
|
28
28
|
})
|
|
29
29
|
);
|
|
30
30
|
var Hover = /* @__PURE__ */ (function(_Component) {
|
package/lib/esm/Line.mjs
CHANGED
|
@@ -7,31 +7,31 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
7
7
|
import { sstyled, Component } from "@semcore/core";
|
|
8
8
|
import uniqueIDEnhancement, { useUID } from "@semcore/core/lib/utils/uniqueID";
|
|
9
9
|
import { bisector } from "d3-array";
|
|
10
|
-
import {
|
|
10
|
+
import { curveLinear, line, curveCardinal, area } from "d3-shape";
|
|
11
11
|
import React from "react";
|
|
12
12
|
import AnimatedClipPath from "./AnimatedClipPath.mjs";
|
|
13
13
|
import createElement from "./createElement.mjs";
|
|
14
14
|
import Dots from "./Dots.mjs";
|
|
15
15
|
import { resolvePatternDasharray } from "./Pattern.mjs";
|
|
16
|
-
import { interpolateValue, getNullData, eventToPoint, invert,
|
|
16
|
+
import { interpolateValue, getNullData, definedNullData, eventToPoint, invert, getChartDefaultColorName, definedData, scaleOfBandwidth } from "./utils.mjs";
|
|
17
17
|
/*!__reshadow-styles__:"./style/line.shadow.css"*/
|
|
18
18
|
var style = (
|
|
19
19
|
/*__reshadow_css_start__*/
|
|
20
20
|
(sstyled.insert(
|
|
21
21
|
/*__inner_css_start__*/
|
|
22
|
-
".
|
|
22
|
+
".___SLine_5xpq4_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));transition-property:d;transition-duration:var(--duration_5xpq4);transition-timing-function:ease-in-out}.___SLine_5xpq4_gg_.__color_5xpq4_gg_{stroke:var(--color_5xpq4)}.___SLine_5xpq4_gg_.__hide_5xpq4_gg_{display:none}.___SLine_5xpq4_gg_.__transparent_5xpq4_gg_{opacity:.3}.___SNull_5xpq4_gg_{fill:transparent;stroke:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161));stroke-dasharray:4}@supports (color:color(display-p3 0 0 0%)){.___SNull_5xpq4_gg_{stroke:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SNull_5xpq4_gg_{stroke:var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SNull_5xpq4_gg_.__hide_5xpq4_gg_{display:none}.___SLineArea_5xpq4_gg_{transition-property:d;transition-duration:var(--duration_5xpq4);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219))}.___SLineArea_5xpq4_gg_.__color_5xpq4_gg_{fill:var(--color_5xpq4)}",
|
|
23
23
|
/*__inner_css_end__*/
|
|
24
|
-
"
|
|
24
|
+
"5xpq4_gg_"
|
|
25
25
|
), /*__reshadow_css_end__*/
|
|
26
26
|
{
|
|
27
|
-
"__SLine": "
|
|
28
|
-
"--duration": "--
|
|
29
|
-
"_color": "
|
|
30
|
-
"--color": "--
|
|
31
|
-
"_hide": "
|
|
32
|
-
"_transparent": "
|
|
33
|
-
"__SNull": "
|
|
34
|
-
"__SLineArea": "
|
|
27
|
+
"__SLine": "___SLine_5xpq4_gg_",
|
|
28
|
+
"--duration": "--duration_5xpq4",
|
|
29
|
+
"_color": "__color_5xpq4_gg_",
|
|
30
|
+
"--color": "--color_5xpq4",
|
|
31
|
+
"_hide": "__hide_5xpq4_gg_",
|
|
32
|
+
"_transparent": "__transparent_5xpq4_gg_",
|
|
33
|
+
"__SNull": "___SNull_5xpq4_gg_",
|
|
34
|
+
"__SLineArea": "___SLineArea_5xpq4_gg_"
|
|
35
35
|
})
|
|
36
36
|
);
|
|
37
37
|
var LineRoot = /* @__PURE__ */ (function(_Component) {
|
package/lib/esm/Plot.mjs
CHANGED
|
@@ -5,12 +5,11 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import {
|
|
8
|
+
import { sstyled, assignProps, Component, createComponent } from "@semcore/core";
|
|
9
|
+
import { Box } from "@semcore/base-components";
|
|
9
10
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
|
-
import keyboardFocusEnhance from "@semcore/core/lib/utils/enhances/keyboardFocusEnhance";
|
|
11
11
|
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
12
12
|
import EventEmitter from "@semcore/core/lib/utils/eventEmitter";
|
|
13
|
-
import { Box } from "@semcore/flex-box";
|
|
14
13
|
import React from "react";
|
|
15
14
|
import { makeDataHintsContainer, makeDataHintsHandlers } from "./a11y/hints.mjs";
|
|
16
15
|
import { PlotA11yModule } from "./a11y/PlotA11yModule.mjs";
|
|
@@ -21,13 +20,12 @@ var style = (
|
|
|
21
20
|
/*__reshadow_css_start__*/
|
|
22
21
|
(sstyled.insert(
|
|
23
22
|
/*__inner_css_start__*/
|
|
24
|
-
".
|
|
23
|
+
".___SPlot_1ncq8_gg_{overflow:hidden}.___SPlot_1ncq8_gg_:focus{outline:0}.___SPlot_1ncq8_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_1ncq8_gg_:has(foreignObject[data-aria-only]:focus-within){outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 32, 221, 0.469));outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset;border-radius:var(--intergalactic-surface-rounded, calc(6px + 2px))}@supports (color:color(display-p3 0 0 0%)){.___SPlot_1ncq8_gg_:has(foreignObject[data-aria-only]:focus-within){outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 32, 221, 0.469))}@media (color-gamut:p3){.___SPlot_1ncq8_gg_:has(foreignObject[data-aria-only]:focus-within){outline-color:var(--intergalactic-keyboard-focus-outline, color(display-p3 0.03256 0.12227 0.83249 / 0.469))}}}",
|
|
25
24
|
/*__inner_css_end__*/
|
|
26
|
-
"
|
|
25
|
+
"1ncq8_gg_"
|
|
27
26
|
), /*__reshadow_css_end__*/
|
|
28
27
|
{
|
|
29
|
-
"__SPlot": "
|
|
30
|
-
"_keyboardFocused": "__keyboardFocused_1vp9k_gg_"
|
|
28
|
+
"__SPlot": "___SPlot_1ncq8_gg_"
|
|
31
29
|
})
|
|
32
30
|
);
|
|
33
31
|
var PlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
@@ -102,7 +100,6 @@ var PlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
102
100
|
"onMouseMove": this.handlerMouseMove,
|
|
103
101
|
"onMouseLeave": this.handlerMouseLeave,
|
|
104
102
|
"aria-label": ariaLabel,
|
|
105
|
-
"tabIndex": 0,
|
|
106
103
|
"data-plot-id": this.plotId
|
|
107
104
|
}, _ref))), /* @__PURE__ */ React.createElement(Children, _ref2.cn("Children", {})), /* @__PURE__ */ React.createElement("foreignObject", _ref2.cn("foreignObject", {
|
|
108
105
|
"width": "100%",
|
|
@@ -110,7 +107,7 @@ var PlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
110
107
|
"data-aria-only": true
|
|
111
108
|
}), /* @__PURE__ */ React.createElement(PlotA11yModule, _ref2.cn("PlotA11yModule", {
|
|
112
109
|
"id": this.plotId,
|
|
113
|
-
"
|
|
110
|
+
"payload": data,
|
|
114
111
|
"plotLabel": label,
|
|
115
112
|
"locale": locale,
|
|
116
113
|
"plotRef": this.rootRef,
|
|
@@ -128,7 +125,7 @@ _defineProperty(PlotRoot, "defaultProps", function() {
|
|
|
128
125
|
height: 0
|
|
129
126
|
};
|
|
130
127
|
});
|
|
131
|
-
_defineProperty(PlotRoot, "enhance", [
|
|
128
|
+
_defineProperty(PlotRoot, "enhance", [resolveColorEnhance(), i18nEnhance(localizedMessages)]);
|
|
132
129
|
const Plot = createComponent(PlotRoot);
|
|
133
130
|
export {
|
|
134
131
|
Plot as default
|
package/lib/esm/Radar.mjs
CHANGED
|
@@ -6,46 +6,46 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
7
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
8
8
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
9
|
-
import { sstyled,
|
|
9
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
10
10
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
11
11
|
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
12
12
|
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
13
13
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
14
14
|
import { polygonContains } from "d3-polygon";
|
|
15
|
-
import {
|
|
15
|
+
import { curveLinearClosed, lineRadial, arc, line } from "d3-shape";
|
|
16
16
|
import React, { cloneElement } from "react";
|
|
17
17
|
import createElement from "./createElement.mjs";
|
|
18
18
|
import { PatternFill, getPatternSymbolSize, PatternSymbol } from "./Pattern.mjs";
|
|
19
19
|
import Tooltip from "./Tooltip.mjs";
|
|
20
|
-
import { getChartDefaultColorName, eventToPoint
|
|
20
|
+
import { measureText, getChartDefaultColorName, eventToPoint } from "./utils.mjs";
|
|
21
21
|
/*!__reshadow-styles__:"./style/radar.shadow.css"*/
|
|
22
22
|
var style = (
|
|
23
23
|
/*__reshadow_css_start__*/
|
|
24
24
|
(sstyled.insert(
|
|
25
25
|
/*__inner_css_start__*/
|
|
26
|
-
".
|
|
26
|
+
".___SAxisLine_se4af_gg_,.___SAxisTick_se4af_gg_,.___SAxis_se4af_gg_{stroke:var(--intergalactic-chart-grid-line, rgb(237, 239, 238));stroke-width:1;fill:transparent}.___SAxisLine_se4af_gg_,.___SAxisTick_se4af_gg_{stroke-dasharray:2}.___SAxisLine_se4af_gg_.__active_se4af_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, rgb(214, 216, 215))}.___SAxisLabel_se4af_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_se4af_gg_.__xDirection_se4af_gg_{text-anchor:var(--xDirection_se4af)}.___SAxisLabel_se4af_gg_.__yDirection_se4af_gg_{dominant-baseline:var(--yDirection_se4af)}.___SPolygonDot_se4af_gg_,.___SPolygon_se4af_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219))}.___SPolygon_se4af_gg_{opacity:.2}.___SPolygon_se4af_gg_.__color_se4af_gg_{fill:var(--color_se4af)}.___SPolygon_se4af_gg_.__pattern_se4af_gg_.__color_se4af_gg_{fill:var(--pattern_se4af);stroke:var(--color_se4af);stroke-width:1px}.___SPolygonDot_se4af_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #fff);r:6px}.___SPolygonDot_se4af_gg_.__transparent_se4af_gg_{opacity:.3}.___SPolygonDot_se4af_gg_.__color_se4af_gg_{fill:var(--color_se4af)}.___SPolygonLine_se4af_gg_{stroke:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));stroke-width:3;fill:transparent}.___SPolygonLine_se4af_gg_.__transparent_se4af_gg_{opacity:.3}.___SPolygonLine_se4af_gg_.__color_se4af_gg_{stroke:var(--color_se4af)}.___SPieRect_se4af_gg_{outline:0;fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(0, 22, 16, 0.028))}",
|
|
27
27
|
/*__inner_css_end__*/
|
|
28
|
-
"
|
|
28
|
+
"se4af_gg_"
|
|
29
29
|
), /*__reshadow_css_end__*/
|
|
30
30
|
{
|
|
31
|
-
"__SAxis": "
|
|
32
|
-
"__SAxisLine": "
|
|
33
|
-
"__SAxisTick": "
|
|
34
|
-
"_active": "
|
|
35
|
-
"__SAxisLabel": "
|
|
36
|
-
"_xDirection": "
|
|
37
|
-
"--xDirection": "--
|
|
38
|
-
"_yDirection": "
|
|
39
|
-
"--yDirection": "--
|
|
40
|
-
"__SPolygon": "
|
|
41
|
-
"_color": "
|
|
42
|
-
"--color": "--
|
|
43
|
-
"_pattern": "
|
|
44
|
-
"--pattern": "--
|
|
45
|
-
"__SPolygonDot": "
|
|
46
|
-
"_transparent": "
|
|
47
|
-
"__SPolygonLine": "
|
|
48
|
-
"__SPieRect": "
|
|
31
|
+
"__SAxis": "___SAxis_se4af_gg_",
|
|
32
|
+
"__SAxisLine": "___SAxisLine_se4af_gg_",
|
|
33
|
+
"__SAxisTick": "___SAxisTick_se4af_gg_",
|
|
34
|
+
"_active": "__active_se4af_gg_",
|
|
35
|
+
"__SAxisLabel": "___SAxisLabel_se4af_gg_",
|
|
36
|
+
"_xDirection": "__xDirection_se4af_gg_",
|
|
37
|
+
"--xDirection": "--xDirection_se4af",
|
|
38
|
+
"_yDirection": "__yDirection_se4af_gg_",
|
|
39
|
+
"--yDirection": "--yDirection_se4af",
|
|
40
|
+
"__SPolygon": "___SPolygon_se4af_gg_",
|
|
41
|
+
"_color": "__color_se4af_gg_",
|
|
42
|
+
"--color": "--color_se4af",
|
|
43
|
+
"_pattern": "__pattern_se4af_gg_",
|
|
44
|
+
"--pattern": "--pattern_se4af",
|
|
45
|
+
"__SPolygonDot": "___SPolygonDot_se4af_gg_",
|
|
46
|
+
"_transparent": "__transparent_se4af_gg_",
|
|
47
|
+
"__SPolygonLine": "___SPolygonLine_se4af_gg_",
|
|
48
|
+
"__SPieRect": "___SPieRect_se4af_gg_"
|
|
49
49
|
})
|
|
50
50
|
);
|
|
51
51
|
var clampAngle = function clampAngle2(angle) {
|
package/lib/esm/RadialTree.mjs
CHANGED
|
@@ -23,22 +23,22 @@ var style = (
|
|
|
23
23
|
/*__reshadow_css_start__*/
|
|
24
24
|
(sstyled.insert(
|
|
25
25
|
/*__inner_css_start__*/
|
|
26
|
-
".
|
|
26
|
+
".___SRadian_1etdu_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, rgb(92, 92, 196))}.___SLine_1etdu_gg_{stroke:var(--intergalactic-text-large-info, rgb(92, 92, 196))}.___SLine_1etdu_gg_.__stroke_1etdu_gg_{stroke:var(--stroke_1etdu)}.___SLine_1etdu_gg_.__transparent_1etdu_gg_{opacity:.3}.___SCap_1etdu_gg_{transition:r .1s}.___SCap_1etdu_gg_.__pattern_1etdu_gg_{stroke:var(--intergalactic-chart-grid-border, #fff);stroke-width:1px}.___SCap_1etdu_gg_.__transparent_1etdu_gg_,.___SIcon_1etdu_gg_.__transparent_1etdu_gg_,.___SLabel_1etdu_gg_.__transparent_1etdu_gg_{opacity:.3}.___SLabel_1etdu_gg_{fill:var(--color_1etdu)}@media (hover:hover){.___SRadian_1etdu_gg_:hover .___SLabel_1etdu_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1etdu_gg_{transition:none}}",
|
|
27
27
|
/*__inner_css_end__*/
|
|
28
|
-
"
|
|
28
|
+
"1etdu_gg_"
|
|
29
29
|
), /*__reshadow_css_end__*/
|
|
30
30
|
{
|
|
31
|
-
"__SRadian": "
|
|
32
|
-
"__SLine": "
|
|
33
|
-
"_stroke": "
|
|
34
|
-
"--stroke": "--
|
|
35
|
-
"_transparent": "
|
|
36
|
-
"__SCap": "
|
|
37
|
-
"_pattern": "
|
|
38
|
-
"__SIcon": "
|
|
39
|
-
"__SLabel": "
|
|
40
|
-
"--color": "--
|
|
41
|
-
"__SLineCap": "
|
|
31
|
+
"__SRadian": "___SRadian_1etdu_gg_",
|
|
32
|
+
"__SLine": "___SLine_1etdu_gg_",
|
|
33
|
+
"_stroke": "__stroke_1etdu_gg_",
|
|
34
|
+
"--stroke": "--stroke_1etdu",
|
|
35
|
+
"_transparent": "__transparent_1etdu_gg_",
|
|
36
|
+
"__SCap": "___SCap_1etdu_gg_",
|
|
37
|
+
"_pattern": "__pattern_1etdu_gg_",
|
|
38
|
+
"__SIcon": "___SIcon_1etdu_gg_",
|
|
39
|
+
"__SLabel": "___SLabel_1etdu_gg_",
|
|
40
|
+
"--color": "--color_1etdu",
|
|
41
|
+
"__SLineCap": "___SLineCap_1etdu_gg_"
|
|
42
42
|
})
|
|
43
43
|
);
|
|
44
44
|
var baseAngle = -Math.PI / 2;
|
package/lib/esm/Reference.mjs
CHANGED
|
@@ -15,22 +15,22 @@ var style = (
|
|
|
15
15
|
/*__reshadow_css_start__*/
|
|
16
16
|
(sstyled.insert(
|
|
17
17
|
/*__inner_css_start__*/
|
|
18
|
-
".
|
|
18
|
+
".___SReferenceLine_cfpzn_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, rgb(214, 216, 215))}.___STitle_cfpzn_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, rgba(0, 3, 0, 0.583));transform-origin:var(--transform-origin_cfpzn)}@supports (color:color(display-p3 0 0 0%)){.___STitle_cfpzn_gg_{fill:var(--intergalactic-chart-grid-text-label, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_cfpzn_gg_{fill:var(--intergalactic-chart-grid-text-label, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___STitle_cfpzn_gg_._position_top_cfpzn_gg_{text-anchor:middle}.___STitle_cfpzn_gg_._position_bottom_cfpzn_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_cfpzn_gg_._position_left_cfpzn_gg_,.___STitle_cfpzn_gg_._position_right_cfpzn_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_cfpzn_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgb(241, 242, 242))}.___SStripes_cfpzn_gg_{fill:var(--fill_cfpzn)}.___SStripesPatternPath_cfpzn_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgb(237, 239, 238));stroke-width:1px}",
|
|
19
19
|
/*__inner_css_end__*/
|
|
20
|
-
"
|
|
20
|
+
"cfpzn_gg_"
|
|
21
21
|
), /*__reshadow_css_end__*/
|
|
22
22
|
{
|
|
23
|
-
"__SReferenceLine": "
|
|
24
|
-
"__STitle": "
|
|
25
|
-
"--transform-origin": "--transform-
|
|
26
|
-
"_position_top": "
|
|
27
|
-
"_position_bottom": "
|
|
28
|
-
"_position_right": "
|
|
29
|
-
"_position_left": "
|
|
30
|
-
"__SBackground": "
|
|
31
|
-
"__SStripes": "
|
|
32
|
-
"--fill": "--
|
|
33
|
-
"__SStripesPatternPath": "
|
|
23
|
+
"__SReferenceLine": "___SReferenceLine_cfpzn_gg_",
|
|
24
|
+
"__STitle": "___STitle_cfpzn_gg_",
|
|
25
|
+
"--transform-origin": "--transform-origin_cfpzn",
|
|
26
|
+
"_position_top": "_position_top_cfpzn_gg_",
|
|
27
|
+
"_position_bottom": "_position_bottom_cfpzn_gg_",
|
|
28
|
+
"_position_right": "_position_right_cfpzn_gg_",
|
|
29
|
+
"_position_left": "_position_left_cfpzn_gg_",
|
|
30
|
+
"__SBackground": "___SBackground_cfpzn_gg_",
|
|
31
|
+
"__SStripes": "___SStripes_cfpzn_gg_",
|
|
32
|
+
"--fill": "--fill_cfpzn",
|
|
33
|
+
"__SStripesPatternPath": "___SStripesPatternPath_cfpzn_gg_"
|
|
34
34
|
})
|
|
35
35
|
);
|
|
36
36
|
var side2direction = {
|
|
@@ -5,12 +5,12 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
5
5
|
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import {
|
|
8
|
+
import { sstyled, assignProps, Component, createComponent } from "@semcore/core";
|
|
9
|
+
import { Box } from "@semcore/base-components";
|
|
9
10
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
10
11
|
import fire from "@semcore/core/lib/utils/fire";
|
|
11
12
|
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
12
13
|
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
13
|
-
import { Box } from "@semcore/flex-box";
|
|
14
14
|
import React from "react";
|
|
15
15
|
var ResponsiveContainerRoot = /* @__PURE__ */ (function(_Component) {
|
|
16
16
|
function ResponsiveContainerRoot2(props) {
|