@semcore/d3-chart 16.0.2-prerelease.4 → 16.0.3-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -50
- package/lib/cjs/AnimatedClipPath.js +13 -13
- package/lib/cjs/AnimatedClipPath.js.map +1 -1
- package/lib/cjs/Area.js +29 -27
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +97 -101
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +31 -32
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +26 -27
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +65 -68
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +94 -95
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +36 -34
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +16 -16
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +30 -31
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +27 -33
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +23 -23
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +13 -11
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +26 -27
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +125 -132
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +164 -145
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +47 -49
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +19 -20
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +24 -25
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +20 -23
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +14 -15
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +34 -35
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +28 -29
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/DataAccessibilityTable.js +2 -3
- package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +11 -12
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +10 -11
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/bezier.js +1 -2
- package/lib/cjs/a11y/bezier.js.map +1 -1
- package/lib/cjs/a11y/focus.js +4 -5
- package/lib/cjs/a11y/focus.js.map +1 -1
- package/lib/cjs/a11y/hints.js +5 -8
- package/lib/cjs/a11y/hints.js.map +1 -1
- package/lib/cjs/a11y/insights.js +63 -64
- package/lib/cjs/a11y/insights.js.map +1 -1
- package/lib/cjs/a11y/intl.js +1 -2
- package/lib/cjs/a11y/intl.js.map +1 -1
- package/lib/cjs/a11y/locale.js +4 -5
- package/lib/cjs/a11y/locale.js.map +1 -1
- package/lib/cjs/a11y/serialize.js +15 -17
- package/lib/cjs/a11y/serialize.js.map +1 -1
- package/lib/cjs/a11y/summarize.js +1 -2
- package/lib/cjs/a11y/summarize.js.map +1 -1
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/color.js +2 -3
- package/lib/cjs/color.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.js +43 -46
- 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 +17 -20
- 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 +17 -21
- 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 +18 -19
- 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 +19 -23
- 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 +13 -14
- 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 +13 -14
- 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 +15 -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 +17 -18
- 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 +14 -17
- 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 +14 -15
- 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 +12 -13
- package/lib/cjs/component/Chart/VennChart.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/index.js +7 -8
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +42 -20
- 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 +20 -20
- 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 +79 -67
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -2
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +18 -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 +1 -2
- package/lib/cjs/component/ChartLegend/index.js.map +1 -1
- package/lib/cjs/component/Cigarette/Cigarette.js +18 -19
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js +22 -26
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/cjs/component/SvgElement.js +21 -0
- package/lib/cjs/component/SvgElement.js.map +1 -0
- package/lib/cjs/createElement.d.js.map +1 -1
- package/lib/cjs/createElement.js +7 -8
- package/lib/cjs/createElement.js.map +1 -1
- package/lib/cjs/index.js +9 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -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 -2
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +31 -52
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/AnimatedClipPath.js +11 -10
- package/lib/es6/AnimatedClipPath.js.map +1 -1
- package/lib/es6/Area.js +27 -24
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +96 -98
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +28 -27
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +24 -24
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +63 -65
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +92 -92
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +36 -33
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +14 -13
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +27 -26
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +24 -28
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +20 -19
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +4 -2
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +25 -25
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +122 -128
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +162 -142
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +44 -43
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +17 -17
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +22 -22
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +17 -19
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +12 -12
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +33 -33
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +26 -26
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +11 -11
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +9 -9
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/bezier.js.map +1 -1
- package/lib/es6/a11y/focus.js +3 -3
- package/lib/es6/a11y/focus.js.map +1 -1
- package/lib/es6/a11y/hints.js +1 -1
- 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 -2
- package/lib/es6/a11y/locale.js.map +1 -1
- package/lib/es6/a11y/serialize.js +14 -13
- package/lib/es6/a11y/serialize.js.map +1 -1
- package/lib/es6/a11y/summarize.js.map +1 -1
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/a11y/translations/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 +40 -41
- 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 +16 -16
- 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 +15 -17
- 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 +17 -15
- 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 +17 -17
- 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 +11 -10
- 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 +12 -10
- 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 +14 -12
- 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 +15 -14
- 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 +12 -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 +13 -11
- 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 +10 -9
- 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 +40 -17
- 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 +18 -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 +77 -64
- 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 +16 -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 +16 -16
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.js +20 -21
- package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/es6/component/SvgElement.js +14 -0
- package/lib/es6/component/SvgElement.js.map +1 -0
- package/lib/es6/createElement.d.js.map +1 -1
- package/lib/es6/createElement.js +5 -5
- package/lib/es6/createElement.js.map +1 -1
- package/lib/es6/index.js +1 -0
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -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 +1 -0
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +11 -13
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +10 -7
- package/lib/esm/Area.mjs +30 -25
- package/lib/esm/Axis.mjs +67 -67
- package/lib/esm/Bar.mjs +31 -28
- package/lib/esm/Bubble.mjs +28 -26
- package/lib/esm/CompactHorizontalBar.mjs +61 -60
- package/lib/esm/Donut.mjs +50 -49
- package/lib/esm/Dots.mjs +32 -27
- package/lib/esm/GroupBar.mjs +14 -11
- package/lib/esm/HorizontalBar.mjs +30 -27
- package/lib/esm/Hover.mjs +28 -30
- package/lib/esm/Line.mjs +23 -20
- package/lib/esm/Pattern.mjs +1 -1
- package/lib/esm/Plot.mjs +27 -25
- package/lib/esm/Radar.mjs +90 -94
- package/lib/esm/RadialTree.mjs +86 -86
- package/lib/esm/Reference.mjs +34 -31
- package/lib/esm/ResponsiveContainer.mjs +19 -17
- package/lib/esm/ScatterPlot.mjs +26 -24
- package/lib/esm/StackBar.mjs +17 -17
- package/lib/esm/StackedArea.mjs +13 -11
- package/lib/esm/Tooltip.mjs +35 -33
- package/lib/esm/Venn.mjs +29 -27
- package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
- package/lib/esm/a11y/PlotA11yModule.mjs +8 -8
- package/lib/esm/a11y/PlotA11yView.mjs +9 -9
- package/lib/esm/a11y/focus.mjs +3 -3
- package/lib/esm/a11y/hints.mjs +1 -1
- package/lib/esm/a11y/insights.mjs +77 -78
- package/lib/esm/a11y/intl.mjs +1 -1
- 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/view/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +38 -37
- package/lib/esm/component/Chart/AreaChart.mjs +19 -15
- package/lib/esm/component/Chart/BarChart.mjs +20 -17
- package/lib/esm/component/Chart/BubbleChart.mjs +16 -13
- package/lib/esm/component/Chart/CigaretteChart.mjs +24 -17
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +18 -10
- package/lib/esm/component/Chart/DonutChart.mjs +13 -10
- package/lib/esm/component/Chart/HistogramChart.mjs +18 -12
- package/lib/esm/component/Chart/LineChart.mjs +18 -12
- package/lib/esm/component/Chart/RadarChart.mjs +19 -12
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +14 -11
- package/lib/esm/component/Chart/VennChart.mjs +12 -9
- package/lib/esm/component/Chart/index.mjs +6 -6
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +42 -17
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +21 -18
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +67 -56
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +23 -20
- package/lib/esm/component/Cigarette/Cigarette.mjs +18 -16
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +20 -19
- package/lib/esm/component/SvgElement.mjs +14 -0
- package/lib/esm/createElement.mjs +5 -5
- package/lib/esm/index.mjs +2 -0
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/utils.mjs +8 -8
- package/lib/types/Area.d.ts +7 -6
- package/lib/types/Axis.d.ts +4 -3
- package/lib/types/Bar.d.ts +7 -6
- package/lib/types/Bubble.d.ts +6 -5
- package/lib/types/ClipPath.d.ts +4 -3
- package/lib/types/CompactHorizontalBar.d.ts +7 -8
- package/lib/types/Donut.d.ts +6 -5
- package/lib/types/GroupBar.d.ts +6 -6
- package/lib/types/HorizontalBar.d.ts +7 -6
- package/lib/types/Hover.d.ts +8 -8
- package/lib/types/Line.d.ts +7 -6
- package/lib/types/Pattern.d.ts +51 -51
- package/lib/types/Plot.d.ts +10 -9
- package/lib/types/Radar.d.ts +8 -7
- package/lib/types/RadialTree.d.ts +9 -54
- package/lib/types/Reference.d.ts +5 -4
- package/lib/types/ResponsiveContainer.d.ts +5 -4
- package/lib/types/ScatterPlot.d.ts +6 -5
- package/lib/types/StackBar.d.ts +7 -6
- package/lib/types/StackedArea.d.ts +6 -5
- package/lib/types/Tooltip.d.ts +14 -12
- package/lib/types/Venn.d.ts +7 -6
- package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
- package/lib/types/a11y/PlotA11yModule.d.ts +1 -1
- 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/component/Chart/AbstractChart.d.ts +6 -6
- package/lib/types/component/Chart/AbstractChart.type.d.ts +27 -27
- package/lib/types/component/Chart/AreaChart.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +6 -6
- package/lib/types/component/Chart/BarChart.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +6 -6
- package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +4 -4
- package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +4 -4
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +5 -5
- package/lib/types/component/Chart/DonutChart.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +5 -5
- package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +4 -4
- package/lib/types/component/Chart/LineChart.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +7 -7
- package/lib/types/component/Chart/RadarChart.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +4 -4
- package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +5 -5
- package/lib/types/component/Chart/VennChart.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +4 -4
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +6 -4
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +17 -10
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
- package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
- package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +3 -4
- package/lib/types/component/SvgElement.d.ts +10 -0
- package/lib/types/index.d.ts +2 -1
- package/lib/types/utils.d.ts +6 -6
- package/package.json +22 -23
package/lib/esm/Bubble.mjs
CHANGED
|
@@ -2,52 +2,54 @@ 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 _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
7
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
8
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import { sstyled,
|
|
10
|
-
import React from "react";
|
|
11
|
-
import { transition } from "d3-transition";
|
|
10
|
+
import { sstyled, assignProps, Component } from "@semcore/core";
|
|
12
11
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
12
|
+
import { transition } from "d3-transition";
|
|
13
|
+
import React from "react";
|
|
13
14
|
import createElement from "./createElement.mjs";
|
|
14
|
-
import { getBubbleChartValueScale, measureText } from "./utils.mjs";
|
|
15
|
-
import Tooltip from "./Tooltip.mjs";
|
|
16
15
|
import { PatternFill } from "./Pattern.mjs";
|
|
16
|
+
import Tooltip from "./Tooltip.mjs";
|
|
17
|
+
import { getBubbleChartValueScale, measureText } from "./utils.mjs";
|
|
18
|
+
function _callSuper(t, o, e) {
|
|
19
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
20
|
+
}
|
|
17
21
|
/*!__reshadow-styles__:"./style/bubble.shadow.css"*/
|
|
18
22
|
var style = (
|
|
19
23
|
/*__reshadow_css_start__*/
|
|
20
24
|
(sstyled.insert(
|
|
21
25
|
/*__inner_css_start__*/
|
|
22
|
-
".
|
|
26
|
+
".___SBubble_1ybb4_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_1ybb4);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SBubble_1ybb4_gg_:hover{opacity:.8}}.___SBubble_1ybb4_gg_.__color_1ybb4_gg_{fill:var(--color_1ybb4)}.___SBubble_1ybb4_gg_.__pattern_1ybb4_gg_.__color_1ybb4_gg_{fill:var(--pattern_1ybb4);stroke:var(--color_1ybb4);stroke-width:1px}.___SBubble_1ybb4_gg_.__transparent_1ybb4_gg_{opacity:.3}.___SCenter_1ybb4_gg_{text-anchor:middle;font-size:calc(var(--intergalactic-fs-100, 12px) - 1px);stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SCenter_1ybb4_gg_.__color_1ybb4_gg_{stroke:var(--color_1ybb4)}.___SCenter_1ybb4_gg_.__transparent_1ybb4_gg_{opacity:.3}.___SLabel_1ybb4_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SLabel_1ybb4_gg_._position_right_1ybb4_gg_{text-anchor:end}.___SLabel_1ybb4_gg_._position_left_1ybb4_gg_{text-anchor:start}.___SLabel_1ybb4_gg_.__color_1ybb4_gg_{fill:var(--color_1ybb4)}.___SLabel_1ybb4_gg_.__transparent_1ybb4_gg_{opacity:.3}",
|
|
23
27
|
/*__inner_css_end__*/
|
|
24
|
-
"
|
|
28
|
+
"1ybb4_gg_"
|
|
25
29
|
), /*__reshadow_css_end__*/
|
|
26
30
|
{
|
|
27
|
-
"__SBubble": "
|
|
28
|
-
"_color": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
32
|
-
"_transparent": "
|
|
33
|
-
"__SCenter": "
|
|
34
|
-
"__SLabel": "
|
|
35
|
-
"_position_right": "
|
|
36
|
-
"_position_left": "
|
|
37
|
-
"--duration": "--
|
|
31
|
+
"__SBubble": "___SBubble_1ybb4_gg_",
|
|
32
|
+
"_color": "__color_1ybb4_gg_",
|
|
33
|
+
"--color": "--color_1ybb4",
|
|
34
|
+
"_pattern": "__pattern_1ybb4_gg_",
|
|
35
|
+
"--pattern": "--pattern_1ybb4",
|
|
36
|
+
"_transparent": "__transparent_1ybb4_gg_",
|
|
37
|
+
"__SCenter": "___SCenter_1ybb4_gg_",
|
|
38
|
+
"__SLabel": "___SLabel_1ybb4_gg_",
|
|
39
|
+
"_position_right": "_position_right_1ybb4_gg_",
|
|
40
|
+
"_position_left": "_position_left_1ybb4_gg_",
|
|
41
|
+
"--duration": "--duration_1ybb4"
|
|
38
42
|
})
|
|
39
43
|
);
|
|
40
44
|
var BubbleRoot = /* @__PURE__ */ function(_Component) {
|
|
41
|
-
_inherits(BubbleRoot2, _Component);
|
|
42
|
-
var _super = _createSuper(BubbleRoot2);
|
|
43
45
|
function BubbleRoot2() {
|
|
44
46
|
var _this;
|
|
45
47
|
_classCallCheck(this, BubbleRoot2);
|
|
46
48
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
47
49
|
args[_key] = arguments[_key];
|
|
48
50
|
}
|
|
49
|
-
_this =
|
|
50
|
-
_defineProperty(
|
|
51
|
+
_this = _callSuper(this, BubbleRoot2, [].concat(args));
|
|
52
|
+
_defineProperty(_this, "bindHandlerTooltip", function(visible, props, tooltipProps) {
|
|
51
53
|
return function(_ref4) {
|
|
52
54
|
var clientX = _ref4.clientX, clientY = _ref4.clientY;
|
|
53
55
|
var eventEmitter = _this.asProps.eventEmitter;
|
|
@@ -58,7 +60,8 @@ var BubbleRoot = /* @__PURE__ */ function(_Component) {
|
|
|
58
60
|
});
|
|
59
61
|
return _this;
|
|
60
62
|
}
|
|
61
|
-
|
|
63
|
+
_inherits(BubbleRoot2, _Component);
|
|
64
|
+
return _createClass(BubbleRoot2, [{
|
|
62
65
|
key: "generateGetBoundingClientRect",
|
|
63
66
|
value: function generateGetBoundingClientRect() {
|
|
64
67
|
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
@@ -190,7 +193,6 @@ var BubbleRoot = /* @__PURE__ */ function(_Component) {
|
|
|
190
193
|
}), " "));
|
|
191
194
|
}
|
|
192
195
|
}]);
|
|
193
|
-
return BubbleRoot2;
|
|
194
196
|
}(Component);
|
|
195
197
|
_defineProperty(BubbleRoot, "displayName", "Bubble");
|
|
196
198
|
_defineProperty(BubbleRoot, "style", style);
|
|
@@ -1,70 +1,74 @@
|
|
|
1
|
+
import "@babel/runtime/helpers/esm/readOnlyError";
|
|
1
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
4
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
5
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
-
import
|
|
6
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
7
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
8
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
9
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
10
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import { sstyled,
|
|
10
|
-
import
|
|
11
|
+
import { sstyled, assignProps, Component } from "@semcore/core";
|
|
12
|
+
import { callAllEventHandlers } from "@semcore/core/lib/utils/assignProps";
|
|
13
|
+
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
14
|
+
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
11
15
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
12
|
-
import
|
|
16
|
+
import { Box } from "@semcore/flex-box";
|
|
17
|
+
import React from "react";
|
|
13
18
|
import AnimatedClipPath from "./AnimatedClipPath.mjs";
|
|
14
|
-
import
|
|
19
|
+
import createElement from "./createElement.mjs";
|
|
15
20
|
import { PatternFill } from "./Pattern.mjs";
|
|
16
|
-
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
17
21
|
import Tooltip from "./Tooltip.mjs";
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
import { scaleToBand, roundedPath, eventToPoint } from "./utils.mjs";
|
|
23
|
+
function _callSuper(t, o, e) {
|
|
24
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
25
|
+
}
|
|
21
26
|
/*!__reshadow-styles__:"./style/bar.shadow.css"*/
|
|
22
27
|
var style = (
|
|
23
28
|
/*__reshadow_css_start__*/
|
|
24
29
|
(sstyled.insert(
|
|
25
30
|
/*__inner_css_start__*/
|
|
26
|
-
".
|
|
31
|
+
".___SBar_1e83s_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_1e83s);transition-timing-function:ease-in-out}.___SBar_1e83s_gg_.__color_1e83s_gg_{fill:var(--color_1e83s)}.___SBar_1e83s_gg_.__pattern_1e83s_gg_.__color_1e83s_gg_{fill:var(--pattern_1e83s);stroke:var(--color_1e83s);stroke-width:1px}.___SBar_1e83s_gg_.__hide_1e83s_gg_{display:none}.___SBar_1e83s_gg_.__transparent_1e83s_gg_{opacity:.3}.___SBackground_1e83s_gg_.__onClick_1e83s_gg_,.___SBar_1e83s_gg_.__onClick_1e83s_gg_{cursor:pointer}.___SBackground_1e83s_gg_{fill:var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9)}.___SBarAnnotation_1e83s_gg_{display:flex;justify-content:space-between}.___SBarLabel_1e83s_gg_{color:var(--intergalactic-text-primary, #191b23);margin-right:auto}.___SBarLabel_1e83s_gg_,.___SBarPercent_1e83s_gg_,.___SBarValue_1e83s_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SBarPercent_1e83s_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SBarValue_1e83s_gg_{min-width:52px;display:flex;justify-content:flex-end;color:var(--intergalactic-text-primary, #191b23);text-align:right}.___SCompactHorizontalBarHoverRect_1e83s_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}",
|
|
27
32
|
/*__inner_css_end__*/
|
|
28
|
-
"
|
|
33
|
+
"1e83s_gg_"
|
|
29
34
|
), /*__reshadow_css_end__*/
|
|
30
35
|
{
|
|
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": "
|
|
36
|
+
"__SBar": "___SBar_1e83s_gg_",
|
|
37
|
+
"--duration": "--duration_1e83s",
|
|
38
|
+
"_color": "__color_1e83s_gg_",
|
|
39
|
+
"--color": "--color_1e83s",
|
|
40
|
+
"_pattern": "__pattern_1e83s_gg_",
|
|
41
|
+
"--pattern": "--pattern_1e83s",
|
|
42
|
+
"_hide": "__hide_1e83s_gg_",
|
|
43
|
+
"_transparent": "__transparent_1e83s_gg_",
|
|
44
|
+
"_onClick": "__onClick_1e83s_gg_",
|
|
45
|
+
"__SBackground": "___SBackground_1e83s_gg_",
|
|
46
|
+
"__SBarAnnotation": "___SBarAnnotation_1e83s_gg_",
|
|
47
|
+
"__SBarLabel": "___SBarLabel_1e83s_gg_",
|
|
48
|
+
"__SBarPercent": "___SBarPercent_1e83s_gg_",
|
|
49
|
+
"__SBarValue": "___SBarValue_1e83s_gg_",
|
|
50
|
+
"__SCompactHorizontalBarHoverRect": "___SCompactHorizontalBarHoverRect_1e83s_gg_"
|
|
46
51
|
})
|
|
47
52
|
);
|
|
48
53
|
var MIN_WIDTH = 4;
|
|
49
54
|
var barHeight = 20;
|
|
50
55
|
var hoverOffset = 6;
|
|
51
56
|
var CompactHorizontalBarRoot = /* @__PURE__ */ function(_Component) {
|
|
52
|
-
_inherits(CompactHorizontalBarRoot2, _Component);
|
|
53
|
-
var _super = _createSuper(CompactHorizontalBarRoot2);
|
|
54
57
|
function CompactHorizontalBarRoot2() {
|
|
55
58
|
var _this;
|
|
56
59
|
_classCallCheck(this, CompactHorizontalBarRoot2);
|
|
57
60
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
58
61
|
args[_key] = arguments[_key];
|
|
59
62
|
}
|
|
60
|
-
_this =
|
|
61
|
-
_defineProperty(
|
|
62
|
-
_defineProperty(
|
|
63
|
-
_defineProperty(
|
|
64
|
-
_defineProperty(
|
|
63
|
+
_this = _callSuper(this, CompactHorizontalBarRoot2, [].concat(args));
|
|
64
|
+
_defineProperty(_this, "percentFormatter", null);
|
|
65
|
+
_defineProperty(_this, "percentFormatterLocale", null);
|
|
66
|
+
_defineProperty(_this, "valueFormatter", null);
|
|
67
|
+
_defineProperty(_this, "valueFormatterLocale", null);
|
|
65
68
|
return _this;
|
|
66
69
|
}
|
|
67
|
-
|
|
70
|
+
_inherits(CompactHorizontalBarRoot2, _Component);
|
|
71
|
+
return _createClass(CompactHorizontalBarRoot2, [{
|
|
68
72
|
key: "getBarProps",
|
|
69
73
|
value: function getBarProps(_props, index) {
|
|
70
74
|
return {
|
|
@@ -200,7 +204,7 @@ var CompactHorizontalBarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
200
204
|
}, {
|
|
201
205
|
key: "computeBarData",
|
|
202
206
|
value: function computeBarData(d) {
|
|
203
|
-
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 ?
|
|
207
|
+
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 ? Number.POSITIVE_INFINITY : _this$asProps7$maxBar, size = _this$asProps7.size;
|
|
204
208
|
var offset = typeof offsetProps === "function" ? offsetProps(i) : offsetProps;
|
|
205
209
|
var _scale = _slicedToArray(scale, 2), xScale = _scale[0], yScale = _scale[1];
|
|
206
210
|
var absWidth = xScale(d[x]);
|
|
@@ -251,7 +255,6 @@ var CompactHorizontalBarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
251
255
|
}));
|
|
252
256
|
}
|
|
253
257
|
}]);
|
|
254
|
-
return CompactHorizontalBarRoot2;
|
|
255
258
|
}(Component);
|
|
256
259
|
_defineProperty(CompactHorizontalBarRoot, "displayName", "CompactHorizontalBar");
|
|
257
260
|
_defineProperty(CompactHorizontalBarRoot, "enhance", [uniqueIDEnhancement()]);
|
|
@@ -303,7 +306,7 @@ var BarContext = /* @__PURE__ */ React.createContext({});
|
|
|
303
306
|
function Bar(props) {
|
|
304
307
|
var Children = props.Children, index = props.index, onClick = props.onClick, transparent = props.transparent, hide = props.hide;
|
|
305
308
|
var onClickHandler = React.useCallback(function(event) {
|
|
306
|
-
onClick === null || onClick === void 0
|
|
309
|
+
onClick === null || onClick === void 0 || onClick(index, event);
|
|
307
310
|
}, [onClick, index]);
|
|
308
311
|
var contextValue = React.useMemo(function() {
|
|
309
312
|
return {
|
|
@@ -317,7 +320,7 @@ function Bar(props) {
|
|
|
317
320
|
}, /* @__PURE__ */ React.createElement(Children, null));
|
|
318
321
|
}
|
|
319
322
|
function BarFill(props) {
|
|
320
|
-
var
|
|
323
|
+
var _ref0;
|
|
321
324
|
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;
|
|
322
325
|
var _scale2 = _slicedToArray(scale, 1), xScale = _scale2[0];
|
|
323
326
|
var xRange = xScale.range();
|
|
@@ -330,7 +333,7 @@ function BarFill(props) {
|
|
|
330
333
|
return roundedPath(x, y, width, height, radius, false, true, false, true);
|
|
331
334
|
}, [x, y, height, width, radius]);
|
|
332
335
|
var barProps = React.useContext(BarContext);
|
|
333
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, (
|
|
336
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, (_ref0 = sstyled(styles), /* @__PURE__ */ React.createElement(SBar, _ref0.cn("SBar", {
|
|
334
337
|
"aria-hidden": true,
|
|
335
338
|
"render": "path",
|
|
336
339
|
"d": pathD,
|
|
@@ -348,7 +351,7 @@ function BarFill(props) {
|
|
|
348
351
|
"onClick": callAllEventHandlers(props.onClick, barProps.onClick),
|
|
349
352
|
"transparent": barProps.transparent || props.transparent,
|
|
350
353
|
"hide": barProps.hide || props.hide
|
|
351
|
-
}))), patterns && /* @__PURE__ */ React.createElement(PatternFill,
|
|
354
|
+
}))), patterns && /* @__PURE__ */ React.createElement(PatternFill, _ref0.cn("PatternFill", {
|
|
352
355
|
"id": "".concat(uid, "-").concat(i2, "-pattern"),
|
|
353
356
|
"patternKey": color,
|
|
354
357
|
"color": resolveColor(color),
|
|
@@ -356,7 +359,7 @@ function BarFill(props) {
|
|
|
356
359
|
})));
|
|
357
360
|
}
|
|
358
361
|
function BarBackground(props) {
|
|
359
|
-
var
|
|
362
|
+
var _ref1;
|
|
360
363
|
var SBackground = props.Element, styles = props.styles, scale = props.scale, y = props.y, x = props.x, height = props.height;
|
|
361
364
|
var _scale3 = _slicedToArray(scale, 1), xScale = _scale3[0];
|
|
362
365
|
var xRange = xScale.range();
|
|
@@ -366,7 +369,7 @@ function BarBackground(props) {
|
|
|
366
369
|
return roundedPath(x, y, width, height, radius, false, true, false, true);
|
|
367
370
|
}, [x, y, height, width, radius]);
|
|
368
371
|
var barProps = React.useContext(BarContext);
|
|
369
|
-
return
|
|
372
|
+
return _ref1 = sstyled(styles), /* @__PURE__ */ React.createElement(SBackground, _ref1.cn("SBackground", {
|
|
370
373
|
"aria-hidden": true,
|
|
371
374
|
"render": "path",
|
|
372
375
|
"d": pathD,
|
|
@@ -380,22 +383,20 @@ function BarBackground(props) {
|
|
|
380
383
|
}));
|
|
381
384
|
}
|
|
382
385
|
var Hover = /* @__PURE__ */ function(_Component2) {
|
|
383
|
-
_inherits(Hover2, _Component2);
|
|
384
|
-
var _super2 = _createSuper(Hover2);
|
|
385
386
|
function Hover2() {
|
|
386
387
|
var _this3;
|
|
387
388
|
_classCallCheck(this, Hover2);
|
|
388
389
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
389
390
|
args[_key2] = arguments[_key2];
|
|
390
391
|
}
|
|
391
|
-
_this3 =
|
|
392
|
-
_defineProperty(
|
|
392
|
+
_this3 = _callSuper(this, Hover2, [].concat(args));
|
|
393
|
+
_defineProperty(_this3, "state", {
|
|
393
394
|
index: null
|
|
394
395
|
});
|
|
395
|
-
_defineProperty(
|
|
396
|
-
_defineProperty(
|
|
397
|
-
_defineProperty(
|
|
398
|
-
_defineProperty(
|
|
396
|
+
_defineProperty(_this3, "virtualElement", canUseDOM() ? document.createElement("div") : {});
|
|
397
|
+
_defineProperty(_this3, "unsubscribeMouseMoveRoot", null);
|
|
398
|
+
_defineProperty(_this3, "unsubscribeMouseLeaveRoot", null);
|
|
399
|
+
_defineProperty(_this3, "handlerMouseMoveRoot", trottle(function(e) {
|
|
399
400
|
var _this3$asProps = _this3.asProps, eventEmitter = _this3$asProps.eventEmitter, rootRef = _this3$asProps.rootRef, patterns = _this3$asProps.patterns;
|
|
400
401
|
var point = eventToPoint(e, rootRef.current);
|
|
401
402
|
var clientX = e.clientX, clientY = e.clientY;
|
|
@@ -411,7 +412,7 @@ var Hover = /* @__PURE__ */ function(_Component2) {
|
|
|
411
412
|
eventEmitter.emit("setTooltipVisible", index !== null);
|
|
412
413
|
});
|
|
413
414
|
}));
|
|
414
|
-
_defineProperty(
|
|
415
|
+
_defineProperty(_this3, "handlerMouseLeaveRoot", trottle(function() {
|
|
415
416
|
_this3.setState({
|
|
416
417
|
index: null
|
|
417
418
|
}, function() {
|
|
@@ -420,7 +421,8 @@ var Hover = /* @__PURE__ */ function(_Component2) {
|
|
|
420
421
|
}));
|
|
421
422
|
return _this3;
|
|
422
423
|
}
|
|
423
|
-
|
|
424
|
+
_inherits(Hover2, _Component2);
|
|
425
|
+
return _createClass(Hover2, [{
|
|
424
426
|
key: "generateGetBoundingClientRect",
|
|
425
427
|
value: function generateGetBoundingClientRect() {
|
|
426
428
|
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
@@ -439,7 +441,7 @@ var Hover = /* @__PURE__ */ function(_Component2) {
|
|
|
439
441
|
}, {
|
|
440
442
|
key: "getIndex",
|
|
441
443
|
value: function getIndex(point) {
|
|
442
|
-
var _this$
|
|
444
|
+
var _this$asProps0 = this.asProps, data = _this$asProps0.data, getBarData = _this$asProps0.getBarData;
|
|
443
445
|
for (var _i = 0; _i < data.length; _i++) {
|
|
444
446
|
var bar = getBarData(_i);
|
|
445
447
|
if (point[0] >= bar.x && point[0] <= bar.x + bar.fullWidth && point[1] >= bar.y && point[1] <= bar.y + bar.height) {
|
|
@@ -472,14 +474,14 @@ var Hover = /* @__PURE__ */ function(_Component2) {
|
|
|
472
474
|
}, {
|
|
473
475
|
key: "render",
|
|
474
476
|
value: function render() {
|
|
475
|
-
var
|
|
476
|
-
var _this$
|
|
477
|
+
var _ref10;
|
|
478
|
+
var _this$asProps1 = this.asProps, styles = _this$asProps1.styles, getBarData = _this$asProps1.getBarData, render2 = _this$asProps1.render;
|
|
477
479
|
if (!render2) return null;
|
|
478
480
|
var index = this.state.index;
|
|
479
481
|
var SCompactHorizontalBarHoverRect = this.Element;
|
|
480
482
|
if (index === null) return null;
|
|
481
483
|
var bar = getBarData(index);
|
|
482
|
-
return
|
|
484
|
+
return _ref10 = sstyled(styles), /* @__PURE__ */ React.createElement(SCompactHorizontalBarHoverRect, _ref10.cn("SCompactHorizontalBarHoverRect", {
|
|
483
485
|
"render": "rect",
|
|
484
486
|
"x": bar.x,
|
|
485
487
|
"y": bar.y + bar.height - barHeight - hoverOffset * 2,
|
|
@@ -488,13 +490,12 @@ var Hover = /* @__PURE__ */ function(_Component2) {
|
|
|
488
490
|
}));
|
|
489
491
|
}
|
|
490
492
|
}]);
|
|
491
|
-
return Hover2;
|
|
492
493
|
}(Component);
|
|
493
494
|
var CompactHorizontalBarTooltip = function CompactHorizontalBarTooltip2(props) {
|
|
494
|
-
var _ref4 = arguments[0],
|
|
495
|
+
var _ref4 = arguments[0], _ref11;
|
|
495
496
|
if (!props.render) return null;
|
|
496
497
|
var SCompactHorizontalBarRadarTooltip = Tooltip;
|
|
497
|
-
return
|
|
498
|
+
return _ref11 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SCompactHorizontalBarRadarTooltip, _ref11.cn("SCompactHorizontalBarRadarTooltip", _objectSpread({}, assignProps({
|
|
498
499
|
"tag": CompactHorizontalBar.Hover,
|
|
499
500
|
"excludeAnchorProps": true
|
|
500
501
|
}, _ref4))));
|
package/lib/esm/Donut.mjs
CHANGED
|
@@ -2,42 +2,46 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
-
import
|
|
5
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
6
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
|
|
7
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
6
8
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
10
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
10
|
-
import { sstyled,
|
|
11
|
-
import React from "react";
|
|
12
|
-
import { arc, pie } from "d3-shape";
|
|
13
|
-
import { interpolate } from "d3-interpolate";
|
|
14
|
-
import { transition } from "d3-transition";
|
|
11
|
+
import { sstyled, assignProps, Component } from "@semcore/core";
|
|
15
12
|
import canUseDOM from "@semcore/core/lib/utils/canUseDOM";
|
|
16
13
|
import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
17
14
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
15
|
+
import { interpolate } from "d3-interpolate";
|
|
16
|
+
import { arc, pie } from "d3-shape";
|
|
17
|
+
import { transition } from "d3-transition";
|
|
18
|
+
import React from "react";
|
|
18
19
|
import createElement from "./createElement.mjs";
|
|
19
|
-
import { getChartDefaultColorName } from "./utils.mjs";
|
|
20
|
-
import Tooltip from "./Tooltip.mjs";
|
|
21
20
|
import { PatternFill } from "./Pattern.mjs";
|
|
21
|
+
import Tooltip from "./Tooltip.mjs";
|
|
22
|
+
import { getChartDefaultColorName } from "./utils.mjs";
|
|
22
23
|
var _excluded = ["Element", "styles", "d3Arc", "data", "color", "$animationActivePie", "active", "d3ArcOut", "name", "dataKey", "dataHintsHandler", "transparent", "innerRadius", "outerRadius", "resolveColor", "halfsize", "uid", "patterns"];
|
|
24
|
+
function _callSuper(t, o, e) {
|
|
25
|
+
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
26
|
+
}
|
|
23
27
|
/*!__reshadow-styles__:"./style/donut.shadow.css"*/
|
|
24
28
|
var style = (
|
|
25
29
|
/*__reshadow_css_start__*/
|
|
26
30
|
(sstyled.insert(
|
|
27
31
|
/*__inner_css_start__*/
|
|
28
|
-
".
|
|
32
|
+
".___SPie_1fpvw_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPie_1fpvw_gg_.__color_1fpvw_gg_{fill:var(--color_1fpvw)}.___SPie_1fpvw_gg_.__pattern_1fpvw_gg_.__color_1fpvw_gg_{fill:var(--pattern_1fpvw);stroke:var(--color_1fpvw);stroke-width:1px}.___SPie_1fpvw_gg_.__transparent_1fpvw_gg_{opacity:.3}.___SEmptyData_1fpvw_gg_{fill:var(--intergalactic-chart-palette-order-null, #e0e1e9)}.___SEmptyData_1fpvw_gg_.__color_1fpvw_gg_{fill:var(--color_1fpvw)}.___SLabel_1fpvw_gg_{text-anchor:middle;vertical-anchor:middle;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}",
|
|
29
33
|
/*__inner_css_end__*/
|
|
30
|
-
"
|
|
34
|
+
"1fpvw_gg_"
|
|
31
35
|
), /*__reshadow_css_end__*/
|
|
32
36
|
{
|
|
33
|
-
"__SPie": "
|
|
34
|
-
"_color": "
|
|
35
|
-
"--color": "--
|
|
36
|
-
"_pattern": "
|
|
37
|
-
"--pattern": "--
|
|
38
|
-
"_transparent": "
|
|
39
|
-
"__SEmptyData": "
|
|
40
|
-
"__SLabel": "
|
|
37
|
+
"__SPie": "___SPie_1fpvw_gg_",
|
|
38
|
+
"_color": "__color_1fpvw_gg_",
|
|
39
|
+
"--color": "--color_1fpvw",
|
|
40
|
+
"_pattern": "__pattern_1fpvw_gg_",
|
|
41
|
+
"--pattern": "--pattern_1fpvw",
|
|
42
|
+
"_transparent": "__transparent_1fpvw_gg_",
|
|
43
|
+
"__SEmptyData": "___SEmptyData_1fpvw_gg_",
|
|
44
|
+
"__SLabel": "___SLabel_1fpvw_gg_"
|
|
41
45
|
})
|
|
42
46
|
);
|
|
43
47
|
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
@@ -87,19 +91,17 @@ function getOuterRadius(_ref8) {
|
|
|
87
91
|
return minORmax(width - increaseFactor * 2, height - increaseFactor * 2) / 2;
|
|
88
92
|
}
|
|
89
93
|
var DonutRoot = /* @__PURE__ */ function(_Component) {
|
|
90
|
-
_inherits(DonutRoot2, _Component);
|
|
91
|
-
var _super = _createSuper(DonutRoot2);
|
|
92
94
|
function DonutRoot2() {
|
|
93
95
|
var _this;
|
|
94
96
|
_classCallCheck(this, DonutRoot2);
|
|
95
97
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
96
98
|
args[_key] = arguments[_key];
|
|
97
99
|
}
|
|
98
|
-
_this =
|
|
99
|
-
_defineProperty(
|
|
100
|
-
_defineProperty(
|
|
101
|
-
_defineProperty(
|
|
102
|
-
_defineProperty(
|
|
100
|
+
_this = _callSuper(this, DonutRoot2, [].concat(args));
|
|
101
|
+
_defineProperty(_this, "virtualElement", canUseDOM() ? document.createElement("div") : {});
|
|
102
|
+
_defineProperty(_this, "activeIndexPie", void 0);
|
|
103
|
+
_defineProperty(_this, "canAnimatedHover", false);
|
|
104
|
+
_defineProperty(_this, "bindHandlerTooltip", function(visible, props, tooltipProps) {
|
|
103
105
|
return function(_ref9) {
|
|
104
106
|
var clientX = _ref9.clientX, clientY = _ref9.clientY;
|
|
105
107
|
var eventEmitter = _this.asProps.eventEmitter;
|
|
@@ -108,8 +110,8 @@ var DonutRoot = /* @__PURE__ */ function(_Component) {
|
|
|
108
110
|
eventEmitter.emit("setTooltipVisible", visible);
|
|
109
111
|
};
|
|
110
112
|
});
|
|
111
|
-
_defineProperty(
|
|
112
|
-
var data =
|
|
113
|
+
_defineProperty(_this, "animationActivePie", function(_ref0) {
|
|
114
|
+
var data = _ref0.data, active = _ref0.active, selector = _ref0.selector, element = _ref0.element;
|
|
113
115
|
var _this$asProps = _this.asProps, duration = _this$asProps.duration, innerRadius = _this$asProps.innerRadius, d3Arc = _this$asProps.d3Arc, paddingAngle = _this$asProps.paddingAngle;
|
|
114
116
|
var outerRadius = d3Arc.outerRadius()();
|
|
115
117
|
var outerRadiusStartEnd = active ? [+element.dataset["currentRadius"] || outerRadius, outerRadius + increaseFactor] : [+element.dataset["currentRadius"] || outerRadius, outerRadius];
|
|
@@ -125,8 +127,8 @@ var DonutRoot = /* @__PURE__ */ function(_Component) {
|
|
|
125
127
|
});
|
|
126
128
|
}
|
|
127
129
|
});
|
|
128
|
-
_defineProperty(
|
|
129
|
-
_defineProperty(
|
|
130
|
+
_defineProperty(_this, "animationTimeout", null);
|
|
131
|
+
_defineProperty(_this, "animationUpdatePie", function() {
|
|
130
132
|
clearTimeout(_this.animationTimeout);
|
|
131
133
|
_this.animationTimeout = setTimeout(function() {
|
|
132
134
|
var _this$asProps2 = _this.asProps, duration = _this$asProps2.duration, d3Arc = _this$asProps2.d3Arc, halfsize = _this$asProps2.halfsize, d3ArcOut = _this$asProps2.d3ArcOut;
|
|
@@ -150,7 +152,8 @@ var DonutRoot = /* @__PURE__ */ function(_Component) {
|
|
|
150
152
|
});
|
|
151
153
|
return _this;
|
|
152
154
|
}
|
|
153
|
-
|
|
155
|
+
_inherits(DonutRoot2, _Component);
|
|
156
|
+
return _createClass(DonutRoot2, [{
|
|
154
157
|
key: "id",
|
|
155
158
|
get: function get() {
|
|
156
159
|
var _this$asProps3 = this.asProps, uid = _this$asProps3.uid, id = _this$asProps3.id;
|
|
@@ -184,12 +187,12 @@ var DonutRoot = /* @__PURE__ */ function(_Component) {
|
|
|
184
187
|
}
|
|
185
188
|
return acc;
|
|
186
189
|
}, []);
|
|
187
|
-
pieData = Object.entries(data).filter(function(
|
|
188
|
-
var
|
|
190
|
+
pieData = Object.entries(data).filter(function(_ref1) {
|
|
191
|
+
var _ref10 = _slicedToArray(_ref1, 2), key = _ref10[0], value = _ref10[1];
|
|
189
192
|
return keys.includes(key) && value > 0;
|
|
190
|
-
}).sort(function(
|
|
191
|
-
var
|
|
192
|
-
var
|
|
193
|
+
}).sort(function(_ref11, _ref12) {
|
|
194
|
+
var _ref13 = _slicedToArray(_ref11, 1), a = _ref13[0];
|
|
195
|
+
var _ref14 = _slicedToArray(_ref12, 1), b = _ref14[0];
|
|
193
196
|
return keys.indexOf(a) > keys.indexOf(b) ? 1 : -1;
|
|
194
197
|
});
|
|
195
198
|
}
|
|
@@ -299,24 +302,22 @@ var DonutRoot = /* @__PURE__ */ function(_Component) {
|
|
|
299
302
|
});
|
|
300
303
|
}
|
|
301
304
|
}]);
|
|
302
|
-
return DonutRoot2;
|
|
303
305
|
}(Component);
|
|
304
306
|
_defineProperty(DonutRoot, "displayName", "Donut");
|
|
305
307
|
_defineProperty(DonutRoot, "style", style);
|
|
306
308
|
_defineProperty(DonutRoot, "enhance", [uniqueIDEnhancement()]);
|
|
307
|
-
_defineProperty(DonutRoot, "defaultProps", function(
|
|
308
|
-
var
|
|
309
|
+
_defineProperty(DonutRoot, "defaultProps", function(_ref18) {
|
|
310
|
+
var _ref18$innerRadius = _ref18.innerRadius, innerRadius = _ref18$innerRadius === void 0 ? 0 : _ref18$innerRadius, _ref18$paddingAngle = _ref18.paddingAngle, paddingAngle = _ref18$paddingAngle === void 0 ? 0 : _ref18$paddingAngle, outerRadius = _ref18.outerRadius, _ref18$halfsize = _ref18.halfsize, halfsize = _ref18$halfsize === void 0 ? false : _ref18$halfsize, size = _ref18.$rootProps.size;
|
|
309
311
|
var d3Arc = arc().outerRadius(outerRadius || getOuterRadius({
|
|
310
312
|
size,
|
|
311
|
-
halfsize
|
|
312
|
-
outerRadius
|
|
313
|
+
halfsize
|
|
313
314
|
})).innerRadius(innerRadius).padAngle(paddingAngle);
|
|
314
315
|
var d3ArcOut = arc().outerRadius((outerRadius || getOuterRadius({
|
|
315
316
|
size,
|
|
316
317
|
halfsize
|
|
317
318
|
})) + increaseFactor).innerRadius(innerRadius).padAngle(paddingAngle);
|
|
318
|
-
var d3Pie = pie().sort(null).value(function(
|
|
319
|
-
var
|
|
319
|
+
var d3Pie = pie().sort(null).value(function(_ref19) {
|
|
320
|
+
var _ref20 = _slicedToArray(_ref19, 2), value = _ref20[1];
|
|
320
321
|
return value;
|
|
321
322
|
});
|
|
322
323
|
d3Pie[DEFAULT_INSTANCE] = true;
|
|
@@ -331,9 +332,9 @@ _defineProperty(DonutRoot, "defaultProps", function(_ref20) {
|
|
|
331
332
|
paddingAngle
|
|
332
333
|
};
|
|
333
334
|
});
|
|
334
|
-
function Pie(
|
|
335
|
+
function Pie(_ref15) {
|
|
335
336
|
var _ref2;
|
|
336
|
-
var SPie =
|
|
337
|
+
var SPie = _ref15.Element, styles = _ref15.styles, d3Arc = _ref15.d3Arc, data = _ref15.data, color = _ref15.color, $animationActivePie = _ref15.$animationActivePie, active = _ref15.active, d3ArcOut = _ref15.d3ArcOut, name = _ref15.name, dataKey = _ref15.dataKey, dataHintsHandler = _ref15.dataHintsHandler, transparent = _ref15.transparent, innerRadius = _ref15.innerRadius, outerRadius = _ref15.outerRadius, resolveColor = _ref15.resolveColor, halfsize = _ref15.halfsize, uid = _ref15.uid, patterns = _ref15.patterns, other = _objectWithoutProperties(_ref15, _excluded);
|
|
337
338
|
var _React$useState = React.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), isMount = _React$useState2[0], setIsMount = _React$useState2[1];
|
|
338
339
|
var pieRef = React.useRef(null);
|
|
339
340
|
React.useEffect(function() {
|
|
@@ -373,9 +374,9 @@ function Pie(_ref17) {
|
|
|
373
374
|
"patterns": patterns
|
|
374
375
|
})));
|
|
375
376
|
}
|
|
376
|
-
function EmptyData(
|
|
377
|
+
function EmptyData(_ref16) {
|
|
377
378
|
var _ref3;
|
|
378
|
-
var SEmptyData =
|
|
379
|
+
var SEmptyData = _ref16.Element, styles = _ref16.styles, d3Arc = _ref16.d3Arc, color = _ref16.color, resolveColor = _ref16.resolveColor;
|
|
379
380
|
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SEmptyData, _ref3.cn("SEmptyData", {
|
|
380
381
|
"render": "path",
|
|
381
382
|
"color": resolveColor(color),
|
|
@@ -385,9 +386,9 @@ function EmptyData(_ref18) {
|
|
|
385
386
|
})
|
|
386
387
|
}));
|
|
387
388
|
}
|
|
388
|
-
function Label(
|
|
389
|
+
function Label(_ref17) {
|
|
389
390
|
var _ref4;
|
|
390
|
-
var SLabel =
|
|
391
|
+
var SLabel = _ref17.Element, styles = _ref17.styles, Children = _ref17.Children, children = _ref17.children, label = _ref17.label, dataHintsHandler = _ref17.dataHintsHandler, _ref17$x = _ref17.x, x = _ref17$x === void 0 ? 0 : _ref17$x, _ref17$y = _ref17.y, y = _ref17$y === void 0 ? 0 : _ref17$y;
|
|
391
392
|
dataHintsHandler.setTitle("vertical", label || children);
|
|
392
393
|
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SLabel, _ref4.cn("SLabel", {
|
|
393
394
|
"render": "text",
|