@semcore/d3-chart 3.61.0-prerelease.5 → 3.61.0-prerelease.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/AnimatedClipPath.js +15 -11
- package/lib/cjs/AnimatedClipPath.js.map +1 -1
- package/lib/cjs/Area.js +48 -71
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +108 -170
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +34 -29
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +137 -211
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +82 -92
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +139 -154
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +38 -55
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +18 -15
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +34 -29
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +45 -52
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +41 -63
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +12 -16
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +36 -29
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +261 -281
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +154 -169
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +51 -45
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +25 -20
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +61 -71
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +31 -20
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +16 -12
- 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 +52 -77
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/DataAccessibilityTable.js +3 -2
- package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +86 -43
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +19 -44
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/bezier.js +2 -1
- package/lib/cjs/a11y/bezier.js.map +1 -1
- package/lib/cjs/a11y/focus.js +6 -5
- package/lib/cjs/a11y/focus.js.map +1 -1
- package/lib/cjs/a11y/hints.js +9 -6
- package/lib/cjs/a11y/hints.js.map +1 -1
- package/lib/cjs/a11y/insights.js +64 -63
- package/lib/cjs/a11y/insights.js.map +1 -1
- package/lib/cjs/a11y/intl.js +2 -1
- 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 +17 -15
- package/lib/cjs/a11y/serialize.js.map +1 -1
- package/lib/cjs/a11y/summarize.js +2 -1
- package/lib/cjs/a11y/summarize.js.map +1 -1
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +5 -4
- 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 +5 -4
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/color.js +3 -2
- package/lib/cjs/color.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.js +83 -157
- 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 +51 -24
- 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 +69 -85
- 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 +27 -31
- 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 +147 -340
- 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 +15 -11
- 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 +22 -16
- 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 +44 -16
- 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 +48 -22
- 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 +19 -15
- 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 +21 -16
- 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 +19 -16
- 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 +8 -7
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +23 -45
- 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 +24 -19
- 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 +83 -108
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +2 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +23 -18
- 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 +2 -1
- package/lib/cjs/component/ChartLegend/index.js.map +1 -1
- package/lib/cjs/component/Cigarette/Cigarette.js +20 -16
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js +24 -19
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/cjs/createElement.d.js.map +1 -1
- package/lib/cjs/createElement.js +12 -10
- package/lib/cjs/createElement.js.map +1 -1
- package/lib/cjs/index.js +2 -9
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/axis.shadow.css +1 -39
- package/lib/cjs/style/bubble.shadow.css +0 -8
- package/lib/cjs/style/hover.shadow.css +2 -2
- package/lib/cjs/style/plot.shadow.css +6 -8
- package/lib/cjs/style/plotA11yModule.shadow.css +11 -10
- package/lib/cjs/style/plotA11yView.shadow.css +26 -13
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/translations/de.json +0 -1
- package/lib/cjs/translations/es.json +0 -1
- package/lib/cjs/translations/fr.json +0 -1
- package/lib/cjs/translations/it.json +0 -1
- package/lib/cjs/translations/ja.json +0 -1
- package/lib/cjs/translations/ko.json +0 -1
- package/lib/cjs/translations/nl.json +0 -1
- package/lib/cjs/translations/pl.json +0 -1
- package/lib/cjs/translations/pt.json +0 -1
- package/lib/cjs/translations/sv.json +0 -1
- package/lib/cjs/translations/tr.json +1 -2
- package/lib/cjs/translations/vi.json +0 -1
- package/lib/cjs/translations/zh.json +0 -1
- 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 +2 -14
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +55 -36
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/AnimatedClipPath.js +11 -9
- package/lib/es6/AnimatedClipPath.js.map +1 -1
- package/lib/es6/Area.js +45 -70
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +104 -168
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +29 -27
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +135 -211
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +77 -89
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +137 -154
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +36 -55
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +15 -13
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +29 -27
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +41 -51
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +37 -61
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +3 -7
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +32 -28
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +257 -279
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +151 -168
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +45 -43
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +19 -16
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +59 -71
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +27 -17
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +13 -10
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +65 -68
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +48 -75
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +86 -43
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +16 -43
- 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 +2 -3
- package/lib/es6/a11y/locale.js.map +1 -1
- package/lib/es6/a11y/serialize.js +13 -14
- 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 +80 -159
- 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 +48 -23
- package/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.js +67 -84
- 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 +24 -30
- 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 +144 -341
- 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 +12 -9
- 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 +18 -14
- 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 +41 -15
- 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 +45 -20
- 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 +16 -13
- 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 +18 -15
- 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 +16 -14
- 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 +20 -43
- 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 +19 -17
- 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 +74 -102
- 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 +17 -15
- 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 +17 -14
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.js +21 -17
- package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- 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 +0 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/axis.shadow.css +1 -39
- package/lib/es6/style/bubble.shadow.css +0 -8
- package/lib/es6/style/hover.shadow.css +2 -2
- package/lib/es6/style/plot.shadow.css +6 -8
- package/lib/es6/style/plotA11yModule.shadow.css +11 -10
- package/lib/es6/style/plotA11yView.shadow.css +26 -13
- 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 +0 -1
- package/lib/es6/translations/es.json +0 -1
- package/lib/es6/translations/fr.json +0 -1
- package/lib/es6/translations/it.json +0 -1
- package/lib/es6/translations/ja.json +0 -1
- package/lib/es6/translations/ko.json +0 -1
- package/lib/es6/translations/nl.json +0 -1
- package/lib/es6/translations/pl.json +0 -1
- package/lib/es6/translations/pt.json +0 -1
- package/lib/es6/translations/sv.json +0 -1
- package/lib/es6/translations/tr.json +1 -2
- package/lib/es6/translations/vi.json +0 -1
- package/lib/es6/translations/zh.json +0 -1
- 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 +0 -2
- 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 +16 -9
- package/lib/esm/Area.mjs +36 -51
- package/lib/esm/Axis.mjs +86 -143
- package/lib/esm/Bar.mjs +34 -31
- package/lib/esm/Bubble.mjs +106 -154
- package/lib/esm/CompactHorizontalBar.mjs +80 -88
- package/lib/esm/Donut.mjs +75 -87
- package/lib/esm/Dots.mjs +34 -50
- package/lib/esm/GroupBar.mjs +14 -12
- package/lib/esm/HorizontalBar.mjs +34 -31
- package/lib/esm/Hover.mjs +50 -53
- package/lib/esm/Line.mjs +31 -45
- package/lib/esm/Pattern.mjs +2 -4
- package/lib/esm/Plot.mjs +35 -30
- package/lib/esm/Radar.mjs +175 -188
- package/lib/esm/RadialTree.mjs +111 -105
- package/lib/esm/Reference.mjs +40 -37
- package/lib/esm/ResponsiveContainer.mjs +21 -18
- package/lib/esm/ScatterPlot.mjs +40 -49
- package/lib/esm/StackBar.mjs +28 -18
- package/lib/esm/StackedArea.mjs +16 -13
- package/lib/esm/Tooltip.mjs +59 -56
- package/lib/esm/Venn.mjs +47 -67
- package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
- package/lib/esm/a11y/PlotA11yModule.mjs +74 -35
- package/lib/esm/a11y/PlotA11yView.mjs +17 -41
- 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 +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/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +65 -141
- package/lib/esm/component/Chart/AreaChart.mjs +51 -27
- package/lib/esm/component/Chart/BarChart.mjs +51 -64
- package/lib/esm/component/Chart/BubbleChart.mjs +25 -30
- package/lib/esm/component/Chart/CigaretteChart.mjs +119 -298
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +15 -13
- package/lib/esm/component/Chart/DonutChart.mjs +19 -16
- package/lib/esm/component/Chart/HistogramChart.mjs +46 -22
- package/lib/esm/component/Chart/LineChart.mjs +46 -23
- package/lib/esm/component/Chart/RadarChart.mjs +18 -16
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +21 -18
- package/lib/esm/component/Chart/VennChart.mjs +19 -16
- package/lib/esm/component/Chart/index.mjs +6 -6
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +22 -45
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +22 -19
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +75 -88
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +25 -22
- package/lib/esm/component/ChartLegend/index.mjs +0 -2
- package/lib/esm/component/Cigarette/Cigarette.mjs +19 -16
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +22 -18
- package/lib/esm/createElement.mjs +10 -8
- package/lib/esm/index.mjs +0 -3
- package/lib/esm/style/axis.shadow.css +1 -39
- package/lib/esm/style/bubble.shadow.css +0 -8
- package/lib/esm/style/hover.shadow.css +2 -2
- package/lib/esm/style/plot.shadow.css +6 -8
- package/lib/esm/style/plotA11yModule.shadow.css +11 -10
- package/lib/esm/style/plotA11yView.shadow.css +26 -13
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/translations/es.json.mjs +0 -1
- package/lib/esm/translations/fr.json.mjs +0 -1
- package/lib/esm/translations/it.json.mjs +0 -1
- package/lib/esm/translations/ja.json.mjs +0 -1
- package/lib/esm/translations/ko.json.mjs +0 -1
- package/lib/esm/translations/nl.json.mjs +0 -1
- package/lib/esm/translations/pl.json.mjs +0 -1
- package/lib/esm/translations/pt.json.mjs +0 -1
- package/lib/esm/translations/sv.json.mjs +0 -1
- package/lib/esm/translations/tr.json.mjs +1 -2
- package/lib/esm/translations/vi.json.mjs +0 -1
- package/lib/esm/translations/zh.json.mjs +0 -1
- package/lib/esm/utils.mjs +11 -11
- package/lib/types/Area.d.ts +6 -9
- package/lib/types/Axis.d.ts +3 -10
- package/lib/types/Bar.d.ts +6 -7
- package/lib/types/Bubble.d.ts +5 -21
- package/lib/types/ClipPath.d.ts +3 -4
- package/lib/types/CompactHorizontalBar.d.ts +8 -7
- package/lib/types/Donut.d.ts +5 -8
- package/lib/types/GroupBar.d.ts +6 -6
- package/lib/types/HorizontalBar.d.ts +6 -7
- package/lib/types/Hover.d.ts +8 -8
- package/lib/types/Line.d.ts +6 -9
- package/lib/types/Pattern.d.ts +51 -51
- package/lib/types/Plot.d.ts +9 -11
- package/lib/types/Radar.d.ts +7 -10
- package/lib/types/RadialTree.d.ts +54 -10
- package/lib/types/Reference.d.ts +5 -6
- package/lib/types/ResponsiveContainer.d.ts +4 -5
- package/lib/types/ScatterPlot.d.ts +5 -8
- package/lib/types/StackBar.d.ts +6 -7
- package/lib/types/StackedArea.d.ts +5 -6
- package/lib/types/Tooltip.d.ts +12 -12
- package/lib/types/Venn.d.ts +6 -7
- package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
- package/lib/types/a11y/PlotA11yModule.d.ts +11 -4
- package/lib/types/a11y/PlotA11yView.d.ts +2 -13
- 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 +13 -20
- package/lib/types/component/Chart/AbstractChart.type.d.ts +25 -39
- package/lib/types/component/Chart/AreaChart.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +7 -17
- package/lib/types/component/Chart/BarChart.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +9 -14
- package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +5 -10
- package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +8 -18
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +6 -10
- package/lib/types/component/Chart/DonutChart.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +7 -16
- package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +4 -7
- package/lib/types/component/Chart/LineChart.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +7 -16
- package/lib/types/component/Chart/RadarChart.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +5 -7
- package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +6 -12
- package/lib/types/component/Chart/VennChart.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +6 -12
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +6 -8
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +5 -4
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +5 -4
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +10 -17
- 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 +4 -3
- package/lib/types/index.d.ts +1 -3
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +0 -12
- package/lib/types/utils.d.ts +17 -17
- package/package.json +10 -10
- package/lib/cjs/component/SvgElement.js +0 -21
- package/lib/cjs/component/SvgElement.js.map +0 -1
- package/lib/cjs/style/abstract-chart.shadow.css +0 -12
- package/lib/es6/component/SvgElement.js +0 -14
- package/lib/es6/component/SvgElement.js.map +0 -1
- package/lib/es6/style/abstract-chart.shadow.css +0 -12
- package/lib/esm/component/SvgElement.mjs +0 -14
- package/lib/esm/style/abstract-chart.shadow.css +0 -12
- package/lib/types/component/SvgElement.d.ts +0 -10
|
@@ -1,72 +1,71 @@
|
|
|
1
|
-
import "@babel/runtime/helpers/esm/readOnlyError";
|
|
2
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
6
|
-
import
|
|
5
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
7
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import { sstyled
|
|
10
|
-
import {
|
|
11
|
-
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
12
|
-
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
13
|
-
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
14
|
-
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
9
|
+
import { sstyled } from "@semcore/utils/lib/core/index";
|
|
10
|
+
import { sstyled as sstyled$1, Component, assignProps } from "@semcore/core";
|
|
15
11
|
import React from "react";
|
|
16
|
-
import
|
|
12
|
+
import uniqueIDEnhancement from "@semcore/utils/lib/uniqueID";
|
|
17
13
|
import createElement from "./createElement.mjs";
|
|
14
|
+
import AnimatedClipPath from "./AnimatedClipPath.mjs";
|
|
15
|
+
import { scaleToBand, roundedPath, eventToPoint } from "./utils.mjs";
|
|
18
16
|
import { PatternFill } from "./Pattern.mjs";
|
|
17
|
+
import trottle from "@semcore/utils/lib/rafTrottle";
|
|
19
18
|
import Tooltip from "./Tooltip.mjs";
|
|
20
|
-
import {
|
|
19
|
+
import { callAllEventHandlers } from "@semcore/utils/lib/assignProps";
|
|
20
|
+
import canUseDOM from "@semcore/utils/lib/canUseDOM";
|
|
21
|
+
import { Box } from "@semcore/flex-box";
|
|
21
22
|
/*!__reshadow-styles__:"./style/bar.shadow.css"*/
|
|
22
23
|
var style = (
|
|
23
24
|
/*__reshadow_css_start__*/
|
|
24
25
|
(sstyled.insert(
|
|
25
26
|
/*__inner_css_start__*/
|
|
26
|
-
".
|
|
27
|
+
".___SBar_10gba_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));transition-property:height,width,y;transition-duration:var(--duration_10gba);transition-timing-function:ease-in-out}.___SBar_10gba_gg_.__color_10gba_gg_{fill:var(--color_10gba)}.___SBar_10gba_gg_.__pattern_10gba_gg_.__color_10gba_gg_{fill:var(--pattern_10gba);stroke:var(--color_10gba);stroke-width:1px}.___SBar_10gba_gg_.__hide_10gba_gg_{display:none}.___SBar_10gba_gg_.__transparent_10gba_gg_{opacity:.3}.___SBackground_10gba_gg_.__onClick_10gba_gg_,.___SBar_10gba_gg_.__onClick_10gba_gg_{cursor:pointer}.___SBackground_10gba_gg_{fill:var(--intergalactic-chart-grid-bar-chart-base-bg, rgb(241, 242, 242))}.___SBarAnnotation_10gba_gg_{display:flex;justify-content:space-between}.___SBarLabel_10gba_gg_,.___SBarPercent_10gba_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SBarLabel_10gba_gg_{color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899));margin-right:auto}.___SBarPercent_10gba_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_10gba_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SBarPercent_10gba_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SBarValue_10gba_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_10gba_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(0, 22, 16, 0.028))}",
|
|
27
28
|
/*__inner_css_end__*/
|
|
28
|
-
"
|
|
29
|
+
"10gba_gg_"
|
|
29
30
|
), /*__reshadow_css_end__*/
|
|
30
31
|
{
|
|
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": "
|
|
32
|
+
"__SBar": "___SBar_10gba_gg_",
|
|
33
|
+
"--duration": "--duration_10gba",
|
|
34
|
+
"_color": "__color_10gba_gg_",
|
|
35
|
+
"--color": "--color_10gba",
|
|
36
|
+
"_pattern": "__pattern_10gba_gg_",
|
|
37
|
+
"--pattern": "--pattern_10gba",
|
|
38
|
+
"_hide": "__hide_10gba_gg_",
|
|
39
|
+
"_transparent": "__transparent_10gba_gg_",
|
|
40
|
+
"_onClick": "__onClick_10gba_gg_",
|
|
41
|
+
"__SBackground": "___SBackground_10gba_gg_",
|
|
42
|
+
"__SBarAnnotation": "___SBarAnnotation_10gba_gg_",
|
|
43
|
+
"__SBarLabel": "___SBarLabel_10gba_gg_",
|
|
44
|
+
"__SBarPercent": "___SBarPercent_10gba_gg_",
|
|
45
|
+
"__SBarValue": "___SBarValue_10gba_gg_",
|
|
46
|
+
"__SCompactHorizontalBarHoverRect": "___SCompactHorizontalBarHoverRect_10gba_gg_"
|
|
46
47
|
})
|
|
47
48
|
);
|
|
48
49
|
var MIN_WIDTH = 4;
|
|
49
50
|
var barHeight = 20;
|
|
50
51
|
var hoverOffset = 6;
|
|
51
|
-
var CompactHorizontalBarRoot = /* @__PURE__ */
|
|
52
|
+
var CompactHorizontalBarRoot = /* @__PURE__ */ function(_Component) {
|
|
53
|
+
_inherits(CompactHorizontalBarRoot2, _Component);
|
|
54
|
+
var _super = _createSuper(CompactHorizontalBarRoot2);
|
|
52
55
|
function CompactHorizontalBarRoot2() {
|
|
53
56
|
var _this;
|
|
54
57
|
_classCallCheck(this, CompactHorizontalBarRoot2);
|
|
55
58
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
56
59
|
args[_key] = arguments[_key];
|
|
57
60
|
}
|
|
58
|
-
_this =
|
|
59
|
-
_defineProperty(_this, "
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
_defineProperty(_this, "
|
|
63
|
-
_defineProperty(_this, "percentFormatterLocale", null);
|
|
64
|
-
_defineProperty(_this, "valueFormatter", null);
|
|
65
|
-
_defineProperty(_this, "valueFormatterLocale", null);
|
|
61
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
62
|
+
_defineProperty(_assertThisInitialized(_this), "percentFormatter", null);
|
|
63
|
+
_defineProperty(_assertThisInitialized(_this), "percentFormatterLocale", null);
|
|
64
|
+
_defineProperty(_assertThisInitialized(_this), "valueFormatter", null);
|
|
65
|
+
_defineProperty(_assertThisInitialized(_this), "valueFormatterLocale", null);
|
|
66
66
|
return _this;
|
|
67
67
|
}
|
|
68
|
-
|
|
69
|
-
return _createClass(CompactHorizontalBarRoot2, [{
|
|
68
|
+
_createClass(CompactHorizontalBarRoot2, [{
|
|
70
69
|
key: "getBarProps",
|
|
71
70
|
value: function getBarProps(_props, index) {
|
|
72
71
|
return {
|
|
@@ -188,12 +187,7 @@ var CompactHorizontalBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
188
187
|
getBarData: function getBarData(index2) {
|
|
189
188
|
return _this2.computeBarData(data[index2], index2);
|
|
190
189
|
},
|
|
191
|
-
render: index === 0
|
|
192
|
-
updateIndexToHover: function updateIndexToHover(index2) {
|
|
193
|
-
return _this2.setState({
|
|
194
|
-
indexToHover: index2
|
|
195
|
-
});
|
|
196
|
-
}
|
|
190
|
+
render: index === 0
|
|
197
191
|
};
|
|
198
192
|
}
|
|
199
193
|
}, {
|
|
@@ -201,13 +195,13 @@ var CompactHorizontalBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
201
195
|
value: function getTooltipProps(_props, index) {
|
|
202
196
|
return {
|
|
203
197
|
render: index === 0,
|
|
204
|
-
index
|
|
198
|
+
index
|
|
205
199
|
};
|
|
206
200
|
}
|
|
207
201
|
}, {
|
|
208
202
|
key: "computeBarData",
|
|
209
203
|
value: function computeBarData(d) {
|
|
210
|
-
var _this$asProps7 = this.asProps, x = _this$asProps7.x, y = _this$asProps7.y, scale = _this$asProps7.scale, offsetProps = _this$asProps7.offset, wMin = _this$asProps7.wMin, heightProps = _this$asProps7.height, _this$asProps7$maxBar = _this$asProps7.maxBarSize, maxBarSize = _this$asProps7$maxBar === void 0 ?
|
|
204
|
+
var _this$asProps7 = this.asProps, x = _this$asProps7.x, y = _this$asProps7.y, scale = _this$asProps7.scale, offsetProps = _this$asProps7.offset, wMin = _this$asProps7.wMin, heightProps = _this$asProps7.height, _this$asProps7$maxBar = _this$asProps7.maxBarSize, maxBarSize = _this$asProps7$maxBar === void 0 ? Infinity : _this$asProps7$maxBar, size = _this$asProps7.size;
|
|
211
205
|
var offset = typeof offsetProps === "function" ? offsetProps(i) : offsetProps;
|
|
212
206
|
var _scale = _slicedToArray(scale, 2), xScale = _scale[0], yScale = _scale[1];
|
|
213
207
|
var absWidth = xScale(d[x]);
|
|
@@ -233,7 +227,7 @@ var CompactHorizontalBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
233
227
|
this.asProps.dataHintsHandler.describeValueEntity("".concat(i2, ".").concat(x), groupKey !== null && groupKey !== void 0 ? groupKey : d[y]);
|
|
234
228
|
return /* @__PURE__ */ React.createElement(React.Fragment, {
|
|
235
229
|
key: "horizontal-bar-".concat(i2)
|
|
236
|
-
}, (_ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(SCompactHorizontalBarGroup, _ref5.cn("SCompactHorizontalBarGroup", {
|
|
230
|
+
}, (_ref5 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SCompactHorizontalBarGroup, _ref5.cn("SCompactHorizontalBarGroup", {
|
|
237
231
|
"render": "g"
|
|
238
232
|
}))));
|
|
239
233
|
}
|
|
@@ -258,7 +252,8 @@ var CompactHorizontalBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
258
252
|
}));
|
|
259
253
|
}
|
|
260
254
|
}]);
|
|
261
|
-
|
|
255
|
+
return CompactHorizontalBarRoot2;
|
|
256
|
+
}(Component);
|
|
262
257
|
_defineProperty(CompactHorizontalBarRoot, "displayName", "CompactHorizontalBar");
|
|
263
258
|
_defineProperty(CompactHorizontalBarRoot, "enhance", [uniqueIDEnhancement()]);
|
|
264
259
|
_defineProperty(CompactHorizontalBarRoot, "style", style);
|
|
@@ -273,12 +268,11 @@ function Annotation(props) {
|
|
|
273
268
|
var _ref6;
|
|
274
269
|
var Children = props.Children, y = props.y, height = props.height, width = props.width, styles = props.styles;
|
|
275
270
|
var SBarAnnotation = "div";
|
|
276
|
-
return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement("foreignObject", _ref6.cn("foreignObject", {
|
|
271
|
+
return _ref6 = sstyled$1(styles), /* @__PURE__ */ React.createElement("foreignObject", _ref6.cn("foreignObject", {
|
|
277
272
|
"x": "0",
|
|
278
273
|
"y": y - barHeight,
|
|
279
274
|
"height": height,
|
|
280
|
-
"width": width
|
|
281
|
-
"overflow": "visible"
|
|
275
|
+
"width": width
|
|
282
276
|
}), /* @__PURE__ */ React.createElement(SBarAnnotation, _ref6.cn("SBarAnnotation", {}), /* @__PURE__ */ React.createElement(Children, _ref6.cn("Children", {}))));
|
|
283
277
|
}
|
|
284
278
|
var excludeProps = ["data", "scale", "value", "offset"];
|
|
@@ -286,7 +280,7 @@ function Label(props) {
|
|
|
286
280
|
var _ref = arguments[0], _ref7;
|
|
287
281
|
var SBarLabel = Box;
|
|
288
282
|
var styles = props.styles, Children = props.Children;
|
|
289
|
-
return _ref7 = sstyled(styles), /* @__PURE__ */ React.createElement(SBarLabel, _ref7.cn("SBarLabel", _objectSpread({}, assignProps({
|
|
283
|
+
return _ref7 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SBarLabel, _ref7.cn("SBarLabel", _objectSpread({}, assignProps({
|
|
290
284
|
"__excludeProps": excludeProps
|
|
291
285
|
}, _ref))), /* @__PURE__ */ React.createElement(Children, _ref7.cn("Children", {})));
|
|
292
286
|
}
|
|
@@ -294,7 +288,7 @@ function Percent(props) {
|
|
|
294
288
|
var _ref2 = arguments[0], _ref8;
|
|
295
289
|
var SBarPercent = Box;
|
|
296
290
|
var styles = props.styles, Children = props.Children;
|
|
297
|
-
return _ref8 = sstyled(styles), /* @__PURE__ */ React.createElement(SBarPercent, _ref8.cn("SBarPercent", _objectSpread({}, assignProps({
|
|
291
|
+
return _ref8 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SBarPercent, _ref8.cn("SBarPercent", _objectSpread({}, assignProps({
|
|
298
292
|
"__excludeProps": excludeProps
|
|
299
293
|
}, _ref2))), /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {})));
|
|
300
294
|
}
|
|
@@ -302,7 +296,7 @@ function Value(props) {
|
|
|
302
296
|
var _ref3 = arguments[0], _ref9;
|
|
303
297
|
var SBarValue = Box;
|
|
304
298
|
var styles = props.styles, Children = props.Children;
|
|
305
|
-
return _ref9 = sstyled(styles), /* @__PURE__ */ React.createElement(SBarValue, _ref9.cn("SBarValue", _objectSpread({}, assignProps({
|
|
299
|
+
return _ref9 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SBarValue, _ref9.cn("SBarValue", _objectSpread({}, assignProps({
|
|
306
300
|
"__excludeProps": excludeProps
|
|
307
301
|
}, _ref3))), /* @__PURE__ */ React.createElement(Children, _ref9.cn("Children", {})));
|
|
308
302
|
}
|
|
@@ -310,7 +304,7 @@ var BarContext = /* @__PURE__ */ React.createContext({});
|
|
|
310
304
|
function Bar(props) {
|
|
311
305
|
var Children = props.Children, index = props.index, onClick = props.onClick, transparent = props.transparent, hide = props.hide;
|
|
312
306
|
var onClickHandler = React.useCallback(function(event) {
|
|
313
|
-
onClick === null || onClick === void 0
|
|
307
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(index, event);
|
|
314
308
|
}, [onClick, index]);
|
|
315
309
|
var contextValue = React.useMemo(function() {
|
|
316
310
|
return {
|
|
@@ -324,7 +318,7 @@ function Bar(props) {
|
|
|
324
318
|
}, /* @__PURE__ */ React.createElement(Children, null));
|
|
325
319
|
}
|
|
326
320
|
function BarFill(props) {
|
|
327
|
-
var
|
|
321
|
+
var _ref10;
|
|
328
322
|
var SBar = props.Element, styles = props.styles, color = props.color, x = props.x, y = props.y, width = props.width, height = props.height, uid = props.uid, duration = props.duration, resolveColor = props.resolveColor, patterns = props.patterns, i2 = props.i, scale = props.scale;
|
|
329
323
|
var _scale2 = _slicedToArray(scale, 1), xScale = _scale2[0];
|
|
330
324
|
var xRange = xScale.range();
|
|
@@ -337,7 +331,7 @@ function BarFill(props) {
|
|
|
337
331
|
return roundedPath(x, y, width, height, radius, false, true, false, true);
|
|
338
332
|
}, [x, y, height, width, radius]);
|
|
339
333
|
var barProps = React.useContext(BarContext);
|
|
340
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, (
|
|
334
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, (_ref10 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SBar, _ref10.cn("SBar", {
|
|
341
335
|
"aria-hidden": true,
|
|
342
336
|
"render": "path",
|
|
343
337
|
"d": pathD,
|
|
@@ -355,7 +349,7 @@ function BarFill(props) {
|
|
|
355
349
|
"onClick": callAllEventHandlers(props.onClick, barProps.onClick),
|
|
356
350
|
"transparent": barProps.transparent || props.transparent,
|
|
357
351
|
"hide": barProps.hide || props.hide
|
|
358
|
-
}))), patterns && /* @__PURE__ */ React.createElement(PatternFill,
|
|
352
|
+
}))), patterns && /* @__PURE__ */ React.createElement(PatternFill, _ref10.cn("PatternFill", {
|
|
359
353
|
"id": "".concat(uid, "-").concat(i2, "-pattern"),
|
|
360
354
|
"patternKey": color,
|
|
361
355
|
"color": resolveColor(color),
|
|
@@ -363,7 +357,7 @@ function BarFill(props) {
|
|
|
363
357
|
})));
|
|
364
358
|
}
|
|
365
359
|
function BarBackground(props) {
|
|
366
|
-
var
|
|
360
|
+
var _ref11;
|
|
367
361
|
var SBackground = props.Element, styles = props.styles, scale = props.scale, y = props.y, x = props.x, height = props.height;
|
|
368
362
|
var _scale3 = _slicedToArray(scale, 1), xScale = _scale3[0];
|
|
369
363
|
var xRange = xScale.range();
|
|
@@ -373,7 +367,7 @@ function BarBackground(props) {
|
|
|
373
367
|
return roundedPath(x, y, width, height, radius, false, true, false, true);
|
|
374
368
|
}, [x, y, height, width, radius]);
|
|
375
369
|
var barProps = React.useContext(BarContext);
|
|
376
|
-
return
|
|
370
|
+
return _ref11 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SBackground, _ref11.cn("SBackground", {
|
|
377
371
|
"aria-hidden": true,
|
|
378
372
|
"render": "path",
|
|
379
373
|
"d": pathD,
|
|
@@ -386,50 +380,48 @@ function BarBackground(props) {
|
|
|
386
380
|
"onClick": callAllEventHandlers(props.onClick, barProps.onClick)
|
|
387
381
|
}));
|
|
388
382
|
}
|
|
389
|
-
var Hover = /* @__PURE__ */
|
|
383
|
+
var Hover = /* @__PURE__ */ function(_Component2) {
|
|
384
|
+
_inherits(Hover2, _Component2);
|
|
385
|
+
var _super2 = _createSuper(Hover2);
|
|
390
386
|
function Hover2() {
|
|
391
387
|
var _this3;
|
|
392
388
|
_classCallCheck(this, Hover2);
|
|
393
389
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
394
390
|
args[_key2] = arguments[_key2];
|
|
395
391
|
}
|
|
396
|
-
_this3 =
|
|
397
|
-
_defineProperty(_this3, "state", {
|
|
392
|
+
_this3 = _super2.call.apply(_super2, [this].concat(args));
|
|
393
|
+
_defineProperty(_assertThisInitialized(_this3), "state", {
|
|
398
394
|
index: null
|
|
399
395
|
});
|
|
400
|
-
_defineProperty(_this3, "virtualElement", canUseDOM() ? document.createElement("div") : {});
|
|
401
|
-
_defineProperty(_this3, "unsubscribeMouseMoveRoot", null);
|
|
402
|
-
_defineProperty(_this3, "unsubscribeMouseLeaveRoot", null);
|
|
403
|
-
_defineProperty(_this3, "handlerMouseMoveRoot", trottle(function(e) {
|
|
404
|
-
var _this3$asProps = _this3.asProps, eventEmitter = _this3$asProps.eventEmitter, rootRef = _this3$asProps.rootRef, patterns = _this3$asProps.patterns
|
|
396
|
+
_defineProperty(_assertThisInitialized(_this3), "virtualElement", canUseDOM() ? document.createElement("div") : {});
|
|
397
|
+
_defineProperty(_assertThisInitialized(_this3), "unsubscribeMouseMoveRoot", null);
|
|
398
|
+
_defineProperty(_assertThisInitialized(_this3), "unsubscribeMouseLeaveRoot", null);
|
|
399
|
+
_defineProperty(_assertThisInitialized(_this3), "handlerMouseMoveRoot", trottle(function(e) {
|
|
400
|
+
var _this3$asProps = _this3.asProps, eventEmitter = _this3$asProps.eventEmitter, rootRef = _this3$asProps.rootRef, patterns = _this3$asProps.patterns;
|
|
405
401
|
var point = eventToPoint(e, rootRef.current);
|
|
406
402
|
var clientX = e.clientX, clientY = e.clientY;
|
|
407
403
|
var index = _this3.getIndex(point);
|
|
408
404
|
_this3.setState({
|
|
409
405
|
index
|
|
410
406
|
}, function() {
|
|
411
|
-
eventEmitter.emit("
|
|
412
|
-
eventEmitter.emit("
|
|
407
|
+
eventEmitter.emit("setTooltipPosition", clientX, clientY);
|
|
408
|
+
eventEmitter.emit("setTooltipRenderingProps", {}, {
|
|
413
409
|
index,
|
|
414
410
|
patterns
|
|
415
411
|
});
|
|
416
|
-
eventEmitter.emit("
|
|
417
|
-
updateIndexToHover(index);
|
|
412
|
+
eventEmitter.emit("setTooltipVisible", index !== null);
|
|
418
413
|
});
|
|
419
414
|
}));
|
|
420
|
-
_defineProperty(_this3, "handlerMouseLeaveRoot", trottle(function() {
|
|
421
|
-
var _this3$asProps2 = _this3.asProps, updateIndexToHover = _this3$asProps2.updateIndexToHover, plotId = _this3$asProps2.plotId;
|
|
415
|
+
_defineProperty(_assertThisInitialized(_this3), "handlerMouseLeaveRoot", trottle(function() {
|
|
422
416
|
_this3.setState({
|
|
423
417
|
index: null
|
|
424
418
|
}, function() {
|
|
425
|
-
_this3.asProps.eventEmitter.emit("
|
|
426
|
-
updateIndexToHover(null);
|
|
419
|
+
_this3.asProps.eventEmitter.emit("setTooltipVisible", false);
|
|
427
420
|
});
|
|
428
421
|
}));
|
|
429
422
|
return _this3;
|
|
430
423
|
}
|
|
431
|
-
|
|
432
|
-
return _createClass(Hover2, [{
|
|
424
|
+
_createClass(Hover2, [{
|
|
433
425
|
key: "generateGetBoundingClientRect",
|
|
434
426
|
value: function generateGetBoundingClientRect() {
|
|
435
427
|
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
@@ -448,7 +440,7 @@ var Hover = /* @__PURE__ */ (function(_Component2) {
|
|
|
448
440
|
}, {
|
|
449
441
|
key: "getIndex",
|
|
450
442
|
value: function getIndex(point) {
|
|
451
|
-
var _this$
|
|
443
|
+
var _this$asProps10 = this.asProps, data = _this$asProps10.data, getBarData = _this$asProps10.getBarData;
|
|
452
444
|
for (var _i = 0; _i < data.length; _i++) {
|
|
453
445
|
var bar = getBarData(_i);
|
|
454
446
|
if (point[0] >= bar.x && point[0] <= bar.x + bar.fullWidth && point[1] >= bar.y && point[1] <= bar.y + bar.height) {
|
|
@@ -481,14 +473,14 @@ var Hover = /* @__PURE__ */ (function(_Component2) {
|
|
|
481
473
|
}, {
|
|
482
474
|
key: "render",
|
|
483
475
|
value: function render() {
|
|
484
|
-
var
|
|
485
|
-
var _this$
|
|
476
|
+
var _ref12;
|
|
477
|
+
var _this$asProps11 = this.asProps, styles = _this$asProps11.styles, getBarData = _this$asProps11.getBarData, render2 = _this$asProps11.render;
|
|
486
478
|
if (!render2) return null;
|
|
487
479
|
var index = this.state.index;
|
|
488
480
|
var SCompactHorizontalBarHoverRect = this.Element;
|
|
489
481
|
if (index === null) return null;
|
|
490
482
|
var bar = getBarData(index);
|
|
491
|
-
return
|
|
483
|
+
return _ref12 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SCompactHorizontalBarHoverRect, _ref12.cn("SCompactHorizontalBarHoverRect", {
|
|
492
484
|
"render": "rect",
|
|
493
485
|
"x": bar.x,
|
|
494
486
|
"y": bar.y + bar.height - barHeight - hoverOffset * 2,
|
|
@@ -497,17 +489,17 @@ var Hover = /* @__PURE__ */ (function(_Component2) {
|
|
|
497
489
|
}));
|
|
498
490
|
}
|
|
499
491
|
}]);
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
492
|
+
return Hover2;
|
|
493
|
+
}(Component);
|
|
494
|
+
var CompactHorizontalBarTooltip = function CompactHorizontalBarTooltip2(props) {
|
|
495
|
+
var _ref4 = arguments[0], _ref13;
|
|
503
496
|
if (!props.render) return null;
|
|
504
497
|
var SCompactHorizontalBarRadarTooltip = Tooltip;
|
|
505
|
-
return
|
|
498
|
+
return _ref13 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SCompactHorizontalBarRadarTooltip, _ref13.cn("SCompactHorizontalBarRadarTooltip", _objectSpread({}, assignProps({
|
|
506
499
|
"tag": CompactHorizontalBar.Hover,
|
|
507
500
|
"excludeAnchorProps": true
|
|
508
501
|
}, _ref4))));
|
|
509
|
-
}
|
|
510
|
-
;
|
|
502
|
+
};
|
|
511
503
|
var CompactHorizontalBar = createElement(CompactHorizontalBarRoot, {
|
|
512
504
|
Annotation,
|
|
513
505
|
Label,
|