@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/es6/RadialTree.js
CHANGED
|
@@ -4,51 +4,54 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
4
4
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
5
5
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
6
6
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
7
|
-
import
|
|
7
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
8
|
+
import _isNativeReflectConstruct from "@babel/runtime/helpers/isNativeReflectConstruct";
|
|
9
|
+
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
10
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
9
|
-
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
10
11
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
11
12
|
import { sstyled as _sstyled } from "@semcore/core";
|
|
12
13
|
var _excluded = ["data"];
|
|
13
|
-
|
|
14
|
-
import { transition } from 'd3-transition';
|
|
14
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
15
15
|
import { Component, sstyled } from '@semcore/core';
|
|
16
|
-
import uniqueIDEnhancement from '@semcore/core/lib/utils/uniqueID';
|
|
17
16
|
import assignProps from '@semcore/core/lib/utils/assignProps';
|
|
18
|
-
import getOriginChildren from '@semcore/core/lib/utils/getOriginChildren';
|
|
19
17
|
import canUseDOM from '@semcore/core/lib/utils/canUseDOM';
|
|
18
|
+
import getOriginChildren from '@semcore/core/lib/utils/getOriginChildren';
|
|
19
|
+
import uniqueIDEnhancement from '@semcore/core/lib/utils/uniqueID';
|
|
20
|
+
import { transition } from 'd3-transition';
|
|
21
|
+
import React from 'react';
|
|
20
22
|
import createElement from './createElement';
|
|
21
|
-
import { getChartDefaultColorName, measureText } from './utils';
|
|
22
23
|
import { PatternSymbol, getPatternSymbolSize } from './Pattern';
|
|
23
24
|
/*!__reshadow-styles__:"./style/radial-tree.shadow.css"*/
|
|
24
|
-
var style = (
|
|
25
|
+
var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SRadian_1k51n_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1k51n_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1k51n_gg_.__stroke_1k51n_gg_{stroke:var(--stroke_1k51n)}.___SLine_1k51n_gg_.__transparent_1k51n_gg_{opacity:.3}.___SCap_1k51n_gg_{transition:r .1s}.___SCap_1k51n_gg_.__pattern_1k51n_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_1k51n_gg_.__transparent_1k51n_gg_,.___SIcon_1k51n_gg_.__transparent_1k51n_gg_,.___SLabel_1k51n_gg_.__transparent_1k51n_gg_{opacity:.3}.___SLabel_1k51n_gg_{fill:var(--color_1k51n)}@media (hover:hover){.___SRadian_1k51n_gg_:hover .___SLabel_1k51n_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1k51n_gg_{transition:none}}", /*__inner_css_end__*/"1k51n_gg_"),
|
|
25
26
|
/*__reshadow_css_end__*/
|
|
26
27
|
{
|
|
27
|
-
"__SRadian": "
|
|
28
|
-
"__SLine": "
|
|
29
|
-
"_stroke": "
|
|
30
|
-
"--stroke": "--
|
|
31
|
-
"_transparent": "
|
|
32
|
-
"__SCap": "
|
|
33
|
-
"_pattern": "
|
|
34
|
-
"__SIcon": "
|
|
35
|
-
"__SLabel": "
|
|
36
|
-
"--color": "--
|
|
37
|
-
"__SLineCap": "
|
|
28
|
+
"__SRadian": "___SRadian_1k51n_gg_",
|
|
29
|
+
"__SLine": "___SLine_1k51n_gg_",
|
|
30
|
+
"_stroke": "__stroke_1k51n_gg_",
|
|
31
|
+
"--stroke": "--stroke_1k51n",
|
|
32
|
+
"_transparent": "__transparent_1k51n_gg_",
|
|
33
|
+
"__SCap": "___SCap_1k51n_gg_",
|
|
34
|
+
"_pattern": "__pattern_1k51n_gg_",
|
|
35
|
+
"__SIcon": "___SIcon_1k51n_gg_",
|
|
36
|
+
"__SLabel": "___SLabel_1k51n_gg_",
|
|
37
|
+
"--color": "--color_1k51n",
|
|
38
|
+
"__SLineCap": "___SLineCap_1k51n_gg_"
|
|
38
39
|
});
|
|
40
|
+
import { getChartDefaultColorName, measureText } from './utils';
|
|
39
41
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
|
42
|
+
|
|
43
|
+
/** @deprecated */
|
|
40
44
|
var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
41
|
-
_inherits(RadialTreeBase, _Component);
|
|
42
|
-
var _super = _createSuper(RadialTreeBase);
|
|
43
45
|
function RadialTreeBase(props) {
|
|
44
46
|
var _this;
|
|
45
47
|
_classCallCheck(this, RadialTreeBase);
|
|
46
|
-
_this =
|
|
47
|
-
_defineProperty(
|
|
48
|
-
_this.handleRadianClick = _this.handleRadianClick.bind(
|
|
48
|
+
_this = _callSuper(this, RadialTreeBase, [props]);
|
|
49
|
+
_defineProperty(_this, "Element", void 0);
|
|
50
|
+
_this.handleRadianClick = _this.handleRadianClick.bind(_this);
|
|
49
51
|
return _this;
|
|
50
52
|
}
|
|
51
|
-
|
|
53
|
+
_inherits(RadialTreeBase, _Component);
|
|
54
|
+
return _createClass(RadialTreeBase, [{
|
|
52
55
|
key: "uncontrolledProps",
|
|
53
56
|
value: function uncontrolledProps() {
|
|
54
57
|
return {
|
|
@@ -65,7 +68,7 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
65
68
|
if (!canUseDOM()) return;
|
|
66
69
|
var preferReduceMotion = (_window$matchMedia = window.matchMedia('(prefers-reduced-motion: reduce)')) === null || _window$matchMedia === void 0 ? void 0 : _window$matchMedia.matches;
|
|
67
70
|
|
|
68
|
-
/** using `!(>)` instead of `<=` to get true on NaN and non numbers stuff */
|
|
71
|
+
/** using `!(>)` instead of `<=` to get true on Number.NaN and non numbers stuff */
|
|
69
72
|
if (!(duration > 0)) return;
|
|
70
73
|
if (preferReduceMotion) return;
|
|
71
74
|
var circlesAnimation = transition().selection().selectAll("[data-radial-animation=".concat(uid, "-cap-circle]")).interrupt();
|
|
@@ -78,13 +81,13 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
78
81
|
var labelsNodes = linesAnimation.nodes();
|
|
79
82
|
if (circlesNodes.length > 0) {
|
|
80
83
|
var attrs = circlesNodes.map(function (node) {
|
|
81
|
-
var _lineNode$x, _lineNode$
|
|
82
|
-
var radianIndex = parseInt(node.dataset.radianIndex, 10);
|
|
84
|
+
var _lineNode$x, _lineNode$y;
|
|
85
|
+
var radianIndex = Number.parseInt(node.dataset.radianIndex, 10);
|
|
83
86
|
var lineNode = linesNodes[radianIndex];
|
|
84
87
|
return {
|
|
85
88
|
from: {
|
|
86
|
-
cx: (_lineNode$x = lineNode.x1) === null || _lineNode$x === void 0
|
|
87
|
-
cy: (_lineNode$y = lineNode.y1) === null || _lineNode$y === void 0
|
|
89
|
+
cx: (_lineNode$x = lineNode.x1) === null || _lineNode$x === void 0 || (_lineNode$x = _lineNode$x.baseVal) === null || _lineNode$x === void 0 ? void 0 : _lineNode$x.value,
|
|
90
|
+
cy: (_lineNode$y = lineNode.y1) === null || _lineNode$y === void 0 || (_lineNode$y = _lineNode$y.baseVal) === null || _lineNode$y === void 0 ? void 0 : _lineNode$y.value
|
|
88
91
|
},
|
|
89
92
|
to: {
|
|
90
93
|
cx: node.dataset['cx'],
|
|
@@ -98,25 +101,29 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
98
101
|
}).attr('cy', function (_, index) {
|
|
99
102
|
var _attrs$index$from2;
|
|
100
103
|
return (_attrs$index$from2 = attrs[index].from) === null || _attrs$index$from2 === void 0 ? void 0 : _attrs$index$from2.cy;
|
|
101
|
-
}).transition().duration(duration).attr('opacity', 1)
|
|
104
|
+
}).transition().duration(duration).attr('opacity', 1)
|
|
105
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
106
|
+
.attr('cx', function (_, index) {
|
|
102
107
|
var _attrs$index$to;
|
|
103
108
|
return (_attrs$index$to = attrs[index].to) === null || _attrs$index$to === void 0 ? void 0 : _attrs$index$to.cx;
|
|
104
|
-
})
|
|
109
|
+
})
|
|
110
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
111
|
+
.attr('cy', function (_, index) {
|
|
105
112
|
var _attrs$index$to2;
|
|
106
113
|
return (_attrs$index$to2 = attrs[index].to) === null || _attrs$index$to2 === void 0 ? void 0 : _attrs$index$to2.cy;
|
|
107
114
|
});
|
|
108
115
|
}
|
|
109
116
|
if (iconsNodes.length > 0) {
|
|
110
117
|
var _attrs = iconsNodes.map(function (node) {
|
|
111
|
-
var _node$width, _node$
|
|
112
|
-
var width = (_node$width = node.width) === null || _node$width === void 0
|
|
113
|
-
var height = (_node$height = node.height) === null || _node$height === void 0
|
|
114
|
-
var radianIndex = parseInt(node.dataset.radianIndex, 10);
|
|
118
|
+
var _node$width, _node$height, _lineNode$x2, _lineNode$y2;
|
|
119
|
+
var width = (_node$width = node.width) === null || _node$width === void 0 || (_node$width = _node$width.baseVal) === null || _node$width === void 0 ? void 0 : _node$width.value;
|
|
120
|
+
var height = (_node$height = node.height) === null || _node$height === void 0 || (_node$height = _node$height.baseVal) === null || _node$height === void 0 ? void 0 : _node$height.value;
|
|
121
|
+
var radianIndex = Number.parseInt(node.dataset.radianIndex, 10);
|
|
115
122
|
var lineNode = linesNodes[radianIndex];
|
|
116
123
|
return {
|
|
117
124
|
from: {
|
|
118
|
-
x: ((_lineNode$x2 = lineNode.x1) === null || _lineNode$x2 === void 0
|
|
119
|
-
y: ((_lineNode$y2 = lineNode.y1) === null || _lineNode$y2 === void 0
|
|
125
|
+
x: ((_lineNode$x2 = lineNode.x1) === null || _lineNode$x2 === void 0 || (_lineNode$x2 = _lineNode$x2.baseVal) === null || _lineNode$x2 === void 0 ? void 0 : _lineNode$x2.value) - width / 2,
|
|
126
|
+
y: ((_lineNode$y2 = lineNode.y1) === null || _lineNode$y2 === void 0 || (_lineNode$y2 = _lineNode$y2.baseVal) === null || _lineNode$y2 === void 0 ? void 0 : _lineNode$y2.value) - height / 2
|
|
120
127
|
},
|
|
121
128
|
to: {
|
|
122
129
|
x: node.dataset['x'],
|
|
@@ -124,27 +131,35 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
124
131
|
}
|
|
125
132
|
};
|
|
126
133
|
});
|
|
127
|
-
iconsAnimation.attr('opacity', 0)
|
|
134
|
+
iconsAnimation.attr('opacity', 0)
|
|
135
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
136
|
+
.attr('x', function (_, index) {
|
|
128
137
|
var _attrs$index$from3;
|
|
129
138
|
return (_attrs$index$from3 = _attrs[index].from) === null || _attrs$index$from3 === void 0 ? void 0 : _attrs$index$from3.x;
|
|
130
|
-
})
|
|
139
|
+
})
|
|
140
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
141
|
+
.attr('y', function (_, index) {
|
|
131
142
|
var _attrs$index$from4;
|
|
132
143
|
return (_attrs$index$from4 = _attrs[index].from) === null || _attrs$index$from4 === void 0 ? void 0 : _attrs$index$from4.y;
|
|
133
|
-
}).transition().duration(duration).attr('opacity', 1)
|
|
144
|
+
}).transition().duration(duration).attr('opacity', 1)
|
|
145
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
146
|
+
.attr('x', function (_, index) {
|
|
134
147
|
var _attrs$index$to3;
|
|
135
148
|
return (_attrs$index$to3 = _attrs[index].to) === null || _attrs$index$to3 === void 0 ? void 0 : _attrs$index$to3.x;
|
|
136
|
-
})
|
|
149
|
+
})
|
|
150
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
151
|
+
.attr('y', function (_, index) {
|
|
137
152
|
var _attrs$index$to4;
|
|
138
153
|
return (_attrs$index$to4 = _attrs[index].to) === null || _attrs$index$to4 === void 0 ? void 0 : _attrs$index$to4.y;
|
|
139
154
|
});
|
|
140
155
|
}
|
|
141
156
|
if (linesNodes.length > 0) {
|
|
142
157
|
var _attrs2 = linesNodes.map(function (node) {
|
|
143
|
-
var _node$x, _node$
|
|
158
|
+
var _node$x, _node$y;
|
|
144
159
|
return {
|
|
145
160
|
from: {
|
|
146
|
-
x2: (_node$x = node.x1) === null || _node$x === void 0
|
|
147
|
-
y2: (_node$y = node.y1) === null || _node$y === void 0
|
|
161
|
+
x2: (_node$x = node.x1) === null || _node$x === void 0 || (_node$x = _node$x.baseVal) === null || _node$x === void 0 ? void 0 : _node$x.value,
|
|
162
|
+
y2: (_node$y = node.y1) === null || _node$y === void 0 || (_node$y = _node$y.baseVal) === null || _node$y === void 0 ? void 0 : _node$y.value
|
|
148
163
|
},
|
|
149
164
|
to: {
|
|
150
165
|
x2: node.dataset['x2'],
|
|
@@ -152,16 +167,24 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
152
167
|
}
|
|
153
168
|
};
|
|
154
169
|
});
|
|
155
|
-
linesAnimation.attr('opacity', 0)
|
|
170
|
+
linesAnimation.attr('opacity', 0)
|
|
171
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
172
|
+
.attr('x2', function (_, index) {
|
|
156
173
|
var _attrs2$index$from;
|
|
157
174
|
return (_attrs2$index$from = _attrs2[index].from) === null || _attrs2$index$from === void 0 ? void 0 : _attrs2$index$from.x2;
|
|
158
|
-
})
|
|
175
|
+
})
|
|
176
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
177
|
+
.attr('y2', function (_, index) {
|
|
159
178
|
var _attrs2$index$from2;
|
|
160
179
|
return (_attrs2$index$from2 = _attrs2[index].from) === null || _attrs2$index$from2 === void 0 ? void 0 : _attrs2$index$from2.y2;
|
|
161
|
-
}).transition().duration(duration).attr('opacity', 1)
|
|
180
|
+
}).transition().duration(duration).attr('opacity', 1)
|
|
181
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
182
|
+
.attr('x2', function (_, index) {
|
|
162
183
|
var _attrs2$index$to;
|
|
163
184
|
return (_attrs2$index$to = _attrs2[index].to) === null || _attrs2$index$to === void 0 ? void 0 : _attrs2$index$to.x2;
|
|
164
|
-
})
|
|
185
|
+
})
|
|
186
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
187
|
+
.attr('y2', function (_, index) {
|
|
165
188
|
var _attrs2$index$to2;
|
|
166
189
|
return (_attrs2$index$to2 = _attrs2[index].to) === null || _attrs2$index$to2 === void 0 ? void 0 : _attrs2$index$to2.y2;
|
|
167
190
|
});
|
|
@@ -198,8 +221,8 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
198
221
|
var _this$asProps2 = this.asProps,
|
|
199
222
|
data = _this$asProps2.data,
|
|
200
223
|
textSize = _this$asProps2.textSize;
|
|
201
|
-
var widths = data.map(function (
|
|
202
|
-
var label =
|
|
224
|
+
var widths = data.map(function (_ref0) {
|
|
225
|
+
var label = _ref0.label;
|
|
203
226
|
return measureText(label, textSize);
|
|
204
227
|
});
|
|
205
228
|
return Math.max.apply(Math, _toConsumableArray(widths));
|
|
@@ -249,7 +272,6 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
249
272
|
}), /*#__PURE__*/React.createElement(Children, _ref.cn("Children", {})));
|
|
250
273
|
}
|
|
251
274
|
}]);
|
|
252
|
-
return RadialTreeBase;
|
|
253
275
|
}(Component);
|
|
254
276
|
/** @deprecated */
|
|
255
277
|
_defineProperty(RadialTreeBase, "displayName", 'RadialTree');
|
|
@@ -267,21 +289,20 @@ _defineProperty(RadialTreeBase, "defaultProps", {
|
|
|
267
289
|
defaultActiveKey: null
|
|
268
290
|
});
|
|
269
291
|
var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
270
|
-
_inherits(RadialTreeRadian, _Component2);
|
|
271
|
-
var _super2 = _createSuper(RadialTreeRadian);
|
|
272
292
|
function RadialTreeRadian(props) {
|
|
273
293
|
var _this3;
|
|
274
294
|
_classCallCheck(this, RadialTreeRadian);
|
|
275
|
-
_this3 =
|
|
276
|
-
_defineProperty(
|
|
277
|
-
_this3.renderRadian = _this3.renderRadian.bind(
|
|
295
|
+
_this3 = _callSuper(this, RadialTreeRadian, [props]);
|
|
296
|
+
_defineProperty(_this3, "Element", void 0);
|
|
297
|
+
_this3.renderRadian = _this3.renderRadian.bind(_this3);
|
|
278
298
|
return _this3;
|
|
279
299
|
}
|
|
280
|
-
|
|
300
|
+
_inherits(RadialTreeRadian, _Component2);
|
|
301
|
+
return _createClass(RadialTreeRadian, [{
|
|
281
302
|
key: "getInteractiveAreaProps",
|
|
282
|
-
value: function getInteractiveAreaProps(
|
|
303
|
+
value: function getInteractiveAreaProps(_ref10, index) {
|
|
283
304
|
var _$rootProps$data;
|
|
284
|
-
var $rootProps =
|
|
305
|
+
var $rootProps = _ref10.$rootProps;
|
|
285
306
|
var data = (_$rootProps$data = $rootProps.data) === null || _$rootProps$data === void 0 ? void 0 : _$rootProps$data[index];
|
|
286
307
|
var _this$computeRadianPo = this.computeRadianPosition(data, index),
|
|
287
308
|
xStart = _this$computeRadianPo.xStart,
|
|
@@ -299,9 +320,9 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
299
320
|
}
|
|
300
321
|
}, {
|
|
301
322
|
key: "getLineProps",
|
|
302
|
-
value: function getLineProps(
|
|
303
|
-
var _$rootProps$data2, _color
|
|
304
|
-
var $rootProps =
|
|
323
|
+
value: function getLineProps(_ref11, index) {
|
|
324
|
+
var _$rootProps$data2, _color;
|
|
325
|
+
var $rootProps = _ref11.$rootProps;
|
|
305
326
|
var data = (_$rootProps$data2 = $rootProps.data) === null || _$rootProps$data2 === void 0 ? void 0 : _$rootProps$data2[index];
|
|
306
327
|
var _this$computeRadianPo2 = this.computeRadianPosition(data, index),
|
|
307
328
|
xStart = _this$computeRadianPo2.xStart,
|
|
@@ -313,7 +334,7 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
313
334
|
transparent = _this$asProps5.transparent,
|
|
314
335
|
resolveColor = _this$asProps5.resolveColor;
|
|
315
336
|
var color = (_color = data.color) !== null && _color !== void 0 ? _color : this.asProps.color;
|
|
316
|
-
return
|
|
337
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
317
338
|
x1: xStart,
|
|
318
339
|
y1: yStart,
|
|
319
340
|
x2: xEnd,
|
|
@@ -321,13 +342,13 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
321
342
|
stroke: color,
|
|
322
343
|
resolveColor: resolveColor,
|
|
323
344
|
transparent: transparent
|
|
324
|
-
},
|
|
345
|
+
}, 'data-x1', xStart), 'data-y1', yStart), 'data-x2', xEnd), 'data-y2', yEnd), 'data-radial-animation', "".concat(uid, "-line")), 'data-radian-index', index);
|
|
325
346
|
}
|
|
326
347
|
}, {
|
|
327
348
|
key: "getCapProps",
|
|
328
|
-
value: function getCapProps(
|
|
329
|
-
var _$rootProps$data3, _color2
|
|
330
|
-
var $rootProps =
|
|
349
|
+
value: function getCapProps(_ref13, index) {
|
|
350
|
+
var _$rootProps$data3, _color2;
|
|
351
|
+
var $rootProps = _ref13.$rootProps;
|
|
331
352
|
var data = (_$rootProps$data3 = $rootProps.data) === null || _$rootProps$data3 === void 0 ? void 0 : _$rootProps$data3[index];
|
|
332
353
|
var _this$computeRadianPo3 = this.computeRadianPosition(data, index),
|
|
333
354
|
xEnd = _this$computeRadianPo3.xEnd,
|
|
@@ -339,16 +360,16 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
339
360
|
resolveColor = _this$asProps6.resolveColor,
|
|
340
361
|
patterns = _this$asProps6.patterns;
|
|
341
362
|
var color = (_color2 = data.color) !== null && _color2 !== void 0 ? _color2 : this.asProps.color;
|
|
342
|
-
return
|
|
363
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
343
364
|
x: xEnd,
|
|
344
365
|
y: yEnd
|
|
345
|
-
},
|
|
366
|
+
}, 'data-cx', xEnd), 'data-cy', yEnd), "radius", capSize), "color", color), "resolveColor", resolveColor), "transparent", transparent), "patterns", patterns), "uid", "".concat(uid, "-cap-").concat(index)), 'data-radial-animation', "".concat(uid, "-cap-circle")), 'data-radian-index', index);
|
|
346
367
|
}
|
|
347
368
|
}, {
|
|
348
369
|
key: "getIconProps",
|
|
349
|
-
value: function getIconProps(
|
|
350
|
-
var _$rootProps$data4, _iconColor, _iconSize, _icon
|
|
351
|
-
var $rootProps =
|
|
370
|
+
value: function getIconProps(_ref15, index) {
|
|
371
|
+
var _$rootProps$data4, _iconColor, _iconSize, _icon;
|
|
372
|
+
var $rootProps = _ref15.$rootProps;
|
|
352
373
|
var data = (_$rootProps$data4 = $rootProps.data) === null || _$rootProps$data4 === void 0 ? void 0 : _$rootProps$data4[index];
|
|
353
374
|
var _this$computeRadianPo4 = this.computeRadianPosition(data, index),
|
|
354
375
|
xEnd = _this$computeRadianPo4.xEnd,
|
|
@@ -362,16 +383,16 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
362
383
|
var icon = (_icon = data.icon) !== null && _icon !== void 0 ? _icon : this.asProps.icon;
|
|
363
384
|
var x = xEnd - iconSize / 2;
|
|
364
385
|
var y = yEnd - iconSize / 2;
|
|
365
|
-
return
|
|
386
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
366
387
|
x: x,
|
|
367
388
|
y: y
|
|
368
|
-
},
|
|
389
|
+
}, 'data-x', x), 'data-y', y), "iconSize", iconSize), "color", iconColor !== null && iconColor !== void 0 ? iconColor : '#fff'), "resolveColor", resolveColor), 'data-radial-animation', "".concat(uid, "-cap-icon")), 'data-radian-index', index), "icon", icon), "tag", icon), "isActive", isActive);
|
|
369
390
|
}
|
|
370
391
|
}, {
|
|
371
392
|
key: "getLabelProps",
|
|
372
|
-
value: function getLabelProps(
|
|
373
|
-
var _$rootProps$data5, _color3
|
|
374
|
-
var $rootProps =
|
|
393
|
+
value: function getLabelProps(_ref17, index) {
|
|
394
|
+
var _$rootProps$data5, _color3;
|
|
395
|
+
var $rootProps = _ref17.$rootProps;
|
|
375
396
|
var data = (_$rootProps$data5 = $rootProps.data) === null || _$rootProps$data5 === void 0 ? void 0 : _$rootProps$data5[index];
|
|
376
397
|
var _this$computeRadianPo5 = this.computeRadianPosition(data, index),
|
|
377
398
|
xLabelCenter = _this$computeRadianPo5.xLabelCenter,
|
|
@@ -383,14 +404,14 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
383
404
|
textSize = _this$asProps8.textSize,
|
|
384
405
|
transparent = _this$asProps8.transparent,
|
|
385
406
|
resolveColor = _this$asProps8.resolveColor;
|
|
386
|
-
var
|
|
387
|
-
label =
|
|
407
|
+
var _ref18 = data,
|
|
408
|
+
label = _ref18.label;
|
|
388
409
|
var color = (_color3 = data.color) !== null && _color3 !== void 0 ? _color3 : this.asProps.color;
|
|
389
|
-
return
|
|
410
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
390
411
|
x: xLabelCenter,
|
|
391
412
|
y: yLabelCenter,
|
|
392
413
|
angle: labelAngle
|
|
393
|
-
},
|
|
414
|
+
}, 'data-radial-animation', "".concat(uid, "-label")), 'data-radian-index', index), "label", label), "color", color), "resolveColor", resolveColor), "isHorizontal", isHorizontal), "textSize", textSize), "transparent", transparent);
|
|
394
415
|
}
|
|
395
416
|
}, {
|
|
396
417
|
key: "getRadianKey",
|
|
@@ -452,10 +473,10 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
452
473
|
key: "renderRadian",
|
|
453
474
|
value: function renderRadian(data, index) {
|
|
454
475
|
var _ref2;
|
|
455
|
-
var _this$
|
|
456
|
-
styles = _this$
|
|
457
|
-
Children = _this$
|
|
458
|
-
onRadianClick = _this$
|
|
476
|
+
var _this$asProps0 = this.asProps,
|
|
477
|
+
styles = _this$asProps0.styles,
|
|
478
|
+
Children = _this$asProps0.Children,
|
|
479
|
+
onRadianClick = _this$asProps0.onRadianClick;
|
|
459
480
|
var key = this.getRadianKey(data, index);
|
|
460
481
|
var SRadian = 'g';
|
|
461
482
|
var children = getOriginChildren(Children);
|
|
@@ -487,7 +508,6 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
487
508
|
}));
|
|
488
509
|
}
|
|
489
510
|
}]);
|
|
490
|
-
return RadialTreeRadian;
|
|
491
511
|
}(Component);
|
|
492
512
|
/** @deprecated */
|
|
493
513
|
_defineProperty(RadialTreeRadian, "displayName", 'RadialTreeRadian');
|
|
@@ -500,10 +520,10 @@ _defineProperty(RadialTreeRadian, "defaultProps", {
|
|
|
500
520
|
iconSize: 16,
|
|
501
521
|
textSize: 14
|
|
502
522
|
});
|
|
503
|
-
var InteractiveArea = function InteractiveArea(
|
|
523
|
+
var InteractiveArea = function InteractiveArea(_ref20) {
|
|
504
524
|
var _ref4;
|
|
505
|
-
var SInteractiveArea =
|
|
506
|
-
styles =
|
|
525
|
+
var SInteractiveArea = _ref20.Element,
|
|
526
|
+
styles = _ref20.styles;
|
|
507
527
|
return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement(SInteractiveArea, _ref4.cn("SInteractiveArea", {
|
|
508
528
|
"stroke": 'transparent',
|
|
509
529
|
"render": 'line'
|
|
@@ -512,13 +532,13 @@ var InteractiveArea = function InteractiveArea(_ref22) {
|
|
|
512
532
|
|
|
513
533
|
/** @deprecated */
|
|
514
534
|
|
|
515
|
-
var Line = function Line(
|
|
535
|
+
var Line = function Line(_ref21) {
|
|
516
536
|
var _ref5;
|
|
517
|
-
var SLine =
|
|
518
|
-
styles =
|
|
519
|
-
stroke =
|
|
520
|
-
resolveColor =
|
|
521
|
-
transparent =
|
|
537
|
+
var SLine = _ref21.Element,
|
|
538
|
+
styles = _ref21.styles,
|
|
539
|
+
stroke = _ref21.stroke,
|
|
540
|
+
resolveColor = _ref21.resolveColor,
|
|
541
|
+
transparent = _ref21.transparent;
|
|
522
542
|
return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(SLine, _ref5.cn("SLine", {
|
|
523
543
|
"render": 'line',
|
|
524
544
|
"stroke": resolveColor(stroke),
|
|
@@ -528,19 +548,19 @@ var Line = function Line(_ref23) {
|
|
|
528
548
|
|
|
529
549
|
/** @deprecated */
|
|
530
550
|
|
|
531
|
-
var Cap = function Cap(
|
|
551
|
+
var Cap = function Cap(_ref22) {
|
|
532
552
|
var _ref7;
|
|
533
|
-
var SCap =
|
|
534
|
-
styles =
|
|
535
|
-
|
|
536
|
-
x =
|
|
537
|
-
|
|
538
|
-
y =
|
|
539
|
-
radius =
|
|
540
|
-
color =
|
|
541
|
-
resolveColor =
|
|
542
|
-
transparent =
|
|
543
|
-
patterns =
|
|
553
|
+
var SCap = _ref22.Element,
|
|
554
|
+
styles = _ref22.styles,
|
|
555
|
+
_ref22$x = _ref22.x,
|
|
556
|
+
x = _ref22$x === void 0 ? 0 : _ref22$x,
|
|
557
|
+
_ref22$y = _ref22.y,
|
|
558
|
+
y = _ref22$y === void 0 ? 0 : _ref22$y,
|
|
559
|
+
radius = _ref22.radius,
|
|
560
|
+
color = _ref22.color,
|
|
561
|
+
resolveColor = _ref22.resolveColor,
|
|
562
|
+
transparent = _ref22.transparent,
|
|
563
|
+
patterns = _ref22.patterns;
|
|
544
564
|
if (!patterns) {
|
|
545
565
|
var _ref6;
|
|
546
566
|
return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SCap, _ref6.cn("SCap", {
|
|
@@ -573,16 +593,16 @@ var Cap = function Cap(_ref24) {
|
|
|
573
593
|
|
|
574
594
|
/** @deprecated */
|
|
575
595
|
|
|
576
|
-
var Icon = function Icon(
|
|
596
|
+
var Icon = function Icon(_ref23) {
|
|
577
597
|
var _ref8;
|
|
578
|
-
var SIcon =
|
|
579
|
-
styles =
|
|
580
|
-
isActive =
|
|
581
|
-
tag =
|
|
582
|
-
x =
|
|
583
|
-
y =
|
|
584
|
-
iconSize =
|
|
585
|
-
transparent =
|
|
598
|
+
var SIcon = _ref23.Element,
|
|
599
|
+
styles = _ref23.styles,
|
|
600
|
+
isActive = _ref23.isActive,
|
|
601
|
+
tag = _ref23.tag,
|
|
602
|
+
x = _ref23.x,
|
|
603
|
+
y = _ref23.y,
|
|
604
|
+
iconSize = _ref23.iconSize,
|
|
605
|
+
transparent = _ref23.transparent;
|
|
586
606
|
if (!(isActive && tag)) return null;
|
|
587
607
|
var width = iconSize;
|
|
588
608
|
var height = iconSize;
|
|
@@ -598,19 +618,19 @@ var Icon = function Icon(_ref25) {
|
|
|
598
618
|
|
|
599
619
|
/** @deprecated */
|
|
600
620
|
|
|
601
|
-
var Label = function Label(
|
|
602
|
-
var SLabel =
|
|
603
|
-
Children =
|
|
604
|
-
styles =
|
|
605
|
-
label =
|
|
606
|
-
color =
|
|
607
|
-
resolveColor =
|
|
608
|
-
isHorizontal =
|
|
609
|
-
x =
|
|
610
|
-
y =
|
|
611
|
-
textSize =
|
|
612
|
-
angle =
|
|
613
|
-
transparent =
|
|
621
|
+
var Label = function Label(_ref24) {
|
|
622
|
+
var SLabel = _ref24.Element,
|
|
623
|
+
Children = _ref24.Children,
|
|
624
|
+
styles = _ref24.styles,
|
|
625
|
+
label = _ref24.label,
|
|
626
|
+
color = _ref24.color,
|
|
627
|
+
resolveColor = _ref24.resolveColor,
|
|
628
|
+
isHorizontal = _ref24.isHorizontal,
|
|
629
|
+
x = _ref24.x,
|
|
630
|
+
y = _ref24.y,
|
|
631
|
+
textSize = _ref24.textSize,
|
|
632
|
+
angle = _ref24.angle,
|
|
633
|
+
transparent = _ref24.transparent;
|
|
614
634
|
var lines = String(label).split('\n');
|
|
615
635
|
var linesCount = lines.length;
|
|
616
636
|
var SLabelLine = 'tspan';
|
|
@@ -619,7 +639,7 @@ var Label = function Label(_ref26) {
|
|
|
619
639
|
var transform = "rotate(".concat([angleDegs].concat(transformOrigin).join(', '), ")");
|
|
620
640
|
var sstyles = sstyled(styles);
|
|
621
641
|
var sLabelStyles = sstyles.cn('SLabel', {
|
|
622
|
-
color: resolveColor(color),
|
|
642
|
+
'color': resolveColor(color),
|
|
623
643
|
'text-cursor': isHorizontal ? 'text' : 'vertical-text',
|
|
624
644
|
transparent: transparent
|
|
625
645
|
});
|
|
@@ -651,18 +671,18 @@ var Radian = createElement(RadialTreeRadian, {
|
|
|
651
671
|
|
|
652
672
|
/** @deprecated */
|
|
653
673
|
|
|
654
|
-
var Title = function Title(
|
|
674
|
+
var Title = function Title(_ref25) {
|
|
655
675
|
var _ref9;
|
|
656
|
-
var STitle =
|
|
657
|
-
Children =
|
|
658
|
-
children =
|
|
659
|
-
styles =
|
|
660
|
-
textSize =
|
|
661
|
-
color =
|
|
662
|
-
resolveColor =
|
|
663
|
-
x =
|
|
664
|
-
y =
|
|
665
|
-
dataHintsHandler =
|
|
676
|
+
var STitle = _ref25.Element,
|
|
677
|
+
Children = _ref25.Children,
|
|
678
|
+
children = _ref25.children,
|
|
679
|
+
styles = _ref25.styles,
|
|
680
|
+
textSize = _ref25.textSize,
|
|
681
|
+
color = _ref25.color,
|
|
682
|
+
resolveColor = _ref25.resolveColor,
|
|
683
|
+
x = _ref25.x,
|
|
684
|
+
y = _ref25.y,
|
|
685
|
+
dataHintsHandler = _ref25.dataHintsHandler;
|
|
666
686
|
if (typeof children === 'string') {
|
|
667
687
|
dataHintsHandler.setTitle('vertical', children);
|
|
668
688
|
}
|