@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/cjs/RadialTree.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -11,50 +11,53 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
11
11
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
12
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
13
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
14
|
-
var
|
|
14
|
+
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
15
|
+
var _isNativeReflectConstruct2 = _interopRequireDefault(require("@babel/runtime/helpers/isNativeReflectConstruct"));
|
|
16
|
+
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
15
17
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
17
18
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
19
|
var _core = require("@semcore/core");
|
|
19
|
-
var _react = _interopRequireDefault(require("react"));
|
|
20
|
-
var _d3Transition = require("d3-transition");
|
|
21
|
-
var _uniqueID = _interopRequireDefault(require("@semcore/core/lib/utils/uniqueID"));
|
|
22
20
|
var _assignProps = _interopRequireDefault(require("@semcore/core/lib/utils/assignProps"));
|
|
23
|
-
var _getOriginChildren = _interopRequireDefault(require("@semcore/core/lib/utils/getOriginChildren"));
|
|
24
21
|
var _canUseDOM = _interopRequireDefault(require("@semcore/core/lib/utils/canUseDOM"));
|
|
22
|
+
var _getOriginChildren = _interopRequireDefault(require("@semcore/core/lib/utils/getOriginChildren"));
|
|
23
|
+
var _uniqueID = _interopRequireDefault(require("@semcore/core/lib/utils/uniqueID"));
|
|
24
|
+
var _d3Transition = require("d3-transition");
|
|
25
|
+
var _react = _interopRequireDefault(require("react"));
|
|
25
26
|
var _createElement = _interopRequireDefault(require("./createElement"));
|
|
26
|
-
var _utils = require("./utils");
|
|
27
27
|
var _Pattern = require("./Pattern");
|
|
28
|
+
var _utils = require("./utils");
|
|
28
29
|
var _excluded = ["data"];
|
|
30
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, (0, _isNativeReflectConstruct2["default"])() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
29
31
|
/*!__reshadow-styles__:"./style/radial-tree.shadow.css"*/
|
|
30
|
-
var style = (
|
|
32
|
+
var style = (/*__reshadow_css_start__*/_core.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_"),
|
|
31
33
|
/*__reshadow_css_end__*/
|
|
32
34
|
{
|
|
33
|
-
"__SRadian": "
|
|
34
|
-
"__SLine": "
|
|
35
|
-
"_stroke": "
|
|
36
|
-
"--stroke": "--
|
|
37
|
-
"_transparent": "
|
|
38
|
-
"__SCap": "
|
|
39
|
-
"_pattern": "
|
|
40
|
-
"__SIcon": "
|
|
41
|
-
"__SLabel": "
|
|
42
|
-
"--color": "--
|
|
43
|
-
"__SLineCap": "
|
|
35
|
+
"__SRadian": "___SRadian_1k51n_gg_",
|
|
36
|
+
"__SLine": "___SLine_1k51n_gg_",
|
|
37
|
+
"_stroke": "__stroke_1k51n_gg_",
|
|
38
|
+
"--stroke": "--stroke_1k51n",
|
|
39
|
+
"_transparent": "__transparent_1k51n_gg_",
|
|
40
|
+
"__SCap": "___SCap_1k51n_gg_",
|
|
41
|
+
"_pattern": "__pattern_1k51n_gg_",
|
|
42
|
+
"__SIcon": "___SIcon_1k51n_gg_",
|
|
43
|
+
"__SLabel": "___SLabel_1k51n_gg_",
|
|
44
|
+
"--color": "--color_1k51n",
|
|
45
|
+
"__SLineCap": "___SLineCap_1k51n_gg_"
|
|
44
46
|
});
|
|
45
47
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
|
48
|
+
|
|
49
|
+
/** @deprecated */
|
|
46
50
|
var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
47
|
-
(0, _inherits2["default"])(RadialTreeBase, _Component);
|
|
48
|
-
var _super = (0, _createSuper2["default"])(RadialTreeBase);
|
|
49
51
|
function RadialTreeBase(props) {
|
|
50
52
|
var _this;
|
|
51
53
|
(0, _classCallCheck2["default"])(this, RadialTreeBase);
|
|
52
|
-
_this =
|
|
53
|
-
(0, _defineProperty2["default"])(
|
|
54
|
-
_this.handleRadianClick = _this.handleRadianClick.bind(
|
|
54
|
+
_this = _callSuper(this, RadialTreeBase, [props]);
|
|
55
|
+
(0, _defineProperty2["default"])(_this, "Element", void 0);
|
|
56
|
+
_this.handleRadianClick = _this.handleRadianClick.bind(_this);
|
|
55
57
|
return _this;
|
|
56
58
|
}
|
|
57
|
-
(0,
|
|
59
|
+
(0, _inherits2["default"])(RadialTreeBase, _Component);
|
|
60
|
+
return (0, _createClass2["default"])(RadialTreeBase, [{
|
|
58
61
|
key: "uncontrolledProps",
|
|
59
62
|
value: function uncontrolledProps() {
|
|
60
63
|
return {
|
|
@@ -71,7 +74,7 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
71
74
|
if (!(0, _canUseDOM["default"])()) return;
|
|
72
75
|
var preferReduceMotion = (_window$matchMedia = window.matchMedia('(prefers-reduced-motion: reduce)')) === null || _window$matchMedia === void 0 ? void 0 : _window$matchMedia.matches;
|
|
73
76
|
|
|
74
|
-
/** using `!(>)` instead of `<=` to get true on NaN and non numbers stuff */
|
|
77
|
+
/** using `!(>)` instead of `<=` to get true on Number.NaN and non numbers stuff */
|
|
75
78
|
if (!(duration > 0)) return;
|
|
76
79
|
if (preferReduceMotion) return;
|
|
77
80
|
var circlesAnimation = (0, _d3Transition.transition)().selection().selectAll("[data-radial-animation=".concat(uid, "-cap-circle]")).interrupt();
|
|
@@ -84,13 +87,13 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
84
87
|
var labelsNodes = linesAnimation.nodes();
|
|
85
88
|
if (circlesNodes.length > 0) {
|
|
86
89
|
var attrs = circlesNodes.map(function (node) {
|
|
87
|
-
var _lineNode$x, _lineNode$
|
|
88
|
-
var radianIndex = parseInt(node.dataset.radianIndex, 10);
|
|
90
|
+
var _lineNode$x, _lineNode$y;
|
|
91
|
+
var radianIndex = Number.parseInt(node.dataset.radianIndex, 10);
|
|
89
92
|
var lineNode = linesNodes[radianIndex];
|
|
90
93
|
return {
|
|
91
94
|
from: {
|
|
92
|
-
cx: (_lineNode$x = lineNode.x1) === null || _lineNode$x === void 0
|
|
93
|
-
cy: (_lineNode$y = lineNode.y1) === null || _lineNode$y === void 0
|
|
95
|
+
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,
|
|
96
|
+
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
|
|
94
97
|
},
|
|
95
98
|
to: {
|
|
96
99
|
cx: node.dataset['cx'],
|
|
@@ -104,25 +107,29 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
104
107
|
}).attr('cy', function (_, index) {
|
|
105
108
|
var _attrs$index$from2;
|
|
106
109
|
return (_attrs$index$from2 = attrs[index].from) === null || _attrs$index$from2 === void 0 ? void 0 : _attrs$index$from2.cy;
|
|
107
|
-
}).transition().duration(duration).attr('opacity', 1)
|
|
110
|
+
}).transition().duration(duration).attr('opacity', 1)
|
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
112
|
+
.attr('cx', function (_, index) {
|
|
108
113
|
var _attrs$index$to;
|
|
109
114
|
return (_attrs$index$to = attrs[index].to) === null || _attrs$index$to === void 0 ? void 0 : _attrs$index$to.cx;
|
|
110
|
-
})
|
|
115
|
+
})
|
|
116
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
117
|
+
.attr('cy', function (_, index) {
|
|
111
118
|
var _attrs$index$to2;
|
|
112
119
|
return (_attrs$index$to2 = attrs[index].to) === null || _attrs$index$to2 === void 0 ? void 0 : _attrs$index$to2.cy;
|
|
113
120
|
});
|
|
114
121
|
}
|
|
115
122
|
if (iconsNodes.length > 0) {
|
|
116
123
|
var _attrs = iconsNodes.map(function (node) {
|
|
117
|
-
var _node$width, _node$
|
|
118
|
-
var width = (_node$width = node.width) === null || _node$width === void 0
|
|
119
|
-
var height = (_node$height = node.height) === null || _node$height === void 0
|
|
120
|
-
var radianIndex = parseInt(node.dataset.radianIndex, 10);
|
|
124
|
+
var _node$width, _node$height, _lineNode$x2, _lineNode$y2;
|
|
125
|
+
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;
|
|
126
|
+
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;
|
|
127
|
+
var radianIndex = Number.parseInt(node.dataset.radianIndex, 10);
|
|
121
128
|
var lineNode = linesNodes[radianIndex];
|
|
122
129
|
return {
|
|
123
130
|
from: {
|
|
124
|
-
x: ((_lineNode$x2 = lineNode.x1) === null || _lineNode$x2 === void 0
|
|
125
|
-
y: ((_lineNode$y2 = lineNode.y1) === null || _lineNode$y2 === void 0
|
|
131
|
+
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,
|
|
132
|
+
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
|
|
126
133
|
},
|
|
127
134
|
to: {
|
|
128
135
|
x: node.dataset['x'],
|
|
@@ -130,27 +137,35 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
130
137
|
}
|
|
131
138
|
};
|
|
132
139
|
});
|
|
133
|
-
iconsAnimation.attr('opacity', 0)
|
|
140
|
+
iconsAnimation.attr('opacity', 0)
|
|
141
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
142
|
+
.attr('x', function (_, index) {
|
|
134
143
|
var _attrs$index$from3;
|
|
135
144
|
return (_attrs$index$from3 = _attrs[index].from) === null || _attrs$index$from3 === void 0 ? void 0 : _attrs$index$from3.x;
|
|
136
|
-
})
|
|
145
|
+
})
|
|
146
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
147
|
+
.attr('y', function (_, index) {
|
|
137
148
|
var _attrs$index$from4;
|
|
138
149
|
return (_attrs$index$from4 = _attrs[index].from) === null || _attrs$index$from4 === void 0 ? void 0 : _attrs$index$from4.y;
|
|
139
|
-
}).transition().duration(duration).attr('opacity', 1)
|
|
150
|
+
}).transition().duration(duration).attr('opacity', 1)
|
|
151
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
152
|
+
.attr('x', function (_, index) {
|
|
140
153
|
var _attrs$index$to3;
|
|
141
154
|
return (_attrs$index$to3 = _attrs[index].to) === null || _attrs$index$to3 === void 0 ? void 0 : _attrs$index$to3.x;
|
|
142
|
-
})
|
|
155
|
+
})
|
|
156
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
157
|
+
.attr('y', function (_, index) {
|
|
143
158
|
var _attrs$index$to4;
|
|
144
159
|
return (_attrs$index$to4 = _attrs[index].to) === null || _attrs$index$to4 === void 0 ? void 0 : _attrs$index$to4.y;
|
|
145
160
|
});
|
|
146
161
|
}
|
|
147
162
|
if (linesNodes.length > 0) {
|
|
148
163
|
var _attrs2 = linesNodes.map(function (node) {
|
|
149
|
-
var _node$x, _node$
|
|
164
|
+
var _node$x, _node$y;
|
|
150
165
|
return {
|
|
151
166
|
from: {
|
|
152
|
-
x2: (_node$x = node.x1) === null || _node$x === void 0
|
|
153
|
-
y2: (_node$y = node.y1) === null || _node$y === void 0
|
|
167
|
+
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,
|
|
168
|
+
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
|
|
154
169
|
},
|
|
155
170
|
to: {
|
|
156
171
|
x2: node.dataset['x2'],
|
|
@@ -158,16 +173,24 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
158
173
|
}
|
|
159
174
|
};
|
|
160
175
|
});
|
|
161
|
-
linesAnimation.attr('opacity', 0)
|
|
176
|
+
linesAnimation.attr('opacity', 0)
|
|
177
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
178
|
+
.attr('x2', function (_, index) {
|
|
162
179
|
var _attrs2$index$from;
|
|
163
180
|
return (_attrs2$index$from = _attrs2[index].from) === null || _attrs2$index$from === void 0 ? void 0 : _attrs2$index$from.x2;
|
|
164
|
-
})
|
|
181
|
+
})
|
|
182
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
183
|
+
.attr('y2', function (_, index) {
|
|
165
184
|
var _attrs2$index$from2;
|
|
166
185
|
return (_attrs2$index$from2 = _attrs2[index].from) === null || _attrs2$index$from2 === void 0 ? void 0 : _attrs2$index$from2.y2;
|
|
167
|
-
}).transition().duration(duration).attr('opacity', 1)
|
|
186
|
+
}).transition().duration(duration).attr('opacity', 1)
|
|
187
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
188
|
+
.attr('x2', function (_, index) {
|
|
168
189
|
var _attrs2$index$to;
|
|
169
190
|
return (_attrs2$index$to = _attrs2[index].to) === null || _attrs2$index$to === void 0 ? void 0 : _attrs2$index$to.x2;
|
|
170
|
-
})
|
|
191
|
+
})
|
|
192
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
193
|
+
.attr('y2', function (_, index) {
|
|
171
194
|
var _attrs2$index$to2;
|
|
172
195
|
return (_attrs2$index$to2 = _attrs2[index].to) === null || _attrs2$index$to2 === void 0 ? void 0 : _attrs2$index$to2.y2;
|
|
173
196
|
});
|
|
@@ -204,8 +227,8 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
204
227
|
var _this$asProps2 = this.asProps,
|
|
205
228
|
data = _this$asProps2.data,
|
|
206
229
|
textSize = _this$asProps2.textSize;
|
|
207
|
-
var widths = data.map(function (
|
|
208
|
-
var label =
|
|
230
|
+
var widths = data.map(function (_ref0) {
|
|
231
|
+
var label = _ref0.label;
|
|
209
232
|
return (0, _utils.measureText)(label, textSize);
|
|
210
233
|
});
|
|
211
234
|
return Math.max.apply(Math, (0, _toConsumableArray2["default"])(widths));
|
|
@@ -255,7 +278,6 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
255
278
|
}), /*#__PURE__*/_react["default"].createElement(Children, _ref.cn("Children", {})));
|
|
256
279
|
}
|
|
257
280
|
}]);
|
|
258
|
-
return RadialTreeBase;
|
|
259
281
|
}(_core.Component);
|
|
260
282
|
/** @deprecated */
|
|
261
283
|
(0, _defineProperty2["default"])(RadialTreeBase, "displayName", 'RadialTree');
|
|
@@ -273,21 +295,20 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
273
295
|
defaultActiveKey: null
|
|
274
296
|
});
|
|
275
297
|
var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
276
|
-
(0, _inherits2["default"])(RadialTreeRadian, _Component2);
|
|
277
|
-
var _super2 = (0, _createSuper2["default"])(RadialTreeRadian);
|
|
278
298
|
function RadialTreeRadian(props) {
|
|
279
299
|
var _this3;
|
|
280
300
|
(0, _classCallCheck2["default"])(this, RadialTreeRadian);
|
|
281
|
-
_this3 =
|
|
282
|
-
(0, _defineProperty2["default"])(
|
|
283
|
-
_this3.renderRadian = _this3.renderRadian.bind(
|
|
301
|
+
_this3 = _callSuper(this, RadialTreeRadian, [props]);
|
|
302
|
+
(0, _defineProperty2["default"])(_this3, "Element", void 0);
|
|
303
|
+
_this3.renderRadian = _this3.renderRadian.bind(_this3);
|
|
284
304
|
return _this3;
|
|
285
305
|
}
|
|
286
|
-
(0,
|
|
306
|
+
(0, _inherits2["default"])(RadialTreeRadian, _Component2);
|
|
307
|
+
return (0, _createClass2["default"])(RadialTreeRadian, [{
|
|
287
308
|
key: "getInteractiveAreaProps",
|
|
288
|
-
value: function getInteractiveAreaProps(
|
|
309
|
+
value: function getInteractiveAreaProps(_ref10, index) {
|
|
289
310
|
var _$rootProps$data;
|
|
290
|
-
var $rootProps =
|
|
311
|
+
var $rootProps = _ref10.$rootProps;
|
|
291
312
|
var data = (_$rootProps$data = $rootProps.data) === null || _$rootProps$data === void 0 ? void 0 : _$rootProps$data[index];
|
|
292
313
|
var _this$computeRadianPo = this.computeRadianPosition(data, index),
|
|
293
314
|
xStart = _this$computeRadianPo.xStart,
|
|
@@ -305,9 +326,9 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
305
326
|
}
|
|
306
327
|
}, {
|
|
307
328
|
key: "getLineProps",
|
|
308
|
-
value: function getLineProps(
|
|
309
|
-
var _$rootProps$data2, _color
|
|
310
|
-
var $rootProps =
|
|
329
|
+
value: function getLineProps(_ref11, index) {
|
|
330
|
+
var _$rootProps$data2, _color;
|
|
331
|
+
var $rootProps = _ref11.$rootProps;
|
|
311
332
|
var data = (_$rootProps$data2 = $rootProps.data) === null || _$rootProps$data2 === void 0 ? void 0 : _$rootProps$data2[index];
|
|
312
333
|
var _this$computeRadianPo2 = this.computeRadianPosition(data, index),
|
|
313
334
|
xStart = _this$computeRadianPo2.xStart,
|
|
@@ -319,7 +340,7 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
319
340
|
transparent = _this$asProps5.transparent,
|
|
320
341
|
resolveColor = _this$asProps5.resolveColor;
|
|
321
342
|
var color = (_color = data.color) !== null && _color !== void 0 ? _color : this.asProps.color;
|
|
322
|
-
return
|
|
343
|
+
return (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({
|
|
323
344
|
x1: xStart,
|
|
324
345
|
y1: yStart,
|
|
325
346
|
x2: xEnd,
|
|
@@ -327,13 +348,13 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
327
348
|
stroke: color,
|
|
328
349
|
resolveColor: resolveColor,
|
|
329
350
|
transparent: transparent
|
|
330
|
-
},
|
|
351
|
+
}, 'data-x1', xStart), 'data-y1', yStart), 'data-x2', xEnd), 'data-y2', yEnd), 'data-radial-animation', "".concat(uid, "-line")), 'data-radian-index', index);
|
|
331
352
|
}
|
|
332
353
|
}, {
|
|
333
354
|
key: "getCapProps",
|
|
334
|
-
value: function getCapProps(
|
|
335
|
-
var _$rootProps$data3, _color2
|
|
336
|
-
var $rootProps =
|
|
355
|
+
value: function getCapProps(_ref13, index) {
|
|
356
|
+
var _$rootProps$data3, _color2;
|
|
357
|
+
var $rootProps = _ref13.$rootProps;
|
|
337
358
|
var data = (_$rootProps$data3 = $rootProps.data) === null || _$rootProps$data3 === void 0 ? void 0 : _$rootProps$data3[index];
|
|
338
359
|
var _this$computeRadianPo3 = this.computeRadianPosition(data, index),
|
|
339
360
|
xEnd = _this$computeRadianPo3.xEnd,
|
|
@@ -345,16 +366,16 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
345
366
|
resolveColor = _this$asProps6.resolveColor,
|
|
346
367
|
patterns = _this$asProps6.patterns;
|
|
347
368
|
var color = (_color2 = data.color) !== null && _color2 !== void 0 ? _color2 : this.asProps.color;
|
|
348
|
-
return
|
|
369
|
+
return (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({
|
|
349
370
|
x: xEnd,
|
|
350
371
|
y: yEnd
|
|
351
|
-
},
|
|
372
|
+
}, '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);
|
|
352
373
|
}
|
|
353
374
|
}, {
|
|
354
375
|
key: "getIconProps",
|
|
355
|
-
value: function getIconProps(
|
|
356
|
-
var _$rootProps$data4, _iconColor, _iconSize, _icon
|
|
357
|
-
var $rootProps =
|
|
376
|
+
value: function getIconProps(_ref15, index) {
|
|
377
|
+
var _$rootProps$data4, _iconColor, _iconSize, _icon;
|
|
378
|
+
var $rootProps = _ref15.$rootProps;
|
|
358
379
|
var data = (_$rootProps$data4 = $rootProps.data) === null || _$rootProps$data4 === void 0 ? void 0 : _$rootProps$data4[index];
|
|
359
380
|
var _this$computeRadianPo4 = this.computeRadianPosition(data, index),
|
|
360
381
|
xEnd = _this$computeRadianPo4.xEnd,
|
|
@@ -368,16 +389,16 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
368
389
|
var icon = (_icon = data.icon) !== null && _icon !== void 0 ? _icon : this.asProps.icon;
|
|
369
390
|
var x = xEnd - iconSize / 2;
|
|
370
391
|
var y = yEnd - iconSize / 2;
|
|
371
|
-
return
|
|
392
|
+
return (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({
|
|
372
393
|
x: x,
|
|
373
394
|
y: y
|
|
374
|
-
},
|
|
395
|
+
}, '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);
|
|
375
396
|
}
|
|
376
397
|
}, {
|
|
377
398
|
key: "getLabelProps",
|
|
378
|
-
value: function getLabelProps(
|
|
379
|
-
var _$rootProps$data5, _color3
|
|
380
|
-
var $rootProps =
|
|
399
|
+
value: function getLabelProps(_ref17, index) {
|
|
400
|
+
var _$rootProps$data5, _color3;
|
|
401
|
+
var $rootProps = _ref17.$rootProps;
|
|
381
402
|
var data = (_$rootProps$data5 = $rootProps.data) === null || _$rootProps$data5 === void 0 ? void 0 : _$rootProps$data5[index];
|
|
382
403
|
var _this$computeRadianPo5 = this.computeRadianPosition(data, index),
|
|
383
404
|
xLabelCenter = _this$computeRadianPo5.xLabelCenter,
|
|
@@ -389,14 +410,14 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
389
410
|
textSize = _this$asProps8.textSize,
|
|
390
411
|
transparent = _this$asProps8.transparent,
|
|
391
412
|
resolveColor = _this$asProps8.resolveColor;
|
|
392
|
-
var
|
|
393
|
-
label =
|
|
413
|
+
var _ref18 = data,
|
|
414
|
+
label = _ref18.label;
|
|
394
415
|
var color = (_color3 = data.color) !== null && _color3 !== void 0 ? _color3 : this.asProps.color;
|
|
395
|
-
return
|
|
416
|
+
return (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({
|
|
396
417
|
x: xLabelCenter,
|
|
397
418
|
y: yLabelCenter,
|
|
398
419
|
angle: labelAngle
|
|
399
|
-
},
|
|
420
|
+
}, 'data-radial-animation', "".concat(uid, "-label")), 'data-radian-index', index), "label", label), "color", color), "resolveColor", resolveColor), "isHorizontal", isHorizontal), "textSize", textSize), "transparent", transparent);
|
|
400
421
|
}
|
|
401
422
|
}, {
|
|
402
423
|
key: "getRadianKey",
|
|
@@ -458,10 +479,10 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
458
479
|
key: "renderRadian",
|
|
459
480
|
value: function renderRadian(data, index) {
|
|
460
481
|
var _ref2;
|
|
461
|
-
var _this$
|
|
462
|
-
styles = _this$
|
|
463
|
-
Children = _this$
|
|
464
|
-
onRadianClick = _this$
|
|
482
|
+
var _this$asProps0 = this.asProps,
|
|
483
|
+
styles = _this$asProps0.styles,
|
|
484
|
+
Children = _this$asProps0.Children,
|
|
485
|
+
onRadianClick = _this$asProps0.onRadianClick;
|
|
465
486
|
var key = this.getRadianKey(data, index);
|
|
466
487
|
var SRadian = 'g';
|
|
467
488
|
var children = (0, _getOriginChildren["default"])(Children);
|
|
@@ -493,7 +514,6 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
493
514
|
}));
|
|
494
515
|
}
|
|
495
516
|
}]);
|
|
496
|
-
return RadialTreeRadian;
|
|
497
517
|
}(_core.Component);
|
|
498
518
|
/** @deprecated */
|
|
499
519
|
(0, _defineProperty2["default"])(RadialTreeRadian, "displayName", 'RadialTreeRadian');
|
|
@@ -506,10 +526,10 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
506
526
|
iconSize: 16,
|
|
507
527
|
textSize: 14
|
|
508
528
|
});
|
|
509
|
-
var InteractiveArea = function InteractiveArea(
|
|
529
|
+
var InteractiveArea = function InteractiveArea(_ref20) {
|
|
510
530
|
var _ref4;
|
|
511
|
-
var SInteractiveArea =
|
|
512
|
-
styles =
|
|
531
|
+
var SInteractiveArea = _ref20.Element,
|
|
532
|
+
styles = _ref20.styles;
|
|
513
533
|
return _ref4 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SInteractiveArea, _ref4.cn("SInteractiveArea", {
|
|
514
534
|
"stroke": 'transparent',
|
|
515
535
|
"render": 'line'
|
|
@@ -518,13 +538,13 @@ var InteractiveArea = function InteractiveArea(_ref22) {
|
|
|
518
538
|
|
|
519
539
|
/** @deprecated */
|
|
520
540
|
|
|
521
|
-
var Line = function Line(
|
|
541
|
+
var Line = function Line(_ref21) {
|
|
522
542
|
var _ref5;
|
|
523
|
-
var SLine =
|
|
524
|
-
styles =
|
|
525
|
-
stroke =
|
|
526
|
-
resolveColor =
|
|
527
|
-
transparent =
|
|
543
|
+
var SLine = _ref21.Element,
|
|
544
|
+
styles = _ref21.styles,
|
|
545
|
+
stroke = _ref21.stroke,
|
|
546
|
+
resolveColor = _ref21.resolveColor,
|
|
547
|
+
transparent = _ref21.transparent;
|
|
528
548
|
return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SLine, _ref5.cn("SLine", {
|
|
529
549
|
"render": 'line',
|
|
530
550
|
"stroke": resolveColor(stroke),
|
|
@@ -534,19 +554,19 @@ var Line = function Line(_ref23) {
|
|
|
534
554
|
|
|
535
555
|
/** @deprecated */
|
|
536
556
|
|
|
537
|
-
var Cap = function Cap(
|
|
557
|
+
var Cap = function Cap(_ref22) {
|
|
538
558
|
var _ref7;
|
|
539
|
-
var SCap =
|
|
540
|
-
styles =
|
|
541
|
-
|
|
542
|
-
x =
|
|
543
|
-
|
|
544
|
-
y =
|
|
545
|
-
radius =
|
|
546
|
-
color =
|
|
547
|
-
resolveColor =
|
|
548
|
-
transparent =
|
|
549
|
-
patterns =
|
|
559
|
+
var SCap = _ref22.Element,
|
|
560
|
+
styles = _ref22.styles,
|
|
561
|
+
_ref22$x = _ref22.x,
|
|
562
|
+
x = _ref22$x === void 0 ? 0 : _ref22$x,
|
|
563
|
+
_ref22$y = _ref22.y,
|
|
564
|
+
y = _ref22$y === void 0 ? 0 : _ref22$y,
|
|
565
|
+
radius = _ref22.radius,
|
|
566
|
+
color = _ref22.color,
|
|
567
|
+
resolveColor = _ref22.resolveColor,
|
|
568
|
+
transparent = _ref22.transparent,
|
|
569
|
+
patterns = _ref22.patterns;
|
|
550
570
|
if (!patterns) {
|
|
551
571
|
var _ref6;
|
|
552
572
|
return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SCap, _ref6.cn("SCap", {
|
|
@@ -579,16 +599,16 @@ var Cap = function Cap(_ref24) {
|
|
|
579
599
|
|
|
580
600
|
/** @deprecated */
|
|
581
601
|
|
|
582
|
-
var Icon = function Icon(
|
|
602
|
+
var Icon = function Icon(_ref23) {
|
|
583
603
|
var _ref8;
|
|
584
|
-
var SIcon =
|
|
585
|
-
styles =
|
|
586
|
-
isActive =
|
|
587
|
-
tag =
|
|
588
|
-
x =
|
|
589
|
-
y =
|
|
590
|
-
iconSize =
|
|
591
|
-
transparent =
|
|
604
|
+
var SIcon = _ref23.Element,
|
|
605
|
+
styles = _ref23.styles,
|
|
606
|
+
isActive = _ref23.isActive,
|
|
607
|
+
tag = _ref23.tag,
|
|
608
|
+
x = _ref23.x,
|
|
609
|
+
y = _ref23.y,
|
|
610
|
+
iconSize = _ref23.iconSize,
|
|
611
|
+
transparent = _ref23.transparent;
|
|
592
612
|
if (!(isActive && tag)) return null;
|
|
593
613
|
var width = iconSize;
|
|
594
614
|
var height = iconSize;
|
|
@@ -604,19 +624,19 @@ var Icon = function Icon(_ref25) {
|
|
|
604
624
|
|
|
605
625
|
/** @deprecated */
|
|
606
626
|
|
|
607
|
-
var Label = function Label(
|
|
608
|
-
var SLabel =
|
|
609
|
-
Children =
|
|
610
|
-
styles =
|
|
611
|
-
label =
|
|
612
|
-
color =
|
|
613
|
-
resolveColor =
|
|
614
|
-
isHorizontal =
|
|
615
|
-
x =
|
|
616
|
-
y =
|
|
617
|
-
textSize =
|
|
618
|
-
angle =
|
|
619
|
-
transparent =
|
|
627
|
+
var Label = function Label(_ref24) {
|
|
628
|
+
var SLabel = _ref24.Element,
|
|
629
|
+
Children = _ref24.Children,
|
|
630
|
+
styles = _ref24.styles,
|
|
631
|
+
label = _ref24.label,
|
|
632
|
+
color = _ref24.color,
|
|
633
|
+
resolveColor = _ref24.resolveColor,
|
|
634
|
+
isHorizontal = _ref24.isHorizontal,
|
|
635
|
+
x = _ref24.x,
|
|
636
|
+
y = _ref24.y,
|
|
637
|
+
textSize = _ref24.textSize,
|
|
638
|
+
angle = _ref24.angle,
|
|
639
|
+
transparent = _ref24.transparent;
|
|
620
640
|
var lines = String(label).split('\n');
|
|
621
641
|
var linesCount = lines.length;
|
|
622
642
|
var SLabelLine = 'tspan';
|
|
@@ -625,7 +645,7 @@ var Label = function Label(_ref26) {
|
|
|
625
645
|
var transform = "rotate(".concat([angleDegs].concat(transformOrigin).join(', '), ")");
|
|
626
646
|
var sstyles = (0, _core.sstyled)(styles);
|
|
627
647
|
var sLabelStyles = sstyles.cn('SLabel', {
|
|
628
|
-
color: resolveColor(color),
|
|
648
|
+
'color': resolveColor(color),
|
|
629
649
|
'text-cursor': isHorizontal ? 'text' : 'vertical-text',
|
|
630
650
|
transparent: transparent
|
|
631
651
|
});
|
|
@@ -657,18 +677,18 @@ var Radian = (0, _createElement["default"])(RadialTreeRadian, {
|
|
|
657
677
|
|
|
658
678
|
/** @deprecated */
|
|
659
679
|
|
|
660
|
-
var Title = function Title(
|
|
680
|
+
var Title = function Title(_ref25) {
|
|
661
681
|
var _ref9;
|
|
662
|
-
var STitle =
|
|
663
|
-
Children =
|
|
664
|
-
children =
|
|
665
|
-
styles =
|
|
666
|
-
textSize =
|
|
667
|
-
color =
|
|
668
|
-
resolveColor =
|
|
669
|
-
x =
|
|
670
|
-
y =
|
|
671
|
-
dataHintsHandler =
|
|
682
|
+
var STitle = _ref25.Element,
|
|
683
|
+
Children = _ref25.Children,
|
|
684
|
+
children = _ref25.children,
|
|
685
|
+
styles = _ref25.styles,
|
|
686
|
+
textSize = _ref25.textSize,
|
|
687
|
+
color = _ref25.color,
|
|
688
|
+
resolveColor = _ref25.resolveColor,
|
|
689
|
+
x = _ref25.x,
|
|
690
|
+
y = _ref25.y,
|
|
691
|
+
dataHintsHandler = _ref25.dataHintsHandler;
|
|
672
692
|
if (typeof children === 'string') {
|
|
673
693
|
dataHintsHandler.setTitle('vertical', children);
|
|
674
694
|
}
|
|
@@ -687,6 +707,5 @@ var RadialTree = (0, _createElement["default"])(RadialTreeBase, {
|
|
|
687
707
|
Title: Title,
|
|
688
708
|
Radian: Radian
|
|
689
709
|
});
|
|
690
|
-
var _default = RadialTree;
|
|
691
|
-
exports["default"] = _default;
|
|
710
|
+
var _default = exports["default"] = RadialTree;
|
|
692
711
|
//# sourceMappingURL=RadialTree.js.map
|