@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
package/lib/esm/Reference.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
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";
|
|
5
4
|
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
7
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
8
|
-
import { sstyled
|
|
9
|
-
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
8
|
+
import { sstyled } from "@semcore/utils/lib/core/index";
|
|
10
9
|
import React from "react";
|
|
10
|
+
import { sstyled as sstyled$1, Component } from "@semcore/core";
|
|
11
|
+
import uniqueIDEnhancement from "@semcore/utils/lib/uniqueID";
|
|
11
12
|
import createElement from "./createElement.mjs";
|
|
12
13
|
import { scaleOfBandwidth } from "./utils.mjs";
|
|
13
14
|
/*!__reshadow-styles__:"./style/reference.shadow.css"*/
|
|
@@ -15,22 +16,22 @@ var style = (
|
|
|
15
16
|
/*__reshadow_css_start__*/
|
|
16
17
|
(sstyled.insert(
|
|
17
18
|
/*__inner_css_start__*/
|
|
18
|
-
".
|
|
19
|
+
".___SReferenceLine_qpfp6_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, rgb(214, 216, 215))}.___STitle_qpfp6_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, rgba(0, 3, 0, 0.583));transform-origin:var(--transform-origin_qpfp6)}@supports (color:color(display-p3 0 0 0)){.___STitle_qpfp6_gg_{fill:var(--intergalactic-chart-grid-text-label, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___STitle_qpfp6_gg_{fill:var(--intergalactic-chart-grid-text-label, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___STitle_qpfp6_gg_._position_top_qpfp6_gg_{text-anchor:middle}.___STitle_qpfp6_gg_._position_bottom_qpfp6_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_qpfp6_gg_._position_left_qpfp6_gg_,.___STitle_qpfp6_gg_._position_right_qpfp6_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_qpfp6_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgb(241, 242, 242))}.___SStripes_qpfp6_gg_{fill:var(--fill_qpfp6)}.___SStripesPatternPath_qpfp6_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgb(237, 239, 238));stroke-width:1px}",
|
|
19
20
|
/*__inner_css_end__*/
|
|
20
|
-
"
|
|
21
|
+
"qpfp6_gg_"
|
|
21
22
|
), /*__reshadow_css_end__*/
|
|
22
23
|
{
|
|
23
|
-
"__SReferenceLine": "
|
|
24
|
-
"__STitle": "
|
|
25
|
-
"--transform-origin": "--transform-
|
|
26
|
-
"_position_top": "
|
|
27
|
-
"_position_bottom": "
|
|
28
|
-
"_position_right": "
|
|
29
|
-
"_position_left": "
|
|
30
|
-
"__SBackground": "
|
|
31
|
-
"__SStripes": "
|
|
32
|
-
"--fill": "--
|
|
33
|
-
"__SStripesPatternPath": "
|
|
24
|
+
"__SReferenceLine": "___SReferenceLine_qpfp6_gg_",
|
|
25
|
+
"__STitle": "___STitle_qpfp6_gg_",
|
|
26
|
+
"--transform-origin": "--transform-origin_qpfp6",
|
|
27
|
+
"_position_top": "_position_top_qpfp6_gg_",
|
|
28
|
+
"_position_bottom": "_position_bottom_qpfp6_gg_",
|
|
29
|
+
"_position_right": "_position_right_qpfp6_gg_",
|
|
30
|
+
"_position_left": "_position_left_qpfp6_gg_",
|
|
31
|
+
"__SBackground": "___SBackground_qpfp6_gg_",
|
|
32
|
+
"__SStripes": "___SStripes_qpfp6_gg_",
|
|
33
|
+
"--fill": "--fill_qpfp6",
|
|
34
|
+
"__SStripesPatternPath": "___SStripesPatternPath_qpfp6_gg_"
|
|
34
35
|
})
|
|
35
36
|
);
|
|
36
37
|
var side2direction = {
|
|
@@ -65,7 +66,7 @@ var lineDirection2props = {
|
|
|
65
66
|
};
|
|
66
67
|
var rectDirection2props = {
|
|
67
68
|
vertical: function vertical2(_ref9, value, endValue) {
|
|
68
|
-
var
|
|
69
|
+
var _ref10 = _slicedToArray(_ref9, 2), xScale = _ref10[0], yScale = _ref10[1];
|
|
69
70
|
var yRange = yScale.range();
|
|
70
71
|
var x = scaleOfBandwidth(xScale, value);
|
|
71
72
|
var width = endValue !== void 0 ? scaleOfBandwidth(xScale, endValue) - x : 100;
|
|
@@ -76,8 +77,8 @@ var rectDirection2props = {
|
|
|
76
77
|
height: yRange[0] - yRange[1]
|
|
77
78
|
};
|
|
78
79
|
},
|
|
79
|
-
horizontal: function horizontal2(
|
|
80
|
-
var
|
|
80
|
+
horizontal: function horizontal2(_ref11, value, endValue) {
|
|
81
|
+
var _ref12 = _slicedToArray(_ref11, 2), xScale = _ref12[0], yScale = _ref12[1];
|
|
81
82
|
var xRange = xScale.range();
|
|
82
83
|
var y = scaleOfBandwidth(yScale, value);
|
|
83
84
|
var height = endValue !== void 0 ? scaleOfBandwidth(yScale, endValue) - y : 100;
|
|
@@ -91,8 +92,8 @@ var rectDirection2props = {
|
|
|
91
92
|
};
|
|
92
93
|
var titleOffset = 10;
|
|
93
94
|
var titleSideToProps = {
|
|
94
|
-
left: function left(
|
|
95
|
-
var
|
|
95
|
+
left: function left(_ref13, value) {
|
|
96
|
+
var _ref14 = _slicedToArray(_ref13, 2), xScale = _ref14[0], yScale = _ref14[1];
|
|
96
97
|
var yRange = yScale.range();
|
|
97
98
|
var x = scaleOfBandwidth(xScale, value);
|
|
98
99
|
return {
|
|
@@ -100,8 +101,8 @@ var titleSideToProps = {
|
|
|
100
101
|
y: (yRange[0] + yRange[1]) / 2
|
|
101
102
|
};
|
|
102
103
|
},
|
|
103
|
-
right: function right(
|
|
104
|
-
var
|
|
104
|
+
right: function right(_ref15, value) {
|
|
105
|
+
var _ref16 = _slicedToArray(_ref15, 2), xScale = _ref16[0], yScale = _ref16[1];
|
|
105
106
|
var yRange = yScale.range();
|
|
106
107
|
var x = scaleOfBandwidth(xScale, value);
|
|
107
108
|
return {
|
|
@@ -109,8 +110,8 @@ var titleSideToProps = {
|
|
|
109
110
|
y: (yRange[0] + yRange[1]) / 2
|
|
110
111
|
};
|
|
111
112
|
},
|
|
112
|
-
top: function top(
|
|
113
|
-
var
|
|
113
|
+
top: function top(_ref17, value) {
|
|
114
|
+
var _ref18 = _slicedToArray(_ref17, 2), xScale = _ref18[0], yScale = _ref18[1];
|
|
114
115
|
var xRange = xScale.range();
|
|
115
116
|
var y = scaleOfBandwidth(yScale, value);
|
|
116
117
|
return {
|
|
@@ -118,8 +119,8 @@ var titleSideToProps = {
|
|
|
118
119
|
y: y - titleOffset
|
|
119
120
|
};
|
|
120
121
|
},
|
|
121
|
-
bottom: function bottom(
|
|
122
|
-
var
|
|
122
|
+
bottom: function bottom(_ref19, value) {
|
|
123
|
+
var _ref20 = _slicedToArray(_ref19, 2), xScale = _ref20[0], yScale = _ref20[1];
|
|
123
124
|
var xRange = xScale.range();
|
|
124
125
|
var y = scaleOfBandwidth(yScale, value);
|
|
125
126
|
return {
|
|
@@ -128,13 +129,14 @@ var titleSideToProps = {
|
|
|
128
129
|
};
|
|
129
130
|
}
|
|
130
131
|
};
|
|
131
|
-
var ReferenceLineRoot = /* @__PURE__ */
|
|
132
|
+
var ReferenceLineRoot = /* @__PURE__ */ function(_Component) {
|
|
133
|
+
_inherits(ReferenceLineRoot2, _Component);
|
|
134
|
+
var _super = _createSuper(ReferenceLineRoot2);
|
|
132
135
|
function ReferenceLineRoot2() {
|
|
133
136
|
_classCallCheck(this, ReferenceLineRoot2);
|
|
134
|
-
return
|
|
137
|
+
return _super.apply(this, arguments);
|
|
135
138
|
}
|
|
136
|
-
|
|
137
|
-
return _createClass(ReferenceLineRoot2, [{
|
|
139
|
+
_createClass(ReferenceLineRoot2, [{
|
|
138
140
|
key: "getTitleProps",
|
|
139
141
|
value: function getTitleProps() {
|
|
140
142
|
var _this$asProps = this.asProps, position = _this$asProps.position, value = _this$asProps.value;
|
|
@@ -159,14 +161,15 @@ var ReferenceLineRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
159
161
|
var SReferenceLine = this.Element;
|
|
160
162
|
var _this$asProps3 = this.asProps, title = _this$asProps3.title, scale = _this$asProps3.scale, position = _this$asProps3.position, value = _this$asProps3.value, color = _this$asProps3.color, resolveColor = _this$asProps3.resolveColor, styles = _this$asProps3.styles;
|
|
161
163
|
var positionProps = lineDirection2props[side2direction[position]];
|
|
162
|
-
return _ref = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SReferenceLine, _ref.cn("SReferenceLine", _objectSpread({
|
|
164
|
+
return _ref = sstyled$1(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SReferenceLine, _ref.cn("SReferenceLine", _objectSpread({
|
|
163
165
|
"render": "line",
|
|
164
166
|
"__excludeProps": ["data", "scale", "format", "value", "color"],
|
|
165
167
|
"stroke": resolveColor(color)
|
|
166
168
|
}, positionProps(scale, value)))), title && /* @__PURE__ */ React.createElement(ReferenceLine.Title, null, title));
|
|
167
169
|
}
|
|
168
170
|
}]);
|
|
169
|
-
|
|
171
|
+
return ReferenceLineRoot2;
|
|
172
|
+
}(Component);
|
|
170
173
|
_defineProperty(ReferenceLineRoot, "displayName", "ReferenceLine");
|
|
171
174
|
_defineProperty(ReferenceLineRoot, "style", style);
|
|
172
175
|
_defineProperty(ReferenceLineRoot, "defaultProps", {
|
|
@@ -176,11 +179,11 @@ function Title(props) {
|
|
|
176
179
|
var _ref2;
|
|
177
180
|
var STitle = props.Element, styles = props.styles, scale = props.scale, position = props.position, value = props.value;
|
|
178
181
|
var _titleSideToProps$pos = titleSideToProps[position](scale, value), x = _titleSideToProps$pos.x, y = _titleSideToProps$pos.y;
|
|
179
|
-
var sstyles = sstyled(styles);
|
|
182
|
+
var sstyles = sstyled$1(styles);
|
|
180
183
|
var sTitleStyles = sstyles.cn("STitle", {
|
|
181
184
|
"transform-origin": "".concat(x.toFixed(2), "px ").concat(y.toFixed(2), "px")
|
|
182
185
|
});
|
|
183
|
-
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref2.cn("STitle", {
|
|
186
|
+
return _ref2 = sstyled$1(styles), /* @__PURE__ */ React.createElement(STitle, _ref2.cn("STitle", {
|
|
184
187
|
"render": "text",
|
|
185
188
|
"childrenPosition": "inside",
|
|
186
189
|
"className": sTitleStyles.className,
|
|
@@ -194,7 +197,7 @@ function Background(props) {
|
|
|
194
197
|
var _ref3;
|
|
195
198
|
var SBackground = props.Element, styles = props.styles, scale = props.scale, _props$position = props.position, position = _props$position === void 0 ? "left" : _props$position, value = props.value, endValue = props.endValue;
|
|
196
199
|
var positionProps = rectDirection2props[side2direction[position]];
|
|
197
|
-
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SBackground, _ref3.cn("SBackground", _objectSpread({
|
|
200
|
+
return _ref3 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SBackground, _ref3.cn("SBackground", _objectSpread({
|
|
198
201
|
"render": "rect",
|
|
199
202
|
"childrenPosition": "inside"
|
|
200
203
|
}, positionProps(scale, value, endValue))));
|
|
@@ -211,7 +214,7 @@ function Stripes(props) {
|
|
|
211
214
|
var SStripesPatternPath = "path";
|
|
212
215
|
var positionProps = rectDirection2props[side2direction[position]];
|
|
213
216
|
var patternId = "".concat(uid, "-pattern");
|
|
214
|
-
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement("g", _ref4.cn("g", {}), /* @__PURE__ */ React.createElement(SStripes, _ref4.cn("SStripes", _objectSpread({
|
|
217
|
+
return _ref4 = sstyled$1(styles), /* @__PURE__ */ React.createElement("g", _ref4.cn("g", {}), /* @__PURE__ */ React.createElement(SStripes, _ref4.cn("SStripes", _objectSpread({
|
|
215
218
|
"render": "rect",
|
|
216
219
|
"childrenPosition": "inside",
|
|
217
220
|
"fill": "url(#".concat(patternId, ")")
|
|
@@ -2,24 +2,27 @@ 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 _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import { sstyled, assignProps, Component
|
|
9
|
-
import { Box } from "@semcore/base-components";
|
|
10
|
-
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
11
|
-
import fire from "@semcore/core/lib/utils/fire";
|
|
12
|
-
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
13
|
-
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
9
|
+
import createComponent, { sstyled, assignProps, Component } from "@semcore/core";
|
|
14
10
|
import React from "react";
|
|
15
|
-
|
|
11
|
+
import { Box } from "@semcore/flex-box";
|
|
12
|
+
import trottle from "@semcore/utils/lib/rafTrottle";
|
|
13
|
+
import fire from "@semcore/utils/lib/fire";
|
|
14
|
+
import getOriginChildren from "@semcore/utils/lib/getOriginChildren";
|
|
15
|
+
import canUseDOM from "@semcore/utils/lib/canUseDOM";
|
|
16
|
+
var ResponsiveContainerRoot = /* @__PURE__ */ function(_Component) {
|
|
17
|
+
_inherits(ResponsiveContainerRoot2, _Component);
|
|
18
|
+
var _super = _createSuper(ResponsiveContainerRoot2);
|
|
16
19
|
function ResponsiveContainerRoot2(props) {
|
|
17
20
|
var _this;
|
|
18
21
|
_classCallCheck(this, ResponsiveContainerRoot2);
|
|
19
|
-
_this =
|
|
20
|
-
_defineProperty(_this, "containerRef", /* @__PURE__ */ React.createRef());
|
|
21
|
-
_defineProperty(_this, "size", [0, 0]);
|
|
22
|
-
_defineProperty(_this, "handleResize", trottle(function(entries) {
|
|
22
|
+
_this = _super.call(this, props);
|
|
23
|
+
_defineProperty(_assertThisInitialized(_this), "containerRef", /* @__PURE__ */ React.createRef());
|
|
24
|
+
_defineProperty(_assertThisInitialized(_this), "size", [0, 0]);
|
|
25
|
+
_defineProperty(_assertThisInitialized(_this), "handleResize", trottle(function(entries) {
|
|
23
26
|
var _this$asProps = _this.asProps, Children = _this$asProps.Children, aspect = _this$asProps.aspect;
|
|
24
27
|
if (!_this.$container) return;
|
|
25
28
|
var _this$$container = _this.$container, width = _this$$container.clientWidth, height = _this$$container.clientHeight;
|
|
@@ -37,7 +40,7 @@ var ResponsiveContainerRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
37
40
|
}
|
|
38
41
|
if (_this.size[0] === width && _this.size[1] === height) return;
|
|
39
42
|
_this.size = [width, height];
|
|
40
|
-
fire(_this, "onResize", _this.size, entries);
|
|
43
|
+
fire(_assertThisInitialized(_this), "onResize", _this.size, entries);
|
|
41
44
|
if (typeof getOriginChildren(Children) === "function") {
|
|
42
45
|
_this.forceUpdate();
|
|
43
46
|
}
|
|
@@ -47,8 +50,7 @@ var ResponsiveContainerRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
47
50
|
}
|
|
48
51
|
return _this;
|
|
49
52
|
}
|
|
50
|
-
|
|
51
|
-
return _createClass(ResponsiveContainerRoot2, [{
|
|
53
|
+
_createClass(ResponsiveContainerRoot2, [{
|
|
52
54
|
key: "$container",
|
|
53
55
|
get: function get() {
|
|
54
56
|
return this.containerRef.current;
|
|
@@ -67,7 +69,7 @@ var ResponsiveContainerRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
67
69
|
value: function componentDidMount() {
|
|
68
70
|
if (this.$container) {
|
|
69
71
|
var _this$observer;
|
|
70
|
-
(_this$observer = this.observer) === null || _this$observer === void 0
|
|
72
|
+
(_this$observer = this.observer) === null || _this$observer === void 0 ? void 0 : _this$observer.observe(this.$container);
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
// TODO component did update ref?
|
|
@@ -75,7 +77,7 @@ var ResponsiveContainerRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
75
77
|
key: "componentWillUnmount",
|
|
76
78
|
value: function componentWillUnmount() {
|
|
77
79
|
var _this$observer2;
|
|
78
|
-
(_this$observer2 = this.observer) === null || _this$observer2 === void 0
|
|
80
|
+
(_this$observer2 = this.observer) === null || _this$observer2 === void 0 ? void 0 : _this$observer2.disconnect();
|
|
79
81
|
}
|
|
80
82
|
}, {
|
|
81
83
|
key: "render",
|
|
@@ -88,7 +90,8 @@ var ResponsiveContainerRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
88
90
|
}, _ref))));
|
|
89
91
|
}
|
|
90
92
|
}]);
|
|
91
|
-
|
|
93
|
+
return ResponsiveContainerRoot2;
|
|
94
|
+
}(Component);
|
|
92
95
|
_defineProperty(ResponsiveContainerRoot, "displayName", "ResponsiveContainer");
|
|
93
96
|
var ResponsiveContainer = createComponent(ResponsiveContainerRoot);
|
|
94
97
|
export {
|
package/lib/esm/ScatterPlot.mjs
CHANGED
|
@@ -2,60 +2,63 @@ 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 _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import { sstyled
|
|
9
|
-
import
|
|
10
|
-
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
11
|
-
import { transition } from "d3-transition";
|
|
9
|
+
import { sstyled } from "@semcore/utils/lib/core/index";
|
|
10
|
+
import { sstyled as sstyled$1, Component, assignProps } from "@semcore/core";
|
|
12
11
|
import React from "react";
|
|
12
|
+
import { transition } from "d3-transition";
|
|
13
|
+
import canUseDOM from "@semcore/utils/lib/canUseDOM";
|
|
14
|
+
import uniqueIDEnhancement from "@semcore/utils/lib/uniqueID";
|
|
13
15
|
import createElement from "./createElement.mjs";
|
|
14
|
-
import { PatternFill } from "./Pattern.mjs";
|
|
15
|
-
import Tooltip from "./Tooltip.mjs";
|
|
16
16
|
import { getScatterPlotRadius } from "./utils.mjs";
|
|
17
|
+
import Tooltip from "./Tooltip.mjs";
|
|
18
|
+
import { PatternFill } from "./Pattern.mjs";
|
|
17
19
|
/*!__reshadow-styles__:"./style/scatterplot.shadow.css"*/
|
|
18
20
|
var style = (
|
|
19
21
|
/*__reshadow_css_start__*/
|
|
20
22
|
(sstyled.insert(
|
|
21
23
|
/*__inner_css_start__*/
|
|
22
|
-
".
|
|
24
|
+
".___SScatterPlot_17iw2_gg_{fill:var(--intergalactic-chart-palette-order-1, rgb(102, 107, 219));transition-property:cx,cy;transition-duration:var(--duration_17iw2);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_17iw2_gg_:hover{opacity:.8}}.___SScatterPlot_17iw2_gg_.__color_17iw2_gg_{fill:var(--color_17iw2)}.___SScatterPlot_17iw2_gg_.__pattern_17iw2_gg_.__color_17iw2_gg_{fill:var(--pattern_17iw2);stroke:var(--color_17iw2);stroke-width:1px}.___SScatterPlot_17iw2_gg_.__transparent_17iw2_gg_{opacity:.3}.___SValue_17iw2_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, rgb(92, 92, 196))}.___SValue_17iw2_gg_.__color_17iw2_gg_{stroke:var(--color_17iw2)}.___SValue_17iw2_gg_.__transparent_17iw2_gg_{opacity:.3}",
|
|
23
25
|
/*__inner_css_end__*/
|
|
24
|
-
"
|
|
26
|
+
"17iw2_gg_"
|
|
25
27
|
), /*__reshadow_css_end__*/
|
|
26
28
|
{
|
|
27
|
-
"__SScatterPlot": "
|
|
28
|
-
"_color": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
32
|
-
"_transparent": "
|
|
33
|
-
"__SValue": "
|
|
34
|
-
"--duration": "--
|
|
29
|
+
"__SScatterPlot": "___SScatterPlot_17iw2_gg_",
|
|
30
|
+
"_color": "__color_17iw2_gg_",
|
|
31
|
+
"--color": "--color_17iw2",
|
|
32
|
+
"_pattern": "__pattern_17iw2_gg_",
|
|
33
|
+
"--pattern": "--pattern_17iw2",
|
|
34
|
+
"_transparent": "__transparent_17iw2_gg_",
|
|
35
|
+
"__SValue": "___SValue_17iw2_gg_",
|
|
36
|
+
"--duration": "--duration_17iw2"
|
|
35
37
|
})
|
|
36
38
|
);
|
|
37
|
-
var ScatterPlotRoot = /* @__PURE__ */
|
|
39
|
+
var ScatterPlotRoot = /* @__PURE__ */ function(_Component) {
|
|
40
|
+
_inherits(ScatterPlotRoot2, _Component);
|
|
41
|
+
var _super = _createSuper(ScatterPlotRoot2);
|
|
38
42
|
function ScatterPlotRoot2() {
|
|
39
43
|
var _this;
|
|
40
44
|
_classCallCheck(this, ScatterPlotRoot2);
|
|
41
45
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
42
46
|
args[_key] = arguments[_key];
|
|
43
47
|
}
|
|
44
|
-
_this =
|
|
45
|
-
_defineProperty(_this, "virtualElement", canUseDOM() ? document.createElement("div") : {});
|
|
46
|
-
_defineProperty(_this, "bindHandlerTooltip", function(visible, props, tooltipProps) {
|
|
48
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
49
|
+
_defineProperty(_assertThisInitialized(_this), "virtualElement", canUseDOM() ? document.createElement("div") : {});
|
|
50
|
+
_defineProperty(_assertThisInitialized(_this), "bindHandlerTooltip", function(visible, props, tooltipProps) {
|
|
47
51
|
return function(_ref4) {
|
|
48
52
|
var clientX = _ref4.clientX, clientY = _ref4.clientY;
|
|
49
|
-
var
|
|
50
|
-
eventEmitter.emit("
|
|
51
|
-
eventEmitter.emit("
|
|
52
|
-
eventEmitter.emit("
|
|
53
|
+
var eventEmitter = _this.asProps.eventEmitter;
|
|
54
|
+
eventEmitter.emit("setTooltipPosition", clientX, clientY);
|
|
55
|
+
eventEmitter.emit("setTooltipRenderingProps", props, tooltipProps);
|
|
56
|
+
eventEmitter.emit("setTooltipVisible", visible);
|
|
53
57
|
};
|
|
54
58
|
});
|
|
55
59
|
return _this;
|
|
56
60
|
}
|
|
57
|
-
|
|
58
|
-
return _createClass(ScatterPlotRoot2, [{
|
|
61
|
+
_createClass(ScatterPlotRoot2, [{
|
|
59
62
|
key: "generateGetBoundingClientRect",
|
|
60
63
|
value: function generateGetBoundingClientRect() {
|
|
61
64
|
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
@@ -74,7 +77,7 @@ var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
74
77
|
}, {
|
|
75
78
|
key: "animationCircle",
|
|
76
79
|
value: function animationCircle() {
|
|
77
|
-
var _this$
|
|
80
|
+
var _this$asProps = this.asProps, duration = _this$asProps.duration, uid = _this$asProps.uid, r = _this$asProps.r, value = _this$asProps.value;
|
|
78
81
|
var radius = r ? r : getScatterPlotRadius(value);
|
|
79
82
|
var selectRect = transition().selection().selectAll("[id^=".concat(uid, "]")).attr("r", 0);
|
|
80
83
|
var selectRectNode = selectRect.node();
|
|
@@ -94,29 +97,18 @@ var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
94
97
|
value: function componentDidMount() {
|
|
95
98
|
this.animationCircle();
|
|
96
99
|
}
|
|
97
|
-
}, {
|
|
98
|
-
key: "handlerOnClick",
|
|
99
|
-
value: function handlerOnClick(index) {
|
|
100
|
-
var _this2 = this;
|
|
101
|
-
return function(e) {
|
|
102
|
-
e.stopPropagation();
|
|
103
|
-
var onClick = _this2.asProps.onClick;
|
|
104
|
-
if (!onClick) return;
|
|
105
|
-
onClick(index, e);
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
100
|
}, {
|
|
109
101
|
key: "renderCircle",
|
|
110
102
|
value: function renderCircle(d, i) {
|
|
111
103
|
var _ref2;
|
|
112
|
-
var _this$
|
|
104
|
+
var _this$asProps2 = this.asProps, color = _this$asProps2.color, scale = _this$asProps2.scale, x = _this$asProps2.x, y = _this$asProps2.y, r = _this$asProps2.r, offset = _this$asProps2.offset, styles = _this$asProps2.styles, uid = _this$asProps2.uid, duration = _this$asProps2.duration, value = _this$asProps2.value, valueColor = _this$asProps2.valueColor, transparent = _this$asProps2.transparent, resolveColor = _this$asProps2.resolveColor, patterns = _this$asProps2.patterns;
|
|
113
105
|
var _scale = _slicedToArray(scale, 2), xScale = _scale[0], yScale = _scale[1];
|
|
114
106
|
var SScatterPlot = this.Element;
|
|
115
107
|
var SValue = "text";
|
|
116
108
|
if (Number.isNaN(d[x]) || Number.isNaN(d[y])) {
|
|
117
109
|
return null;
|
|
118
110
|
}
|
|
119
|
-
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement("g", _ref2.cn("g", {
|
|
111
|
+
return _ref2 = sstyled$1(styles), /* @__PURE__ */ React.createElement("g", _ref2.cn("g", {
|
|
120
112
|
"aria-hidden": true,
|
|
121
113
|
"key": "circle(#".concat(i, ")"),
|
|
122
114
|
"onMouseMove": this.bindHandlerTooltip(true, this.props, {
|
|
@@ -128,8 +120,7 @@ var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
128
120
|
xIndex: i,
|
|
129
121
|
index: i,
|
|
130
122
|
patterns
|
|
131
|
-
})
|
|
132
|
-
"onClickCapture": this.handlerOnClick(i)
|
|
123
|
+
})
|
|
133
124
|
}), /* @__PURE__ */ React.createElement(SScatterPlot, _ref2.cn("SScatterPlot", {
|
|
134
125
|
"aria-hidden": true,
|
|
135
126
|
"id": "".concat(uid).concat(i),
|
|
@@ -161,7 +152,7 @@ var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
161
152
|
}, {
|
|
162
153
|
key: "render",
|
|
163
154
|
value: function render() {
|
|
164
|
-
var _this$
|
|
155
|
+
var _this$asProps3 = this.asProps, data = _this$asProps3.data, uid = _this$asProps3.uid, scale = _this$asProps3.scale, x = _this$asProps3.x, y = _this$asProps3.y, value = _this$asProps3.value;
|
|
165
156
|
var _scale2 = _slicedToArray(scale, 2), xScale = _scale2[0], yScale = _scale2[1];
|
|
166
157
|
var xSize = Math.abs(xScale.range()[0] - xScale.range()[1]);
|
|
167
158
|
var ySize = Math.abs(yScale.range()[0] - yScale.range()[1]);
|
|
@@ -179,7 +170,8 @@ var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
179
170
|
})));
|
|
180
171
|
}
|
|
181
172
|
}]);
|
|
182
|
-
|
|
173
|
+
return ScatterPlotRoot2;
|
|
174
|
+
}(Component);
|
|
183
175
|
_defineProperty(ScatterPlotRoot, "displayName", "ScatterPlot");
|
|
184
176
|
_defineProperty(ScatterPlotRoot, "style", style);
|
|
185
177
|
_defineProperty(ScatterPlotRoot, "enhance", [uniqueIDEnhancement()]);
|
|
@@ -187,14 +179,13 @@ _defineProperty(ScatterPlotRoot, "defaultProps", {
|
|
|
187
179
|
offset: [0, 0],
|
|
188
180
|
duration: 500
|
|
189
181
|
});
|
|
190
|
-
function
|
|
182
|
+
var ScatterPlotTooltip = function ScatterPlotTooltip2(props) {
|
|
191
183
|
var _ref = arguments[0], _ref3;
|
|
192
184
|
var SScatterPlotTooltip = Tooltip;
|
|
193
|
-
return _ref3 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SScatterPlotTooltip, _ref3.cn("SScatterPlotTooltip", _objectSpread({}, assignProps({
|
|
185
|
+
return _ref3 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SScatterPlotTooltip, _ref3.cn("SScatterPlotTooltip", _objectSpread({}, assignProps({
|
|
194
186
|
"excludeAnchorProps": true
|
|
195
187
|
}, _ref))));
|
|
196
|
-
}
|
|
197
|
-
;
|
|
188
|
+
};
|
|
198
189
|
var ScatterPlot = createElement(ScatterPlotRoot, {
|
|
199
190
|
Tooltip: [ScatterPlotTooltip, Tooltip._______childrenComponents]
|
|
200
191
|
});
|
package/lib/esm/StackBar.mjs
CHANGED
|
@@ -2,32 +2,34 @@ 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 _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
6
6
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
8
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import { Component } from "@semcore/core";
|
|
9
|
-
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
10
|
-
import { stack } from "d3-shape";
|
|
11
9
|
import React from "react";
|
|
12
|
-
import
|
|
10
|
+
import { stack } from "d3-shape";
|
|
11
|
+
import { Component } from "@semcore/core";
|
|
12
|
+
import getOriginChildren from "@semcore/utils/lib/getOriginChildren";
|
|
13
13
|
import createElement from "./createElement.mjs";
|
|
14
|
+
import Bar, { MIN_HEIGHT } from "./Bar.mjs";
|
|
14
15
|
import HorizontalBar, { MIN_WIDTH } from "./HorizontalBar.mjs";
|
|
15
16
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
16
|
-
var DEFAULT_INSTANCE =
|
|
17
|
-
var XY0 =
|
|
18
|
-
var StackBarRoot = /* @__PURE__ */
|
|
17
|
+
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
18
|
+
var XY0 = Symbol("XY0");
|
|
19
|
+
var StackBarRoot = /* @__PURE__ */ function(_Component) {
|
|
20
|
+
_inherits(StackBarRoot2, _Component);
|
|
21
|
+
var _super = _createSuper(StackBarRoot2);
|
|
19
22
|
function StackBarRoot2() {
|
|
20
23
|
var _this;
|
|
21
24
|
_classCallCheck(this, StackBarRoot2);
|
|
22
25
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
23
26
|
args[_key] = arguments[_key];
|
|
24
27
|
}
|
|
25
|
-
_this =
|
|
26
|
-
_defineProperty(_this, "offsetBars", []);
|
|
28
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
29
|
+
_defineProperty(_assertThisInitialized(_this), "offsetBars", []);
|
|
27
30
|
return _this;
|
|
28
31
|
}
|
|
29
|
-
|
|
30
|
-
return _createClass(StackBarRoot2, [{
|
|
32
|
+
_createClass(StackBarRoot2, [{
|
|
31
33
|
key: "getSeries",
|
|
32
34
|
value: function getSeries() {
|
|
33
35
|
var _this$asProps = this.asProps, Children = _this$asProps.Children, data = _this$asProps.data, stack2 = _this$asProps.stack;
|
|
@@ -56,14 +58,15 @@ var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
56
58
|
return s.key === y;
|
|
57
59
|
});
|
|
58
60
|
var series = this.series[seriesIndex] || [];
|
|
59
|
-
var rBar = series.map(function(
|
|
61
|
+
var rBar = series.map(function(s, i) {
|
|
60
62
|
return _this2.series.slice(seriesIndex + 1).some(function(bar) {
|
|
61
63
|
return bar[i][0] !== bar[i][1];
|
|
62
64
|
}) ? 0 : r;
|
|
63
65
|
});
|
|
64
66
|
this.offsetBars[seriesIndex] = (_this$offsetBars$seri = this.offsetBars[seriesIndex]) !== null && _this$offsetBars$seri !== void 0 ? _this$offsetBars$seri : [];
|
|
65
67
|
var data = series.map(function(s) {
|
|
66
|
-
|
|
68
|
+
var _objectSpread2;
|
|
69
|
+
return _objectSpread(_objectSpread({}, s.data), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, y, s[1]), _defineProperty(_objectSpread2, XY0, s[0]), _objectSpread2));
|
|
67
70
|
});
|
|
68
71
|
var calcOffset = function calcOffset2(i) {
|
|
69
72
|
var _d$XY, _d$XY2;
|
|
@@ -98,7 +101,7 @@ var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
98
101
|
}, {
|
|
99
102
|
key: "getHorizontalBarProps",
|
|
100
103
|
value: function getHorizontalBarProps(_ref2, index) {
|
|
101
|
-
var _this$offsetBars$seri2
|
|
104
|
+
var _this3 = this, _this$offsetBars$seri2;
|
|
102
105
|
var x = _ref2.x, _ref2$wMin = _ref2.wMin, wMin = _ref2$wMin === void 0 ? MIN_WIDTH : _ref2$wMin;
|
|
103
106
|
var _this$asProps3 = this.asProps, y = _this$asProps3.y, r = _this$asProps3.r, scale = _this$asProps3.scale, maxBarSize = _this$asProps3.maxBarSize, patterns = _this$asProps3.patterns;
|
|
104
107
|
var _scale2 = _slicedToArray(scale, 1), xScale = _scale2[0];
|
|
@@ -106,9 +109,15 @@ var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
106
109
|
return s.key === x;
|
|
107
110
|
});
|
|
108
111
|
var series = this.series[seriesIndex];
|
|
112
|
+
var rBar = series.map(function(s, i) {
|
|
113
|
+
return _this3.series.slice(seriesIndex + 1).some(function(bar) {
|
|
114
|
+
return bar[i][0] !== bar[i][1];
|
|
115
|
+
}) ? 0 : r;
|
|
116
|
+
});
|
|
109
117
|
this.offsetBars[seriesIndex] = (_this$offsetBars$seri2 = this.offsetBars[seriesIndex]) !== null && _this$offsetBars$seri2 !== void 0 ? _this$offsetBars$seri2 : [];
|
|
110
118
|
var data = series.map(function(s) {
|
|
111
|
-
|
|
119
|
+
var _objectSpread3;
|
|
120
|
+
return _objectSpread(_objectSpread({}, s.data), {}, (_objectSpread3 = {}, _defineProperty(_objectSpread3, x, s[1]), _defineProperty(_objectSpread3, XY0, s[0]), _objectSpread3));
|
|
112
121
|
});
|
|
113
122
|
var calcOffset = function calcOffset2(i) {
|
|
114
123
|
var _d$XY3, _d$XY4;
|
|
@@ -126,7 +135,7 @@ var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
126
135
|
wMin,
|
|
127
136
|
x0: XY0,
|
|
128
137
|
y,
|
|
129
|
-
r:
|
|
138
|
+
r: rBar,
|
|
130
139
|
groupKey: y,
|
|
131
140
|
offset: calcOffset,
|
|
132
141
|
maxBarSize,
|
|
@@ -148,7 +157,8 @@ var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
148
157
|
});
|
|
149
158
|
}
|
|
150
159
|
}]);
|
|
151
|
-
|
|
160
|
+
return StackBarRoot2;
|
|
161
|
+
}(Component);
|
|
152
162
|
_defineProperty(StackBarRoot, "displayName", "StackBar");
|
|
153
163
|
_defineProperty(StackBarRoot, "defaultProps", function() {
|
|
154
164
|
var stack$1 = stack();
|
package/lib/esm/StackedArea.mjs
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
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";
|
|
5
4
|
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 { Component } from "@semcore/core";
|
|
8
|
-
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
9
|
-
import { stack } from "d3-shape";
|
|
10
7
|
import React from "react";
|
|
11
|
-
import
|
|
8
|
+
import { stack } from "d3-shape";
|
|
9
|
+
import { Component } from "@semcore/core";
|
|
10
|
+
import getOriginChildren from "@semcore/utils/lib/getOriginChildren";
|
|
12
11
|
import createElement from "./createElement.mjs";
|
|
12
|
+
import Area from "./Area.mjs";
|
|
13
13
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
14
|
-
var DEFAULT_INSTANCE =
|
|
15
|
-
var Y0 =
|
|
16
|
-
var StackedAreaRoot = /* @__PURE__ */
|
|
14
|
+
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
15
|
+
var Y0 = Symbol("Y0");
|
|
16
|
+
var StackedAreaRoot = /* @__PURE__ */ function(_Component) {
|
|
17
|
+
_inherits(StackedAreaRoot2, _Component);
|
|
18
|
+
var _super = _createSuper(StackedAreaRoot2);
|
|
17
19
|
function StackedAreaRoot2() {
|
|
18
20
|
_classCallCheck(this, StackedAreaRoot2);
|
|
19
|
-
return
|
|
21
|
+
return _super.apply(this, arguments);
|
|
20
22
|
}
|
|
21
|
-
|
|
22
|
-
return _createClass(StackedAreaRoot2, [{
|
|
23
|
+
_createClass(StackedAreaRoot2, [{
|
|
23
24
|
key: "getSeries",
|
|
24
25
|
value: function getSeries() {
|
|
25
26
|
var _this$asProps = this.asProps, Children = _this$asProps.Children, data = _this$asProps.data, stack2 = _this$asProps.stack;
|
|
@@ -46,7 +47,8 @@ var StackedAreaRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
46
47
|
color: getChartDefaultColorName(index),
|
|
47
48
|
patterns,
|
|
48
49
|
data: series.map(function(s) {
|
|
49
|
-
|
|
50
|
+
var _objectSpread2;
|
|
51
|
+
return _objectSpread(_objectSpread({}, s.data), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, y, s.data[y] === null ? null : s[1]), _defineProperty(_objectSpread2, Y0, s[0]), _objectSpread2));
|
|
50
52
|
}),
|
|
51
53
|
y0: Y0,
|
|
52
54
|
x
|
|
@@ -64,7 +66,8 @@ var StackedAreaRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
64
66
|
});
|
|
65
67
|
}
|
|
66
68
|
}]);
|
|
67
|
-
|
|
69
|
+
return StackedAreaRoot2;
|
|
70
|
+
}(Component);
|
|
68
71
|
_defineProperty(StackedAreaRoot, "displayName", "StackedArea");
|
|
69
72
|
_defineProperty(StackedAreaRoot, "defaultProps", function() {
|
|
70
73
|
var stack$1 = stack();
|