@semcore/d3-chart 16.7.0 → 16.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +16 -18
- 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 +9 -6
- 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 +8 -3
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/Tooltip.js +19 -18
- 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 +79 -37
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +12 -39
- 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 +19 -66
- 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 +1 -3
- package/lib/cjs/style/plot.shadow.css +3 -1
- package/lib/cjs/style/plotA11yModule.shadow.css +11 -10
- package/lib/cjs/style/plotA11yView.shadow.css +26 -13
- 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 +16 -18
- 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 +8 -5
- 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 +8 -3
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/Tooltip.js +11 -10
- 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 +80 -36
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +10 -37
- 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 +20 -67
- 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 +1 -3
- package/lib/es6/style/plot.shadow.css +3 -1
- package/lib/es6/style/plotA11yModule.shadow.css +11 -10
- package/lib/es6/style/plotA11yView.shadow.css +26 -13
- 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 +7 -2
- package/lib/esm/Area.mjs +14 -14
- package/lib/esm/Axis.mjs +19 -21
- package/lib/esm/Bar.mjs +17 -17
- package/lib/esm/Bubble.mjs +16 -16
- package/lib/esm/CompactHorizontalBar.mjs +19 -20
- package/lib/esm/Donut.mjs +13 -15
- 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 +10 -7
- 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 +11 -12
- package/lib/esm/StackBar.mjs +9 -4
- package/lib/esm/StackedArea.mjs +2 -2
- package/lib/esm/Tooltip.mjs +16 -13
- package/lib/esm/Venn.mjs +12 -13
- package/lib/esm/a11y/PlotA11yModule.mjs +69 -31
- package/lib/esm/a11y/PlotA11yView.mjs +10 -35
- package/lib/esm/a11y/insights.mjs +1 -2
- package/lib/esm/a11y/intl.mjs +1 -1
- package/lib/esm/a11y/translations/module/de.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/en.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/es.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/fr.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/it.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/ja.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/ko.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/nl.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/pl.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/pt.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/sv.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/tr.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/vi.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/zh.json.mjs +4 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +10 -12
- package/lib/esm/component/Chart/AreaChart.mjs +4 -5
- package/lib/esm/component/Chart/BarChart.mjs +3 -44
- package/lib/esm/component/Chart/BubbleChart.mjs +2 -3
- package/lib/esm/component/Chart/CigaretteChart.mjs +5 -6
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +1 -2
- package/lib/esm/component/Chart/DonutChart.mjs +2 -3
- package/lib/esm/component/Chart/HistogramChart.mjs +4 -5
- package/lib/esm/component/Chart/LineChart.mjs +3 -4
- package/lib/esm/component/Chart/RadarChart.mjs +1 -2
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +2 -3
- package/lib/esm/component/Chart/VennChart.mjs +1 -2
- 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 +25 -21
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +9 -9
- package/lib/esm/component/ChartLegend/index.mjs +0 -2
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +1 -1
- package/lib/esm/createElement.mjs +4 -2
- package/lib/esm/index.mjs +0 -1
- package/lib/esm/style/axis.shadow.css +1 -3
- package/lib/esm/style/plot.shadow.css +3 -1
- package/lib/esm/style/plotA11yModule.shadow.css +11 -10
- package/lib/esm/style/plotA11yView.shadow.css +26 -13
- package/lib/esm/utils.mjs +2 -2
- package/lib/types/Axis.d.ts +0 -4
- 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 +3 -1
- package/lib/types/Venn.d.ts +1 -1
- package/lib/types/a11y/PlotA11yModule.d.ts +11 -4
- package/lib/types/a11y/PlotA11yView.d.ts +2 -13
- 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 +15 -15
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, assignProps, Component } 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_1ghwe_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_1ghwe);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SBubble_1ghwe_gg_:hover{opacity:.8}}g._visible_false_1ghwe_gg_{display:none}.___SBubble_1ghwe_gg_.__clickable_1ghwe_gg_{cursor:pointer}.___SBubble_1ghwe_gg_.__color_1ghwe_gg_{fill:var(--color_1ghwe)}.___SBubble_1ghwe_gg_.__pattern_1ghwe_gg_.__color_1ghwe_gg_{fill:var(--pattern_1ghwe);stroke:var(--color_1ghwe);stroke-width:1px}.___SBubble_1ghwe_gg_.__transparent_1ghwe_gg_{opacity:.3}.___SCenter_1ghwe_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_1ghwe_gg_.__color_1ghwe_gg_{stroke:var(--color_1ghwe)}.___SCenter_1ghwe_gg_.__transparent_1ghwe_gg_{opacity:.3}.___SLabel_1ghwe_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219))}.___SLabel_1ghwe_gg_._position_right_1ghwe_gg_{text-anchor:end}.___SLabel_1ghwe_gg_._position_left_1ghwe_gg_{text-anchor:start}.___SLabel_1ghwe_gg_.__color_1ghwe_gg_{fill:var(--color_1ghwe)}.___SLabel_1ghwe_gg_.__transparent_1ghwe_gg_{opacity:.3}",
|
|
25
25
|
/*__inner_css_end__*/
|
|
26
|
-
"
|
|
26
|
+
"1ghwe_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_1ghwe_gg_",
|
|
30
|
+
"__SBubble": "___SBubble_1ghwe_gg_",
|
|
31
|
+
"_clickable": "__clickable_1ghwe_gg_",
|
|
32
|
+
"_color": "__color_1ghwe_gg_",
|
|
33
|
+
"--color": "--color_1ghwe",
|
|
34
|
+
"_pattern": "__pattern_1ghwe_gg_",
|
|
35
|
+
"--pattern": "--pattern_1ghwe",
|
|
36
|
+
"_transparent": "__transparent_1ghwe_gg_",
|
|
37
|
+
"__SCenter": "___SCenter_1ghwe_gg_",
|
|
38
|
+
"__SLabel": "___SLabel_1ghwe_gg_",
|
|
39
|
+
"_position_right": "_position_right_1ghwe_gg_",
|
|
40
|
+
"_position_left": "_position_left_1ghwe_gg_",
|
|
41
|
+
"--duration": "--duration_1ghwe"
|
|
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,
|
|
10
|
-
import { Box } from "@semcore/base-components";
|
|
9
|
+
import { sstyled, assignProps, Component } from "@semcore/core";
|
|
11
10
|
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
12
11
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
13
12
|
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
14
13
|
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_1kwty_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));transition-property:height,width,y;transition-duration:var(--duration_1kwty);transition-timing-function:ease-in-out}.___SBar_1kwty_gg_.__color_1kwty_gg_{fill:var(--color_1kwty)}.___SBar_1kwty_gg_.__pattern_1kwty_gg_.__color_1kwty_gg_{fill:var(--pattern_1kwty);stroke:var(--color_1kwty);stroke-width:1px}.___SBar_1kwty_gg_.__hide_1kwty_gg_{display:none}.___SBar_1kwty_gg_.__transparent_1kwty_gg_{opacity:.3}.___SBackground_1kwty_gg_.__onClick_1kwty_gg_,.___SBar_1kwty_gg_.__onClick_1kwty_gg_{cursor:pointer}.___SBackground_1kwty_gg_{fill:var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242))}.___SBarAnnotation_1kwty_gg_{display:flex;justify-content:space-between}.___SBarLabel_1kwty_gg_,.___SBarPercent_1kwty_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SBarLabel_1kwty_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));margin-right:auto}.___SBarPercent_1kwty_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_1kwty_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SBarPercent_1kwty_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SBarValue_1kwty_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_1kwty_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(0, 22, 16, 0.028))}",
|
|
27
27
|
/*__inner_css_end__*/
|
|
28
|
-
"
|
|
28
|
+
"1kwty_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_1kwty_gg_",
|
|
32
|
+
"--duration": "--duration_1kwty",
|
|
33
|
+
"_color": "__color_1kwty_gg_",
|
|
34
|
+
"--color": "--color_1kwty",
|
|
35
|
+
"_pattern": "__pattern_1kwty_gg_",
|
|
36
|
+
"--pattern": "--pattern_1kwty",
|
|
37
|
+
"_hide": "__hide_1kwty_gg_",
|
|
38
|
+
"_transparent": "__transparent_1kwty_gg_",
|
|
39
|
+
"_onClick": "__onClick_1kwty_gg_",
|
|
40
|
+
"__SBackground": "___SBackground_1kwty_gg_",
|
|
41
|
+
"__SBarAnnotation": "___SBarAnnotation_1kwty_gg_",
|
|
42
|
+
"__SBarLabel": "___SBarLabel_1kwty_gg_",
|
|
43
|
+
"__SBarPercent": "___SBarPercent_1kwty_gg_",
|
|
44
|
+
"__SBarValue": "___SBarValue_1kwty_gg_",
|
|
45
|
+
"__SCompactHorizontalBarHoverRect": "___SCompactHorizontalBarHoverRect_1kwty_gg_"
|
|
46
46
|
})
|
|
47
47
|
);
|
|
48
48
|
var MIN_WIDTH = 4;
|
|
@@ -507,7 +507,6 @@ function CompactHorizontalBarTooltip(props) {
|
|
|
507
507
|
"excludeAnchorProps": true
|
|
508
508
|
}, _ref4))));
|
|
509
509
|
}
|
|
510
|
-
;
|
|
511
510
|
var CompactHorizontalBar = createElement(CompactHorizontalBarRoot, {
|
|
512
511
|
Annotation,
|
|
513
512
|
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, assignProps, Component } 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_17s2c_gg_{stroke:var(--intergalactic-chart-grid-border, #fff);fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219))}.___SPie_17s2c_gg_.__color_17s2c_gg_{fill:var(--color_17s2c)}.___SPie_17s2c_gg_.__pattern_17s2c_gg_.__color_17s2c_gg_{fill:var(--pattern_17s2c);stroke:var(--color_17s2c);stroke-width:1px}.___SPie_17s2c_gg_.__transparent_17s2c_gg_{opacity:.3}.___SEmptyData_17s2c_gg_{fill:var(--intergalactic-chart-palette-order-null, rgb(221, 222, 222))}.___SEmptyData_17s2c_gg_.__color_17s2c_gg_{fill:var(--color_17s2c)}.___SLabel_17s2c_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
|
+
"17s2c_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_17s2c_gg_",
|
|
34
|
+
"_color": "__color_17s2c_gg_",
|
|
35
|
+
"--color": "--color_17s2c",
|
|
36
|
+
"_pattern": "__pattern_17s2c_gg_",
|
|
37
|
+
"--pattern": "--pattern_17s2c",
|
|
38
|
+
"_transparent": "__transparent_17s2c_gg_",
|
|
39
|
+
"__SEmptyData": "___SEmptyData_17s2c_gg_",
|
|
40
|
+
"__SLabel": "___SLabel_17s2c_gg_"
|
|
41
41
|
})
|
|
42
42
|
);
|
|
43
|
-
var DEFAULT_INSTANCE =
|
|
43
|
+
var DEFAULT_INSTANCE = 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,8 +318,7 @@ _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
|
|
322
|
-
outerRadius
|
|
321
|
+
halfsize
|
|
323
322
|
})).innerRadius(innerRadius).padAngle(paddingAngle);
|
|
324
323
|
var d3ArcOut = arc().outerRadius((outerRadius || getOuterRadius({
|
|
325
324
|
size,
|
|
@@ -415,7 +414,6 @@ function DonutTooltip(props) {
|
|
|
415
414
|
"excludeAnchorProps": true
|
|
416
415
|
}, _ref))));
|
|
417
416
|
}
|
|
418
|
-
;
|
|
419
417
|
var Donut = createElement(DonutRoot, {
|
|
420
418
|
Pie,
|
|
421
419
|
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 {
|
|
8
|
+
import { interpolateValue, eventToPoint, invert, getChartDefaultColorName } 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_1l1a2_gg_ .___SDot_1l1a2_gg_{transition-duration:var(--duration_1l1a2)}.___SDot_1l1a2_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_1l1a2_gg_.__hide_1l1a2_gg_{display:none}.___SDot_1l1a2_gg_.__color_1l1a2_gg_{fill:var(--color_1l1a2)}.___SDot_1l1a2_gg_.__transparent_1l1a2_gg_{opacity:.3}",
|
|
15
15
|
/*__inner_css_end__*/
|
|
16
|
-
"
|
|
16
|
+
"1l1a2_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_1l1a2_gg_",
|
|
20
|
+
"_hide": "__hide_1l1a2_gg_",
|
|
21
|
+
"_color": "__color_1l1a2_gg_",
|
|
22
|
+
"--color": "--color_1l1a2",
|
|
23
|
+
"_transparent": "__transparent_1l1a2_gg_",
|
|
24
|
+
"__SDots": "___SDots_1l1a2_gg_",
|
|
25
|
+
"--duration": "--duration_1l1a2"
|
|
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_1kwty_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));transition-property:height,width,y;transition-duration:var(--duration_1kwty);transition-timing-function:ease-in-out}.___SBar_1kwty_gg_.__color_1kwty_gg_{fill:var(--color_1kwty)}.___SBar_1kwty_gg_.__pattern_1kwty_gg_.__color_1kwty_gg_{fill:var(--pattern_1kwty);stroke:var(--color_1kwty);stroke-width:1px}.___SBar_1kwty_gg_.__hide_1kwty_gg_{display:none}.___SBar_1kwty_gg_.__transparent_1kwty_gg_{opacity:.3}.___SBackground_1kwty_gg_.__onClick_1kwty_gg_,.___SBar_1kwty_gg_.__onClick_1kwty_gg_{cursor:pointer}.___SBackground_1kwty_gg_{fill:var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242))}.___SBarAnnotation_1kwty_gg_{display:flex;justify-content:space-between}.___SBarLabel_1kwty_gg_,.___SBarPercent_1kwty_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SBarLabel_1kwty_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));margin-right:auto}.___SBarPercent_1kwty_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_1kwty_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SBarPercent_1kwty_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SBarValue_1kwty_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_1kwty_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(0, 22, 16, 0.028))}",
|
|
20
20
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
21
|
+
"1kwty_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_1kwty_gg_",
|
|
25
|
+
"--duration": "--duration_1kwty",
|
|
26
|
+
"_color": "__color_1kwty_gg_",
|
|
27
|
+
"--color": "--color_1kwty",
|
|
28
|
+
"_pattern": "__pattern_1kwty_gg_",
|
|
29
|
+
"--pattern": "--pattern_1kwty",
|
|
30
|
+
"_hide": "__hide_1kwty_gg_",
|
|
31
|
+
"_transparent": "__transparent_1kwty_gg_",
|
|
32
|
+
"_onClick": "__onClick_1kwty_gg_",
|
|
33
|
+
"__SBackground": "___SBackground_1kwty_gg_",
|
|
34
|
+
"__SBarAnnotation": "___SBarAnnotation_1kwty_gg_",
|
|
35
|
+
"__SBarLabel": "___SBarLabel_1kwty_gg_",
|
|
36
|
+
"__SBarPercent": "___SBarPercent_1kwty_gg_",
|
|
37
|
+
"__SBarValue": "___SBarValue_1kwty_gg_",
|
|
38
|
+
"__SCompactHorizontalBarHoverRect": "___SCompactHorizontalBarHoverRect_1kwty_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: 2,
|
|
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, assignProps, Component } 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 { scaleOfBandwidth, scaleToBand, eventToPoint, invert, getIndexFromData } 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_1tr0z_gg_,.___SHoverLine_1tr0z_gg_:focus-visible{outline:0;stroke:var(--intergalactic-chart-grid-x-axis, rgb(214, 216, 215))}.___SHoverRect_1tr0z_gg_,.___SHoverRect_1tr0z_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
|
+
"1tr0z_gg_"
|
|
24
24
|
), /*__reshadow_css_end__*/
|
|
25
25
|
{
|
|
26
|
-
"__SHoverLine": "
|
|
27
|
-
"__SHoverRect": "
|
|
26
|
+
"__SHoverLine": "___SHoverLine_1tr0z_gg_",
|
|
27
|
+
"__SHoverRect": "___SHoverRect_1tr0z_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 { area, curveCardinal, line, curveLinear } 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,
|
|
16
|
+
import { interpolateValue, getNullData, eventToPoint, invert, definedData, definedNullData, getChartDefaultColorName, 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_rq2tt_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));transition-property:d;transition-duration:var(--duration_rq2tt);transition-timing-function:ease-in-out}.___SLine_rq2tt_gg_.__color_rq2tt_gg_{stroke:var(--color_rq2tt)}.___SLine_rq2tt_gg_.__hide_rq2tt_gg_{display:none}.___SLine_rq2tt_gg_.__transparent_rq2tt_gg_{opacity:.3}.___SNull_rq2tt_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_rq2tt_gg_{stroke:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SNull_rq2tt_gg_{stroke:var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SNull_rq2tt_gg_.__hide_rq2tt_gg_{display:none}.___SLineArea_rq2tt_gg_{transition-property:d;transition-duration:var(--duration_rq2tt);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219))}.___SLineArea_rq2tt_gg_.__color_rq2tt_gg_{fill:var(--color_rq2tt)}",
|
|
23
23
|
/*__inner_css_end__*/
|
|
24
|
-
"
|
|
24
|
+
"rq2tt_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_rq2tt_gg_",
|
|
28
|
+
"--duration": "--duration_rq2tt",
|
|
29
|
+
"_color": "__color_rq2tt_gg_",
|
|
30
|
+
"--color": "--color_rq2tt",
|
|
31
|
+
"_hide": "__hide_rq2tt_gg_",
|
|
32
|
+
"_transparent": "__transparent_rq2tt_gg_",
|
|
33
|
+
"__SNull": "___SNull_rq2tt_gg_",
|
|
34
|
+
"__SLineArea": "___SLineArea_rq2tt_gg_"
|
|
35
35
|
})
|
|
36
36
|
);
|
|
37
37
|
var LineRoot = /* @__PURE__ */ (function(_Component) {
|
package/lib/esm/Plot.mjs
CHANGED
|
@@ -5,11 +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 { sstyled, assignProps, Component
|
|
9
|
-
import { Box } from "@semcore/base-components";
|
|
8
|
+
import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
|
|
10
9
|
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";
|
|
13
14
|
import React from "react";
|
|
14
15
|
import { makeDataHintsContainer, makeDataHintsHandlers } from "./a11y/hints.mjs";
|
|
15
16
|
import { PlotA11yModule } from "./a11y/PlotA11yModule.mjs";
|
|
@@ -20,12 +21,13 @@ var style = (
|
|
|
20
21
|
/*__reshadow_css_start__*/
|
|
21
22
|
(sstyled.insert(
|
|
22
23
|
/*__inner_css_start__*/
|
|
23
|
-
".
|
|
24
|
+
".___SPlot_sfwjb_gg_{overflow:hidden}.___SPlot_sfwjb_gg_:focus{outline:0}.___SPlot_sfwjb_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_sfwjb_gg_.__keyboardFocused_sfwjb_gg_{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_sfwjb_gg_.__keyboardFocused_sfwjb_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 32, 221, 0.469))}@media (color-gamut:p3){.___SPlot_sfwjb_gg_.__keyboardFocused_sfwjb_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, color(display-p3 0.03256 0.12227 0.83249 / 0.469))}}}",
|
|
24
25
|
/*__inner_css_end__*/
|
|
25
|
-
"
|
|
26
|
+
"sfwjb_gg_"
|
|
26
27
|
), /*__reshadow_css_end__*/
|
|
27
28
|
{
|
|
28
|
-
"__SPlot": "
|
|
29
|
+
"__SPlot": "___SPlot_sfwjb_gg_",
|
|
30
|
+
"_keyboardFocused": "__keyboardFocused_sfwjb_gg_"
|
|
29
31
|
})
|
|
30
32
|
);
|
|
31
33
|
var PlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
@@ -100,6 +102,7 @@ var PlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
100
102
|
"onMouseMove": this.handlerMouseMove,
|
|
101
103
|
"onMouseLeave": this.handlerMouseLeave,
|
|
102
104
|
"aria-label": ariaLabel,
|
|
105
|
+
"tabIndex": 0,
|
|
103
106
|
"data-plot-id": this.plotId
|
|
104
107
|
}, _ref))), /* @__PURE__ */ React.createElement(Children, _ref2.cn("Children", {})), /* @__PURE__ */ React.createElement("foreignObject", _ref2.cn("foreignObject", {
|
|
105
108
|
"width": "100%",
|
|
@@ -107,7 +110,7 @@ var PlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
107
110
|
"data-aria-only": true
|
|
108
111
|
}), /* @__PURE__ */ React.createElement(PlotA11yModule, _ref2.cn("PlotA11yModule", {
|
|
109
112
|
"id": this.plotId,
|
|
110
|
-
"
|
|
113
|
+
"data": data,
|
|
111
114
|
"plotLabel": label,
|
|
112
115
|
"locale": locale,
|
|
113
116
|
"plotRef": this.rootRef,
|
|
@@ -125,7 +128,7 @@ _defineProperty(PlotRoot, "defaultProps", function() {
|
|
|
125
128
|
height: 0
|
|
126
129
|
};
|
|
127
130
|
});
|
|
128
|
-
_defineProperty(PlotRoot, "enhance", [resolveColorEnhance(), i18nEnhance(localizedMessages)]);
|
|
131
|
+
_defineProperty(PlotRoot, "enhance", [keyboardFocusEnhance(), resolveColorEnhance(), i18nEnhance(localizedMessages)]);
|
|
129
132
|
const Plot = createComponent(PlotRoot);
|
|
130
133
|
export {
|
|
131
134
|
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, assignProps, Component } 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 { arc, line, lineRadial, curveLinearClosed } 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 {
|
|
20
|
+
import { getChartDefaultColorName, eventToPoint, measureText } 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_hu9b6_gg_,.___SAxisTick_hu9b6_gg_,.___SAxis_hu9b6_gg_{stroke:var(--intergalactic-chart-grid-line, rgb(237, 239, 238));stroke-width:1;fill:transparent}.___SAxisLine_hu9b6_gg_,.___SAxisTick_hu9b6_gg_{stroke-dasharray:2}.___SAxisLine_hu9b6_gg_.__active_hu9b6_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, rgb(214, 216, 215))}.___SAxisLabel_hu9b6_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_hu9b6_gg_.__xDirection_hu9b6_gg_{text-anchor:var(--xDirection_hu9b6)}.___SAxisLabel_hu9b6_gg_.__yDirection_hu9b6_gg_{dominant-baseline:var(--yDirection_hu9b6)}.___SPolygonDot_hu9b6_gg_,.___SPolygon_hu9b6_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219))}.___SPolygon_hu9b6_gg_{opacity:.2}.___SPolygon_hu9b6_gg_.__color_hu9b6_gg_{fill:var(--color_hu9b6)}.___SPolygon_hu9b6_gg_.__pattern_hu9b6_gg_.__color_hu9b6_gg_{fill:var(--pattern_hu9b6);stroke:var(--color_hu9b6);stroke-width:1px}.___SPolygonDot_hu9b6_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #fff);r:6px}.___SPolygonDot_hu9b6_gg_.__transparent_hu9b6_gg_{opacity:.3}.___SPolygonDot_hu9b6_gg_.__color_hu9b6_gg_{fill:var(--color_hu9b6)}.___SPolygonLine_hu9b6_gg_{stroke:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));stroke-width:3;fill:transparent}.___SPolygonLine_hu9b6_gg_.__transparent_hu9b6_gg_{opacity:.3}.___SPolygonLine_hu9b6_gg_.__color_hu9b6_gg_{stroke:var(--color_hu9b6)}.___SPieRect_hu9b6_gg_{outline:0;fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(0, 22, 16, 0.028))}",
|
|
27
27
|
/*__inner_css_end__*/
|
|
28
|
-
"
|
|
28
|
+
"hu9b6_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_hu9b6_gg_",
|
|
32
|
+
"__SAxisLine": "___SAxisLine_hu9b6_gg_",
|
|
33
|
+
"__SAxisTick": "___SAxisTick_hu9b6_gg_",
|
|
34
|
+
"_active": "__active_hu9b6_gg_",
|
|
35
|
+
"__SAxisLabel": "___SAxisLabel_hu9b6_gg_",
|
|
36
|
+
"_xDirection": "__xDirection_hu9b6_gg_",
|
|
37
|
+
"--xDirection": "--xDirection_hu9b6",
|
|
38
|
+
"_yDirection": "__yDirection_hu9b6_gg_",
|
|
39
|
+
"--yDirection": "--yDirection_hu9b6",
|
|
40
|
+
"__SPolygon": "___SPolygon_hu9b6_gg_",
|
|
41
|
+
"_color": "__color_hu9b6_gg_",
|
|
42
|
+
"--color": "--color_hu9b6",
|
|
43
|
+
"_pattern": "__pattern_hu9b6_gg_",
|
|
44
|
+
"--pattern": "--pattern_hu9b6",
|
|
45
|
+
"__SPolygonDot": "___SPolygonDot_hu9b6_gg_",
|
|
46
|
+
"_transparent": "__transparent_hu9b6_gg_",
|
|
47
|
+
"__SPolygonLine": "___SPolygonLine_hu9b6_gg_",
|
|
48
|
+
"__SPieRect": "___SPieRect_hu9b6_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_jcn5g_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, rgb(92, 92, 196))}.___SLine_jcn5g_gg_{stroke:var(--intergalactic-text-large-info, rgb(92, 92, 196))}.___SLine_jcn5g_gg_.__stroke_jcn5g_gg_{stroke:var(--stroke_jcn5g)}.___SLine_jcn5g_gg_.__transparent_jcn5g_gg_{opacity:.3}.___SCap_jcn5g_gg_{transition:r .1s}.___SCap_jcn5g_gg_.__pattern_jcn5g_gg_{stroke:var(--intergalactic-chart-grid-border, #fff);stroke-width:1px}.___SCap_jcn5g_gg_.__transparent_jcn5g_gg_,.___SIcon_jcn5g_gg_.__transparent_jcn5g_gg_,.___SLabel_jcn5g_gg_.__transparent_jcn5g_gg_{opacity:.3}.___SLabel_jcn5g_gg_{fill:var(--color_jcn5g)}@media (hover:hover){.___SRadian_jcn5g_gg_:hover .___SLabel_jcn5g_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_jcn5g_gg_{transition:none}}",
|
|
27
27
|
/*__inner_css_end__*/
|
|
28
|
-
"
|
|
28
|
+
"jcn5g_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_jcn5g_gg_",
|
|
32
|
+
"__SLine": "___SLine_jcn5g_gg_",
|
|
33
|
+
"_stroke": "__stroke_jcn5g_gg_",
|
|
34
|
+
"--stroke": "--stroke_jcn5g",
|
|
35
|
+
"_transparent": "__transparent_jcn5g_gg_",
|
|
36
|
+
"__SCap": "___SCap_jcn5g_gg_",
|
|
37
|
+
"_pattern": "__pattern_jcn5g_gg_",
|
|
38
|
+
"__SIcon": "___SIcon_jcn5g_gg_",
|
|
39
|
+
"__SLabel": "___SLabel_jcn5g_gg_",
|
|
40
|
+
"--color": "--color_jcn5g",
|
|
41
|
+
"__SLineCap": "___SLineCap_jcn5g_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_17cdn_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, rgb(214, 216, 215))}.___STitle_17cdn_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_17cdn)}@supports (color:color(display-p3 0 0 0%)){.___STitle_17cdn_gg_{fill:var(--intergalactic-chart-grid-text-label, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_17cdn_gg_{fill:var(--intergalactic-chart-grid-text-label, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___STitle_17cdn_gg_._position_top_17cdn_gg_{text-anchor:middle}.___STitle_17cdn_gg_._position_bottom_17cdn_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_17cdn_gg_._position_left_17cdn_gg_,.___STitle_17cdn_gg_._position_right_17cdn_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_17cdn_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgb(241, 242, 242))}.___SStripes_17cdn_gg_{fill:var(--fill_17cdn)}.___SStripesPatternPath_17cdn_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgb(237, 239, 238));stroke-width:1px}",
|
|
19
19
|
/*__inner_css_end__*/
|
|
20
|
-
"
|
|
20
|
+
"17cdn_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_17cdn_gg_",
|
|
24
|
+
"__STitle": "___STitle_17cdn_gg_",
|
|
25
|
+
"--transform-origin": "--transform-origin_17cdn",
|
|
26
|
+
"_position_top": "_position_top_17cdn_gg_",
|
|
27
|
+
"_position_bottom": "_position_bottom_17cdn_gg_",
|
|
28
|
+
"_position_right": "_position_right_17cdn_gg_",
|
|
29
|
+
"_position_left": "_position_left_17cdn_gg_",
|
|
30
|
+
"__SBackground": "___SBackground_17cdn_gg_",
|
|
31
|
+
"__SStripes": "___SStripes_17cdn_gg_",
|
|
32
|
+
"--fill": "--fill_17cdn",
|
|
33
|
+
"__SStripesPatternPath": "___SStripesPatternPath_17cdn_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 { sstyled, assignProps, Component
|
|
9
|
-
import { Box } from "@semcore/base-components";
|
|
8
|
+
import { createComponent, sstyled, assignProps, Component } from "@semcore/core";
|
|
10
9
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
11
10
|
import fire from "@semcore/core/lib/utils/fire";
|
|
12
11
|
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
13
12
|
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) {
|