@semcore/d3-chart 3.60.2-prerelease.0 → 3.61.0-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/lib/cjs/AnimatedClipPath.js +11 -15
- package/lib/cjs/AnimatedClipPath.js.map +1 -1
- package/lib/cjs/Area.js +71 -48
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +170 -108
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +29 -34
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +211 -137
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +92 -82
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +154 -139
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +55 -38
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +15 -18
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +29 -34
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +52 -45
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +63 -41
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +16 -12
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +29 -36
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +281 -261
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +169 -154
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +45 -51
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +20 -25
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +71 -61
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +20 -31
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +12 -16
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +73 -73
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +77 -52
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/DataAccessibilityTable.js +2 -3
- package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +43 -86
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +44 -19
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/bezier.js +1 -2
- package/lib/cjs/a11y/bezier.js.map +1 -1
- package/lib/cjs/a11y/focus.js +5 -6
- package/lib/cjs/a11y/focus.js.map +1 -1
- package/lib/cjs/a11y/hints.js +6 -9
- package/lib/cjs/a11y/hints.js.map +1 -1
- package/lib/cjs/a11y/insights.js +63 -64
- package/lib/cjs/a11y/insights.js.map +1 -1
- package/lib/cjs/a11y/intl.js +1 -2
- package/lib/cjs/a11y/intl.js.map +1 -1
- package/lib/cjs/a11y/locale.js +5 -5
- package/lib/cjs/a11y/locale.js.map +1 -1
- package/lib/cjs/a11y/serialize.js +15 -17
- package/lib/cjs/a11y/serialize.js.map +1 -1
- package/lib/cjs/a11y/summarize.js +1 -2
- package/lib/cjs/a11y/summarize.js.map +1 -1
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.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/a11y/translations/view/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/color.js +2 -3
- package/lib/cjs/color.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.js +157 -83
- 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 +24 -51
- 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 +85 -69
- package/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.js +31 -27
- package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +340 -147
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +11 -15
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +16 -22
- package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.js +16 -44
- package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.js +22 -48
- package/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.js +15 -19
- package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.js +16 -21
- package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.js +16 -19
- package/lib/cjs/component/Chart/VennChart.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/index.js +7 -8
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +45 -23
- 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 +19 -24
- 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 +108 -83
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -2
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +18 -23
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/index.js +1 -2
- package/lib/cjs/component/ChartLegend/index.js.map +1 -1
- package/lib/cjs/component/Cigarette/Cigarette.js +16 -20
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js +19 -24
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/cjs/component/SvgElement.js +21 -0
- package/lib/cjs/component/SvgElement.js.map +1 -0
- package/lib/cjs/createElement.d.js.map +1 -1
- package/lib/cjs/createElement.js +10 -12
- package/lib/cjs/createElement.js.map +1 -1
- package/lib/cjs/index.js +9 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/abstract-chart.shadow.css +12 -0
- package/lib/cjs/style/area.shadow.css +3 -3
- package/lib/cjs/style/axis.shadow.css +43 -5
- package/lib/cjs/style/bar.shadow.css +6 -6
- package/lib/cjs/style/bubble.shadow.css +12 -4
- package/lib/cjs/style/donut.shadow.css +3 -3
- package/lib/cjs/style/dot.shadow.css +2 -2
- package/lib/cjs/style/hover.shadow.css +4 -4
- package/lib/cjs/style/line.shadow.css +3 -3
- package/lib/cjs/style/plot.shadow.css +8 -6
- package/lib/cjs/style/plotA11yModule.shadow.css +10 -11
- package/lib/cjs/style/plotA11yView.shadow.css +16 -29
- package/lib/cjs/style/radar.shadow.css +8 -8
- package/lib/cjs/style/radial-tree.shadow.css +3 -3
- package/lib/cjs/style/reference.shadow.css +4 -4
- package/lib/cjs/style/scatterplot.shadow.css +2 -2
- package/lib/cjs/style/tooltip.shadow.css +5 -5
- package/lib/cjs/style/venn.shadow.css +3 -3
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/translations/de.json +1 -0
- package/lib/cjs/translations/es.json +1 -0
- package/lib/cjs/translations/fr.json +1 -0
- package/lib/cjs/translations/it.json +1 -0
- package/lib/cjs/translations/ja.json +1 -0
- package/lib/cjs/translations/ko.json +1 -0
- package/lib/cjs/translations/nl.json +1 -0
- package/lib/cjs/translations/pl.json +1 -0
- package/lib/cjs/translations/pt.json +1 -0
- package/lib/cjs/translations/sv.json +1 -0
- package/lib/cjs/translations/tr.json +2 -1
- package/lib/cjs/translations/vi.json +1 -0
- package/lib/cjs/translations/zh.json +1 -0
- package/lib/cjs/types/Area.d.js.map +1 -1
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/Bar.d.js.map +1 -1
- package/lib/cjs/types/Bubble.d.js.map +1 -1
- package/lib/cjs/types/ClipPath.d.js.map +1 -1
- package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/GroupBar.d.js.map +1 -1
- package/lib/cjs/types/HorizontalBar.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/Reference.d.js.map +1 -1
- package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
- package/lib/cjs/types/StackBar.d.js.map +1 -1
- package/lib/cjs/types/StackedArea.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/types/context.d.js.map +1 -1
- package/lib/cjs/types/index.d.js +14 -2
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +36 -55
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/AnimatedClipPath.js +9 -11
- package/lib/es6/AnimatedClipPath.js.map +1 -1
- package/lib/es6/Area.js +70 -45
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +168 -104
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +27 -29
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +211 -135
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +89 -77
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +154 -137
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +55 -36
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +13 -15
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +27 -29
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +51 -41
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +61 -37
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +7 -3
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +28 -32
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +279 -257
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +168 -151
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +43 -45
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +16 -19
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +71 -59
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +17 -27
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +10 -13
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +68 -65
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +75 -48
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +43 -86
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +43 -16
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/bezier.js.map +1 -1
- package/lib/es6/a11y/focus.js +4 -4
- package/lib/es6/a11y/focus.js.map +1 -1
- package/lib/es6/a11y/hints.js +2 -2
- package/lib/es6/a11y/hints.js.map +1 -1
- package/lib/es6/a11y/insights.js +61 -61
- package/lib/es6/a11y/insights.js.map +1 -1
- package/lib/es6/a11y/intl.js.map +1 -1
- package/lib/es6/a11y/locale.js +3 -2
- package/lib/es6/a11y/locale.js.map +1 -1
- package/lib/es6/a11y/serialize.js +14 -13
- package/lib/es6/a11y/serialize.js.map +1 -1
- package/lib/es6/a11y/summarize.js.map +1 -1
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.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/a11y/translations/view/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/color.js +1 -1
- package/lib/es6/color.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.js +159 -80
- 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 +23 -48
- 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 +84 -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.js +30 -24
- package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +341 -144
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js +9 -12
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +14 -18
- package/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.js +15 -41
- package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.js +20 -45
- package/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.js +13 -16
- package/lib/es6/component/Chart/RadarChart.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.js +15 -18
- package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.js +14 -16
- package/lib/es6/component/Chart/VennChart.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/Chart/index.js +6 -6
- package/lib/es6/component/Chart/index.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +43 -20
- 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 +17 -19
- 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 +102 -74
- 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/LegendItem/legend-item.shadow.css +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +15 -17
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/index.js.map +1 -1
- package/lib/es6/component/Cigarette/Cigarette.js +14 -17
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.js +17 -21
- package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/es6/component/SvgElement.js +14 -0
- package/lib/es6/component/SvgElement.js.map +1 -0
- package/lib/es6/createElement.d.js.map +1 -1
- package/lib/es6/createElement.js +7 -7
- package/lib/es6/createElement.js.map +1 -1
- package/lib/es6/index.js +1 -0
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/abstract-chart.shadow.css +12 -0
- package/lib/es6/style/area.shadow.css +3 -3
- package/lib/es6/style/axis.shadow.css +43 -5
- package/lib/es6/style/bar.shadow.css +6 -6
- package/lib/es6/style/bubble.shadow.css +12 -4
- package/lib/es6/style/donut.shadow.css +3 -3
- package/lib/es6/style/dot.shadow.css +2 -2
- package/lib/es6/style/hover.shadow.css +4 -4
- package/lib/es6/style/line.shadow.css +3 -3
- package/lib/es6/style/plot.shadow.css +8 -6
- package/lib/es6/style/plotA11yModule.shadow.css +10 -11
- package/lib/es6/style/plotA11yView.shadow.css +16 -29
- package/lib/es6/style/radar.shadow.css +8 -8
- package/lib/es6/style/radial-tree.shadow.css +3 -3
- package/lib/es6/style/reference.shadow.css +4 -4
- package/lib/es6/style/scatterplot.shadow.css +2 -2
- package/lib/es6/style/tooltip.shadow.css +5 -5
- package/lib/es6/style/venn.shadow.css +3 -3
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/translations/de.json +1 -0
- package/lib/es6/translations/es.json +1 -0
- package/lib/es6/translations/fr.json +1 -0
- package/lib/es6/translations/it.json +1 -0
- package/lib/es6/translations/ja.json +1 -0
- package/lib/es6/translations/ko.json +1 -0
- package/lib/es6/translations/nl.json +1 -0
- package/lib/es6/translations/pl.json +1 -0
- package/lib/es6/translations/pt.json +1 -0
- package/lib/es6/translations/sv.json +1 -0
- package/lib/es6/translations/tr.json +2 -1
- package/lib/es6/translations/vi.json +1 -0
- package/lib/es6/translations/zh.json +1 -0
- package/lib/es6/types/Area.d.js.map +1 -1
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/Bar.d.js.map +1 -1
- package/lib/es6/types/Bubble.d.js.map +1 -1
- package/lib/es6/types/ClipPath.d.js.map +1 -1
- package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/GroupBar.d.js.map +1 -1
- package/lib/es6/types/HorizontalBar.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/Reference.d.js.map +1 -1
- package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/es6/types/ScatterPlot.d.js.map +1 -1
- package/lib/es6/types/StackBar.d.js.map +1 -1
- package/lib/es6/types/StackedArea.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/types/context.d.js.map +1 -1
- package/lib/es6/types/index.d.js +2 -0
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +16 -16
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +9 -16
- package/lib/esm/Area.mjs +51 -36
- package/lib/esm/Axis.mjs +143 -86
- package/lib/esm/Bar.mjs +31 -34
- package/lib/esm/Bubble.mjs +154 -106
- package/lib/esm/CompactHorizontalBar.mjs +88 -80
- package/lib/esm/Donut.mjs +87 -75
- package/lib/esm/Dots.mjs +50 -34
- package/lib/esm/GroupBar.mjs +12 -14
- package/lib/esm/HorizontalBar.mjs +31 -34
- package/lib/esm/Hover.mjs +53 -50
- package/lib/esm/Line.mjs +45 -31
- package/lib/esm/Pattern.mjs +4 -2
- package/lib/esm/Plot.mjs +30 -35
- package/lib/esm/Radar.mjs +188 -175
- package/lib/esm/RadialTree.mjs +105 -111
- package/lib/esm/Reference.mjs +37 -40
- package/lib/esm/ResponsiveContainer.mjs +18 -21
- package/lib/esm/ScatterPlot.mjs +49 -40
- package/lib/esm/StackBar.mjs +18 -28
- package/lib/esm/StackedArea.mjs +13 -16
- package/lib/esm/Tooltip.mjs +56 -59
- package/lib/esm/Venn.mjs +67 -47
- package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
- package/lib/esm/a11y/PlotA11yModule.mjs +35 -74
- package/lib/esm/a11y/PlotA11yView.mjs +41 -17
- package/lib/esm/a11y/focus.mjs +4 -4
- package/lib/esm/a11y/hints.mjs +2 -2
- package/lib/esm/a11y/insights.mjs +76 -76
- package/lib/esm/a11y/locale.mjs +2 -2
- package/lib/esm/a11y/serialize.mjs +12 -12
- package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +2 -2
- 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/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +141 -65
- package/lib/esm/component/Chart/AreaChart.mjs +27 -51
- package/lib/esm/component/Chart/BarChart.mjs +64 -51
- package/lib/esm/component/Chart/BubbleChart.mjs +30 -25
- package/lib/esm/component/Chart/CigaretteChart.mjs +298 -119
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +13 -15
- package/lib/esm/component/Chart/DonutChart.mjs +16 -19
- package/lib/esm/component/Chart/HistogramChart.mjs +22 -46
- package/lib/esm/component/Chart/LineChart.mjs +23 -46
- package/lib/esm/component/Chart/RadarChart.mjs +16 -18
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +18 -21
- package/lib/esm/component/Chart/VennChart.mjs +16 -19
- package/lib/esm/component/Chart/index.mjs +6 -6
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +45 -22
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +19 -22
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +88 -75
- package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +1 -1
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +22 -25
- package/lib/esm/component/ChartLegend/index.mjs +2 -0
- package/lib/esm/component/Cigarette/Cigarette.mjs +16 -19
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +18 -22
- package/lib/esm/component/SvgElement.mjs +14 -0
- package/lib/esm/createElement.mjs +8 -10
- package/lib/esm/index.mjs +3 -0
- package/lib/esm/style/abstract-chart.shadow.css +12 -0
- package/lib/esm/style/area.shadow.css +3 -3
- package/lib/esm/style/axis.shadow.css +43 -5
- package/lib/esm/style/bar.shadow.css +6 -6
- package/lib/esm/style/bubble.shadow.css +12 -4
- package/lib/esm/style/donut.shadow.css +3 -3
- package/lib/esm/style/dot.shadow.css +2 -2
- package/lib/esm/style/hover.shadow.css +4 -4
- package/lib/esm/style/line.shadow.css +3 -3
- package/lib/esm/style/plot.shadow.css +8 -6
- package/lib/esm/style/plotA11yModule.shadow.css +10 -11
- package/lib/esm/style/plotA11yView.shadow.css +16 -29
- package/lib/esm/style/radar.shadow.css +8 -8
- package/lib/esm/style/radial-tree.shadow.css +3 -3
- package/lib/esm/style/reference.shadow.css +4 -4
- package/lib/esm/style/scatterplot.shadow.css +2 -2
- package/lib/esm/style/tooltip.shadow.css +5 -5
- package/lib/esm/style/venn.shadow.css +3 -3
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/translations/es.json.mjs +1 -0
- package/lib/esm/translations/fr.json.mjs +1 -0
- package/lib/esm/translations/it.json.mjs +1 -0
- package/lib/esm/translations/ja.json.mjs +1 -0
- package/lib/esm/translations/ko.json.mjs +1 -0
- package/lib/esm/translations/nl.json.mjs +1 -0
- package/lib/esm/translations/pl.json.mjs +1 -0
- package/lib/esm/translations/pt.json.mjs +1 -0
- package/lib/esm/translations/sv.json.mjs +1 -0
- package/lib/esm/translations/tr.json.mjs +2 -1
- package/lib/esm/translations/vi.json.mjs +1 -0
- package/lib/esm/translations/zh.json.mjs +1 -0
- package/lib/esm/utils.mjs +11 -11
- package/lib/types/Area.d.ts +9 -6
- package/lib/types/Axis.d.ts +10 -3
- package/lib/types/Bar.d.ts +7 -6
- package/lib/types/Bubble.d.ts +21 -5
- package/lib/types/ClipPath.d.ts +4 -3
- package/lib/types/CompactHorizontalBar.d.ts +7 -8
- package/lib/types/Donut.d.ts +8 -5
- package/lib/types/GroupBar.d.ts +6 -6
- package/lib/types/HorizontalBar.d.ts +7 -6
- package/lib/types/Hover.d.ts +8 -8
- package/lib/types/Line.d.ts +9 -6
- package/lib/types/Pattern.d.ts +51 -51
- package/lib/types/Plot.d.ts +11 -9
- package/lib/types/Radar.d.ts +10 -7
- package/lib/types/RadialTree.d.ts +10 -54
- package/lib/types/Reference.d.ts +6 -5
- package/lib/types/ResponsiveContainer.d.ts +5 -4
- package/lib/types/ScatterPlot.d.ts +8 -5
- package/lib/types/StackBar.d.ts +7 -6
- package/lib/types/StackedArea.d.ts +6 -5
- package/lib/types/Tooltip.d.ts +12 -12
- package/lib/types/Venn.d.ts +7 -6
- package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
- package/lib/types/a11y/PlotA11yModule.d.ts +4 -11
- package/lib/types/a11y/PlotA11yView.d.ts +13 -2
- package/lib/types/a11y/hints.d.ts +5 -5
- package/lib/types/a11y/insights.d.ts +1 -1
- package/lib/types/a11y/intl.d.ts +1 -1
- package/lib/types/a11y/serialize.d.ts +7 -7
- package/lib/types/a11y/summarize.d.ts +2 -2
- package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
- package/lib/types/component/Chart/AbstractChart.d.ts +20 -13
- package/lib/types/component/Chart/AbstractChart.type.d.ts +39 -25
- package/lib/types/component/Chart/AreaChart.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +17 -7
- package/lib/types/component/Chart/BarChart.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +14 -9
- package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +10 -5
- package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +18 -8
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +10 -6
- package/lib/types/component/Chart/DonutChart.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +16 -7
- package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +7 -4
- package/lib/types/component/Chart/LineChart.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +16 -7
- package/lib/types/component/Chart/RadarChart.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +7 -5
- package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +12 -6
- package/lib/types/component/Chart/VennChart.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +12 -6
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +8 -6
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +17 -10
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
- package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
- package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +3 -4
- package/lib/types/component/SvgElement.d.ts +10 -0
- package/lib/types/index.d.ts +3 -1
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +12 -0
- package/lib/types/utils.d.ts +17 -17
- package/package.json +10 -10
package/lib/esm/Bar.mjs
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
4
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import { sstyled } from "@semcore/
|
|
8
|
-
import
|
|
7
|
+
import { sstyled, Component } from "@semcore/core";
|
|
8
|
+
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
9
9
|
import { transition } from "d3-transition";
|
|
10
|
-
import
|
|
11
|
-
import uniqueIDEnhancement from "@semcore/utils/lib/uniqueID";
|
|
12
|
-
import createElement from "./createElement.mjs";
|
|
10
|
+
import React from "react";
|
|
13
11
|
import AnimatedClipPath from "./AnimatedClipPath.mjs";
|
|
14
|
-
import
|
|
12
|
+
import createElement from "./createElement.mjs";
|
|
15
13
|
import { PatternFill } from "./Pattern.mjs";
|
|
14
|
+
import { scaleToBand, roundedPath } from "./utils.mjs";
|
|
16
15
|
/*!__reshadow-styles__:"./style/bar.shadow.css"*/
|
|
17
16
|
var style = (
|
|
18
17
|
/*__reshadow_css_start__*/
|
|
19
18
|
(sstyled.insert(
|
|
20
19
|
/*__inner_css_start__*/
|
|
21
|
-
".
|
|
20
|
+
".___SBar_1l5sd_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(104, 109, 210));transition-property:height,width,y;transition-duration:var(--duration_1l5sd);transition-timing-function:ease-in-out}.___SBar_1l5sd_gg_.__color_1l5sd_gg_{fill:var(--color_1l5sd)}.___SBar_1l5sd_gg_.__pattern_1l5sd_gg_.__color_1l5sd_gg_{fill:var(--pattern_1l5sd);stroke:var(--color_1l5sd);stroke-width:1px}.___SBar_1l5sd_gg_.__hide_1l5sd_gg_{display:none}.___SBar_1l5sd_gg_.__transparent_1l5sd_gg_{opacity:.3}.___SBackground_1l5sd_gg_.__onClick_1l5sd_gg_,.___SBar_1l5sd_gg_.__onClick_1l5sd_gg_{cursor:pointer}.___SBackground_1l5sd_gg_{fill:var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242))}.___SBarAnnotation_1l5sd_gg_{display:flex;justify-content:space-between}.___SBarLabel_1l5sd_gg_,.___SBarPercent_1l5sd_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SBarLabel_1l5sd_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));margin-right:auto}.___SBarPercent_1l5sd_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_1l5sd_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SBarPercent_1l5sd_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SBarValue_1l5sd_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_1l5sd_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(0, 22, 16, 0.028))}",
|
|
22
21
|
/*__inner_css_end__*/
|
|
23
|
-
"
|
|
22
|
+
"1l5sd_gg_"
|
|
24
23
|
), /*__reshadow_css_end__*/
|
|
25
24
|
{
|
|
26
|
-
"__SBar": "
|
|
27
|
-
"--duration": "--
|
|
28
|
-
"_color": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
32
|
-
"_hide": "
|
|
33
|
-
"_transparent": "
|
|
34
|
-
"_onClick": "
|
|
35
|
-
"__SBackground": "
|
|
36
|
-
"__SBarAnnotation": "
|
|
37
|
-
"__SBarLabel": "
|
|
38
|
-
"__SBarPercent": "
|
|
39
|
-
"__SBarValue": "
|
|
40
|
-
"__SCompactHorizontalBarHoverRect": "
|
|
25
|
+
"__SBar": "___SBar_1l5sd_gg_",
|
|
26
|
+
"--duration": "--duration_1l5sd",
|
|
27
|
+
"_color": "__color_1l5sd_gg_",
|
|
28
|
+
"--color": "--color_1l5sd",
|
|
29
|
+
"_pattern": "__pattern_1l5sd_gg_",
|
|
30
|
+
"--pattern": "--pattern_1l5sd",
|
|
31
|
+
"_hide": "__hide_1l5sd_gg_",
|
|
32
|
+
"_transparent": "__transparent_1l5sd_gg_",
|
|
33
|
+
"_onClick": "__onClick_1l5sd_gg_",
|
|
34
|
+
"__SBackground": "___SBackground_1l5sd_gg_",
|
|
35
|
+
"__SBarAnnotation": "___SBarAnnotation_1l5sd_gg_",
|
|
36
|
+
"__SBarLabel": "___SBarLabel_1l5sd_gg_",
|
|
37
|
+
"__SBarPercent": "___SBarPercent_1l5sd_gg_",
|
|
38
|
+
"__SBarValue": "___SBarValue_1l5sd_gg_",
|
|
39
|
+
"__SCompactHorizontalBarHoverRect": "___SCompactHorizontalBarHoverRect_1l5sd_gg_"
|
|
41
40
|
})
|
|
42
41
|
);
|
|
43
42
|
var MIN_HEIGHT = 2;
|
|
@@ -47,14 +46,13 @@ var calcPartBarY = function calcPartBarY2(y, minHeight, height) {
|
|
|
47
46
|
}
|
|
48
47
|
return height <= minHeight ? minHeight : 0;
|
|
49
48
|
};
|
|
50
|
-
var BarRoot = /* @__PURE__ */ function(_Component) {
|
|
51
|
-
_inherits(BarRoot2, _Component);
|
|
52
|
-
var _super = _createSuper(BarRoot2);
|
|
49
|
+
var BarRoot = /* @__PURE__ */ (function(_Component) {
|
|
53
50
|
function BarRoot2() {
|
|
54
51
|
_classCallCheck(this, BarRoot2);
|
|
55
|
-
return
|
|
52
|
+
return _callSuper(this, BarRoot2, arguments);
|
|
56
53
|
}
|
|
57
|
-
|
|
54
|
+
_inherits(BarRoot2, _Component);
|
|
55
|
+
return _createClass(BarRoot2, [{
|
|
58
56
|
key: "getBackgroundProps",
|
|
59
57
|
value: function getBackgroundProps(_props, index) {
|
|
60
58
|
var _this$asProps = this.asProps, x = _this$asProps.x, data = _this$asProps.data;
|
|
@@ -88,7 +86,7 @@ var BarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
88
86
|
value: function renderBar(d, i) {
|
|
89
87
|
var _ref, _d$y, _d$y2, _d$y3;
|
|
90
88
|
var SBar = this.Element;
|
|
91
|
-
var _this$asProps3 = this.asProps, styles = _this$asProps3.styles, color = _this$asProps3.color, resolveColor = _this$asProps3.resolveColor, x = _this$asProps3.x, y = _this$asProps3.y, y0 = _this$asProps3.y0, scale = _this$asProps3.scale, hide = _this$asProps3.hide, offsetProps = _this$asProps3.offset, duration = _this$asProps3.duration, uid = _this$asProps3.uid, r = _this$asProps3.r, hMin = _this$asProps3.hMin, widthProps = _this$asProps3.width, groupKey = _this$asProps3.groupKey, onClick = _this$asProps3.onClick, transparent = _this$asProps3.transparent, _this$asProps3$maxBar = _this$asProps3.maxBarSize, maxBarSize = _this$asProps3$maxBar === void 0 ?
|
|
89
|
+
var _this$asProps3 = this.asProps, styles = _this$asProps3.styles, color = _this$asProps3.color, resolveColor = _this$asProps3.resolveColor, x = _this$asProps3.x, y = _this$asProps3.y, y0 = _this$asProps3.y0, scale = _this$asProps3.scale, hide = _this$asProps3.hide, offsetProps = _this$asProps3.offset, duration = _this$asProps3.duration, uid = _this$asProps3.uid, r = _this$asProps3.r, hMin = _this$asProps3.hMin, widthProps = _this$asProps3.width, groupKey = _this$asProps3.groupKey, onClick = _this$asProps3.onClick, transparent = _this$asProps3.transparent, _this$asProps3$maxBar = _this$asProps3.maxBarSize, maxBarSize = _this$asProps3$maxBar === void 0 ? Number.POSITIVE_INFINITY : _this$asProps3$maxBar, patterns = _this$asProps3.patterns, dataHintsHandler = _this$asProps3.dataHintsHandler;
|
|
92
90
|
var offset = typeof offsetProps === "function" ? offsetProps(i) : offsetProps;
|
|
93
91
|
var _scale = _slicedToArray(scale, 2), xScale = _scale[0], yScale = _scale[1];
|
|
94
92
|
var absHeight = Math.abs(yScale(d[y]) - Math.min(yScale(yScale.domain()[0]), yScale((_d$y = d[y0]) !== null && _d$y !== void 0 ? _d$y : 0)));
|
|
@@ -116,7 +114,7 @@ var BarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
116
114
|
}
|
|
117
115
|
return /* @__PURE__ */ React.createElement(React.Fragment, {
|
|
118
116
|
key: "bar-".concat(i)
|
|
119
|
-
}, (_ref = sstyled
|
|
117
|
+
}, (_ref = sstyled(styles), /* @__PURE__ */ React.createElement(SBar, _ref.cn("SBar", {
|
|
120
118
|
"aria-hidden": true,
|
|
121
119
|
"render": "path",
|
|
122
120
|
"clipPath": "url(#".concat(uid, ")"),
|
|
@@ -157,8 +155,7 @@ var BarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
157
155
|
}));
|
|
158
156
|
}
|
|
159
157
|
}]);
|
|
160
|
-
|
|
161
|
-
}(Component);
|
|
158
|
+
})(Component);
|
|
162
159
|
_defineProperty(BarRoot, "displayName", "Bar");
|
|
163
160
|
_defineProperty(BarRoot, "style", style);
|
|
164
161
|
_defineProperty(BarRoot, "enhance", [uniqueIDEnhancement()]);
|
|
@@ -173,7 +170,7 @@ function Background(props) {
|
|
|
173
170
|
var SBackground = props.Element, styles = props.styles, scale = props.scale, value = props.value;
|
|
174
171
|
var _scale2 = _slicedToArray(scale, 2), xScale = _scale2[0], yScale = _scale2[1];
|
|
175
172
|
var yRange = yScale.range();
|
|
176
|
-
return _ref2 = sstyled
|
|
173
|
+
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(SBackground, _ref2.cn("SBackground", {
|
|
177
174
|
"aria-hidden": true,
|
|
178
175
|
"render": "rect",
|
|
179
176
|
"childrenPosition": "above",
|
package/lib/esm/Bubble.mjs
CHANGED
|
@@ -2,64 +2,66 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
-
import
|
|
5
|
+
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import { sstyled } from "@semcore/
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
8
|
+
import { sstyled, Component, assignProps } from "@semcore/core";
|
|
9
|
+
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
10
|
+
import findComponent from "@semcore/core/lib/utils/findComponent";
|
|
11
|
+
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
12
12
|
import { transition } from "d3-transition";
|
|
13
|
-
import
|
|
13
|
+
import React from "react";
|
|
14
|
+
import { SvgElement } from "./component/SvgElement.mjs";
|
|
14
15
|
import createElement from "./createElement.mjs";
|
|
15
|
-
import { getBubbleChartValueScale, measureText } from "./utils.mjs";
|
|
16
|
-
import Tooltip from "./Tooltip.mjs";
|
|
17
16
|
import { PatternFill } from "./Pattern.mjs";
|
|
17
|
+
import Tooltip from "./Tooltip.mjs";
|
|
18
|
+
import { getBubbleChartValueScale, measureText } from "./utils.mjs";
|
|
18
19
|
/*!__reshadow-styles__:"./style/bubble.shadow.css"*/
|
|
19
20
|
var style = (
|
|
20
21
|
/*__reshadow_css_start__*/
|
|
21
22
|
(sstyled.insert(
|
|
22
23
|
/*__inner_css_start__*/
|
|
23
|
-
".
|
|
24
|
+
".___SBubble_57tzb_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(104, 109, 210));stroke:var(--intergalactic-chart-grid-border, #fff);stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_57tzb);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SBubble_57tzb_gg_:hover{opacity:.8}}g._visible_false_57tzb_gg_{display:none}.___SBubble_57tzb_gg_.__clickable_57tzb_gg_{cursor:pointer}.___SBubble_57tzb_gg_.__color_57tzb_gg_{fill:var(--color_57tzb)}.___SBubble_57tzb_gg_.__pattern_57tzb_gg_.__color_57tzb_gg_{fill:var(--pattern_57tzb);stroke:var(--color_57tzb);stroke-width:1px}.___SBubble_57tzb_gg_.__transparent_57tzb_gg_{opacity:.3}.___SCenter_57tzb_gg_{text-anchor:middle;font-size:calc(var(--intergalactic-fs-100, 12px) - 1px);stroke:var(--intergalactic-chart-palette-order-1, rgb(104, 109, 210))}.___SCenter_57tzb_gg_.__color_57tzb_gg_{stroke:var(--color_57tzb)}.___SCenter_57tzb_gg_.__transparent_57tzb_gg_{opacity:.3}.___SLabel_57tzb_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(104, 109, 210))}.___SLabel_57tzb_gg_._position_right_57tzb_gg_{text-anchor:end}.___SLabel_57tzb_gg_._position_left_57tzb_gg_{text-anchor:start}.___SLabel_57tzb_gg_.__color_57tzb_gg_{fill:var(--color_57tzb)}.___SLabel_57tzb_gg_.__transparent_57tzb_gg_{opacity:.3}",
|
|
24
25
|
/*__inner_css_end__*/
|
|
25
|
-
"
|
|
26
|
+
"57tzb_gg_"
|
|
26
27
|
), /*__reshadow_css_end__*/
|
|
27
28
|
{
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"--
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
29
|
+
"_visible_false": "_visible_false_57tzb_gg_",
|
|
30
|
+
"__SBubble": "___SBubble_57tzb_gg_",
|
|
31
|
+
"_clickable": "__clickable_57tzb_gg_",
|
|
32
|
+
"_color": "__color_57tzb_gg_",
|
|
33
|
+
"--color": "--color_57tzb",
|
|
34
|
+
"_pattern": "__pattern_57tzb_gg_",
|
|
35
|
+
"--pattern": "--pattern_57tzb",
|
|
36
|
+
"_transparent": "__transparent_57tzb_gg_",
|
|
37
|
+
"__SCenter": "___SCenter_57tzb_gg_",
|
|
38
|
+
"__SLabel": "___SLabel_57tzb_gg_",
|
|
39
|
+
"_position_right": "_position_right_57tzb_gg_",
|
|
40
|
+
"_position_left": "_position_left_57tzb_gg_",
|
|
41
|
+
"--duration": "--duration_57tzb"
|
|
39
42
|
})
|
|
40
43
|
);
|
|
41
|
-
var BubbleRoot = /* @__PURE__ */ function(_Component) {
|
|
42
|
-
_inherits(BubbleRoot2, _Component);
|
|
43
|
-
var _super = _createSuper(BubbleRoot2);
|
|
44
|
+
var BubbleRoot = /* @__PURE__ */ (function(_Component) {
|
|
44
45
|
function BubbleRoot2() {
|
|
45
46
|
var _this;
|
|
46
47
|
_classCallCheck(this, BubbleRoot2);
|
|
47
48
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
48
49
|
args[_key] = arguments[_key];
|
|
49
50
|
}
|
|
50
|
-
_this =
|
|
51
|
-
_defineProperty(
|
|
51
|
+
_this = _callSuper(this, BubbleRoot2, [].concat(args));
|
|
52
|
+
_defineProperty(_this, "bindHandlerTooltip", function(visible, props, tooltipProps) {
|
|
52
53
|
return function(_ref4) {
|
|
53
54
|
var clientX = _ref4.clientX, clientY = _ref4.clientY;
|
|
54
|
-
var eventEmitter = _this.asProps.
|
|
55
|
-
eventEmitter.emit("
|
|
56
|
-
eventEmitter.emit("
|
|
57
|
-
eventEmitter.emit("
|
|
55
|
+
var _this$asProps = _this.asProps, eventEmitter = _this$asProps.eventEmitter, plotId = _this$asProps.plotId;
|
|
56
|
+
eventEmitter.emit("setTooltipPosition_".concat(plotId), clientX, clientY);
|
|
57
|
+
eventEmitter.emit("setTooltipRenderingProps_".concat(plotId), props, tooltipProps);
|
|
58
|
+
eventEmitter.emit("setTooltipVisible_".concat(plotId), visible);
|
|
58
59
|
};
|
|
59
60
|
});
|
|
60
61
|
return _this;
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
+
_inherits(BubbleRoot2, _Component);
|
|
64
|
+
return _createClass(BubbleRoot2, [{
|
|
63
65
|
key: "generateGetBoundingClientRect",
|
|
64
66
|
value: function generateGetBoundingClientRect() {
|
|
65
67
|
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
@@ -78,7 +80,7 @@ var BubbleRoot = /* @__PURE__ */ function(_Component) {
|
|
|
78
80
|
}, {
|
|
79
81
|
key: "animationCircle",
|
|
80
82
|
value: function animationCircle() {
|
|
81
|
-
var _this$
|
|
83
|
+
var _this$asProps2 = this.asProps, duration = _this$asProps2.duration, uid = _this$asProps2.uid, data = _this$asProps2.data, value = _this$asProps2.value;
|
|
82
84
|
var z = getBubbleChartValueScale(data, value);
|
|
83
85
|
var selectRect = transition().selection().selectAll("[id^=".concat(uid).concat(uid, "]")).attr("r", 0);
|
|
84
86
|
var selectRectNode = selectRect.node();
|
|
@@ -92,7 +94,7 @@ var BubbleRoot = /* @__PURE__ */ function(_Component) {
|
|
|
92
94
|
}, {
|
|
93
95
|
key: "componentDidUpdate",
|
|
94
96
|
value: function componentDidUpdate(prevProps) {
|
|
95
|
-
var _this$
|
|
97
|
+
var _this$asProps3 = this.asProps, data = _this$asProps3.data, x = _this$asProps3.x, y = _this$asProps3.y, value = _this$asProps3.value;
|
|
96
98
|
var prevX = prevProps.x, prevY = prevProps.y, prevValue = prevProps.value;
|
|
97
99
|
var prevData = prevProps.$rootProps.data;
|
|
98
100
|
if (data !== prevData || x !== prevX || y !== prevY || value !== prevValue) {
|
|
@@ -105,82 +107,59 @@ var BubbleRoot = /* @__PURE__ */ function(_Component) {
|
|
|
105
107
|
this.animationCircle();
|
|
106
108
|
}
|
|
107
109
|
}, {
|
|
108
|
-
key: "
|
|
109
|
-
value: function
|
|
110
|
-
var
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"transparent": transparent
|
|
143
|
-
}), "+"), /* @__PURE__ */ React.createElement(SBubble, _ref2.cn("SBubble", {
|
|
144
|
-
"aria-hidden": true,
|
|
145
|
-
"id": "".concat(uid).concat(uid),
|
|
146
|
-
"index": i,
|
|
147
|
-
"render": "circle",
|
|
148
|
-
"clipPath": "url(#".concat(uid, ")"),
|
|
149
|
-
"cx": xScale(d[x]) + offset[0],
|
|
150
|
-
"cy": yScale(d[y]) + offset[1],
|
|
151
|
-
"color": resolveColor(d[color]),
|
|
152
|
-
"pattern": patterns ? "url(#".concat(uid, "-").concat(i, "-pattern)") : void 0,
|
|
153
|
-
"r": z(d[value]),
|
|
154
|
-
"use:duration": "".concat(duration, "ms"),
|
|
155
|
-
"transparent": transparent
|
|
156
|
-
})), patterns && /* @__PURE__ */ React.createElement(PatternFill, _ref2.cn("PatternFill", {
|
|
157
|
-
"id": "".concat(uid, "-").concat(i, "-pattern"),
|
|
158
|
-
"patternKey": d[color],
|
|
159
|
-
"color": resolveColor(d[color]),
|
|
160
|
-
"patterns": patterns
|
|
161
|
-
})), d[label] && /* @__PURE__ */ React.createElement(SLabel, _ref2.cn("SLabel", {
|
|
162
|
-
"aria-hidden": true,
|
|
163
|
-
"x": labelDistance,
|
|
164
|
-
"y": yScale(d[y]) + offset[1],
|
|
165
|
-
"dy": ".3em",
|
|
166
|
-
"clipPath": "url(#".concat(uid, ")"),
|
|
167
|
-
"position": labelPosition,
|
|
168
|
-
"color": resolveColor(d[color]),
|
|
169
|
-
"transparent": transparent
|
|
170
|
-
}), d[label]));
|
|
110
|
+
key: "handlerOnClick",
|
|
111
|
+
value: function handlerOnClick(index) {
|
|
112
|
+
var _this2 = this;
|
|
113
|
+
return function(e) {
|
|
114
|
+
e.stopPropagation();
|
|
115
|
+
var onClick = _this2.asProps.onClick;
|
|
116
|
+
onClick === null || onClick === void 0 || onClick(index, e);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}, {
|
|
120
|
+
key: "getCircleProps",
|
|
121
|
+
value: function getCircleProps() {
|
|
122
|
+
var _this$asProps4 = this.asProps, color = _this$asProps4.color, scale = _this$asProps4.scale, x = _this$asProps4.x, y = _this$asProps4.y, offset = _this$asProps4.offset, styles = _this$asProps4.styles, uid = _this$asProps4.uid, duration = _this$asProps4.duration, value = _this$asProps4.value, label = _this$asProps4.label, markedCross = _this$asProps4.markedCross, size = _this$asProps4.size, data = _this$asProps4.data, transparent = _this$asProps4.transparent, resolveColor = _this$asProps4.resolveColor, patterns = _this$asProps4.patterns, onClick = _this$asProps4.onClick;
|
|
123
|
+
return {
|
|
124
|
+
color,
|
|
125
|
+
scale,
|
|
126
|
+
x,
|
|
127
|
+
y,
|
|
128
|
+
offset,
|
|
129
|
+
styles,
|
|
130
|
+
uid,
|
|
131
|
+
duration,
|
|
132
|
+
value,
|
|
133
|
+
label,
|
|
134
|
+
markedCross,
|
|
135
|
+
size,
|
|
136
|
+
data,
|
|
137
|
+
transparent,
|
|
138
|
+
resolveColor,
|
|
139
|
+
patterns,
|
|
140
|
+
bindHandlerTooltip: this.bindHandlerTooltip,
|
|
141
|
+
clickable: Boolean(onClick),
|
|
142
|
+
onClickCircleRoot: this.handlerOnClick.bind(this)
|
|
143
|
+
};
|
|
171
144
|
}
|
|
172
145
|
}, {
|
|
173
146
|
key: "render",
|
|
174
147
|
value: function render() {
|
|
175
|
-
var _this$
|
|
176
|
-
var
|
|
148
|
+
var _this$asProps5 = this.asProps, data = _this$asProps5.data, uid = _this$asProps5.uid, scale = _this$asProps5.scale, x = _this$asProps5.x, y = _this$asProps5.y, value = _this$asProps5.value, Children = _this$asProps5.Children;
|
|
149
|
+
var _scale = _slicedToArray(scale, 2), xScale = _scale[0], yScale = _scale[1];
|
|
177
150
|
var xSize = Math.abs(xScale.range()[0] - xScale.range()[1]);
|
|
178
151
|
var ySize = Math.abs(yScale.range()[0] - yScale.range()[1]);
|
|
179
152
|
var xMargin = Math.min(xScale.range()[0], xScale.range()[1]);
|
|
180
153
|
var yMargin = Math.min(yScale.range()[0], yScale.range()[1]);
|
|
181
154
|
this.asProps.dataHintsHandler.specifyDataRowFields(x, y, value);
|
|
182
155
|
this.asProps.dataHintsHandler.establishDataType("points-cloud");
|
|
183
|
-
|
|
156
|
+
var isAdvancedMode = Boolean(findComponent(Children, [Bubble.Circle.displayName]));
|
|
157
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, isAdvancedMode ? /* @__PURE__ */ React.createElement(Children, null) : data.map(function(_, idx) {
|
|
158
|
+
return /* @__PURE__ */ React.createElement(Bubble.Circle, {
|
|
159
|
+
key: idx,
|
|
160
|
+
index: idx
|
|
161
|
+
});
|
|
162
|
+
}), /* @__PURE__ */ React.createElement("clipPath", {
|
|
184
163
|
"aria-hidden": true,
|
|
185
164
|
id: uid
|
|
186
165
|
}, /* @__PURE__ */ React.createElement("rect", {
|
|
@@ -191,8 +170,7 @@ var BubbleRoot = /* @__PURE__ */ function(_Component) {
|
|
|
191
170
|
}), " "));
|
|
192
171
|
}
|
|
193
172
|
}]);
|
|
194
|
-
|
|
195
|
-
}(Component);
|
|
173
|
+
})(Component);
|
|
196
174
|
_defineProperty(BubbleRoot, "displayName", "Bubble");
|
|
197
175
|
_defineProperty(BubbleRoot, "style", style);
|
|
198
176
|
_defineProperty(BubbleRoot, "enhance", [uniqueIDEnhancement()]);
|
|
@@ -201,15 +179,85 @@ _defineProperty(BubbleRoot, "defaultProps", {
|
|
|
201
179
|
duration: 500,
|
|
202
180
|
markedCross: true
|
|
203
181
|
});
|
|
204
|
-
|
|
205
|
-
var _ref = arguments[0],
|
|
182
|
+
function BubbleTooltip(props) {
|
|
183
|
+
var _ref = arguments[0], _ref2;
|
|
206
184
|
var SBubbleTooltip = Tooltip;
|
|
207
|
-
return
|
|
185
|
+
return _ref2 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SBubbleTooltip, _ref2.cn("SBubbleTooltip", _objectSpread({}, assignProps({
|
|
208
186
|
"excludeAnchorProps": true
|
|
209
187
|
}, _ref))));
|
|
210
|
-
}
|
|
188
|
+
}
|
|
189
|
+
function BubbleCircle(props) {
|
|
190
|
+
var _ref3, _circleData$color;
|
|
191
|
+
var color = props.color, scale = props.scale, x = props.x, y = props.y, offset = props.offset, styles = props.styles, uid = props.uid, duration = props.duration, value = props.value, label = props.label, markedCross = props.markedCross, size = props.size, data = props.data, transparent = props.transparent, resolveColor = props.resolveColor, patterns = props.patterns, index = props.index, bindHandlerTooltip = props.bindHandlerTooltip, Element = props.Element, _props$visible = props.visible, visible = _props$visible === void 0 ? true : _props$visible, clickable = props.clickable, onClick = props.onClick, onClickCircleRoot = props.onClickCircleRoot;
|
|
192
|
+
var circleData = data[index];
|
|
193
|
+
if (!circleData) return null;
|
|
194
|
+
var _scale2 = _slicedToArray(scale, 2), xScale = _scale2[0], yScale = _scale2[1];
|
|
195
|
+
var SBubble = Element;
|
|
196
|
+
var SCenter = "text";
|
|
197
|
+
var SLabel = "text";
|
|
198
|
+
var z = getBubbleChartValueScale(data, value);
|
|
199
|
+
var margin = Math.min(xScale.range()[0], xScale.range()[1]);
|
|
200
|
+
var labelPosition = size[0] - 2 * margin - (xScale(circleData[x]) + offset[0] + z(circleData[value])) < measureText(circleData[label]) ? "right" : "left";
|
|
201
|
+
var labelDistance = {
|
|
202
|
+
right: xScale(circleData[x]) + offset[0] - z(circleData[value]),
|
|
203
|
+
left: xScale(circleData[x]) + offset[0] + z(circleData[value])
|
|
204
|
+
}[labelPosition];
|
|
205
|
+
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SvgElement, _ref3.cn("SvgElement", {
|
|
206
|
+
"tag": "g",
|
|
207
|
+
"key": "circle(#".concat(index, ")"),
|
|
208
|
+
"onClickCapture": callAllEventHandlers(onClickCircleRoot(index), onClick),
|
|
209
|
+
"onMouseMove": bindHandlerTooltip(true, props, {
|
|
210
|
+
xIndex: index,
|
|
211
|
+
index,
|
|
212
|
+
patterns
|
|
213
|
+
}),
|
|
214
|
+
"onMouseLeave": bindHandlerTooltip(false, props, {
|
|
215
|
+
xIndex: index,
|
|
216
|
+
index,
|
|
217
|
+
patterns
|
|
218
|
+
}),
|
|
219
|
+
"visible": "".concat(visible)
|
|
220
|
+
}), markedCross && /* @__PURE__ */ React.createElement(SCenter, _ref3.cn("SCenter", {
|
|
221
|
+
"aria-hidden": true,
|
|
222
|
+
"x": xScale(circleData[x]) + offset[0],
|
|
223
|
+
"y": yScale(circleData[y]) + offset[1],
|
|
224
|
+
"dy": ".3em",
|
|
225
|
+
"clipPath": "url(#".concat(uid, ")"),
|
|
226
|
+
"color": resolveColor((_circleData$color = circleData[color]) !== null && _circleData$color !== void 0 ? _circleData$color : color),
|
|
227
|
+
"transparent": transparent
|
|
228
|
+
}), "+"), /* @__PURE__ */ React.createElement(SBubble, _ref3.cn("SBubble", {
|
|
229
|
+
"aria-hidden": true,
|
|
230
|
+
"id": "".concat(uid).concat(uid),
|
|
231
|
+
"index": index,
|
|
232
|
+
"render": "circle",
|
|
233
|
+
"clipPath": "url(#".concat(uid, ")"),
|
|
234
|
+
"cx": xScale(circleData[x]) + offset[0],
|
|
235
|
+
"cy": yScale(circleData[y]) + offset[1],
|
|
236
|
+
"color": resolveColor(circleData[color]),
|
|
237
|
+
"pattern": patterns ? "url(#".concat(uid, "-").concat(index, "-pattern)") : void 0,
|
|
238
|
+
"r": z(circleData[value]),
|
|
239
|
+
"use:duration": "".concat(duration, "ms"),
|
|
240
|
+
"transparent": transparent,
|
|
241
|
+
"clickable": clickable || Boolean(onClick)
|
|
242
|
+
})), patterns && /* @__PURE__ */ React.createElement(PatternFill, _ref3.cn("PatternFill", {
|
|
243
|
+
"id": "".concat(uid, "-").concat(index, "-pattern"),
|
|
244
|
+
"patternKey": circleData[color],
|
|
245
|
+
"color": resolveColor(circleData[color]),
|
|
246
|
+
"patterns": patterns
|
|
247
|
+
})), circleData[label] && /* @__PURE__ */ React.createElement(SLabel, _ref3.cn("SLabel", {
|
|
248
|
+
"aria-hidden": true,
|
|
249
|
+
"x": labelDistance,
|
|
250
|
+
"y": yScale(circleData[y]) + offset[1],
|
|
251
|
+
"dy": ".3em",
|
|
252
|
+
"clipPath": "url(#".concat(uid, ")"),
|
|
253
|
+
"position": labelPosition,
|
|
254
|
+
"color": resolveColor(circleData[color]),
|
|
255
|
+
"transparent": transparent
|
|
256
|
+
}), circleData[label]));
|
|
257
|
+
}
|
|
211
258
|
var Bubble = createElement(BubbleRoot, {
|
|
212
|
-
Tooltip: [BubbleTooltip, Tooltip._______childrenComponents]
|
|
259
|
+
Tooltip: [BubbleTooltip, Tooltip._______childrenComponents],
|
|
260
|
+
Circle: BubbleCircle
|
|
213
261
|
});
|
|
214
262
|
export {
|
|
215
263
|
Bubble as default
|