@semcore/d3-chart 3.61.0-prerelease.5 → 3.61.0-prerelease.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/AnimatedClipPath.js +15 -11
- package/lib/cjs/AnimatedClipPath.js.map +1 -1
- package/lib/cjs/Area.js +48 -71
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +108 -170
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +34 -29
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +137 -211
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +82 -92
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +139 -154
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +38 -55
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +18 -15
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +34 -29
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +45 -52
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +41 -63
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +12 -16
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +36 -29
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +261 -281
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +154 -169
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +51 -45
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +25 -20
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +61 -71
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +31 -20
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +16 -12
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +73 -73
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +52 -77
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/DataAccessibilityTable.js +3 -2
- package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +86 -43
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +19 -44
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/bezier.js +2 -1
- package/lib/cjs/a11y/bezier.js.map +1 -1
- package/lib/cjs/a11y/focus.js +6 -5
- package/lib/cjs/a11y/focus.js.map +1 -1
- package/lib/cjs/a11y/hints.js +9 -6
- package/lib/cjs/a11y/hints.js.map +1 -1
- package/lib/cjs/a11y/insights.js +64 -63
- package/lib/cjs/a11y/insights.js.map +1 -1
- package/lib/cjs/a11y/intl.js +2 -1
- package/lib/cjs/a11y/intl.js.map +1 -1
- package/lib/cjs/a11y/locale.js +5 -5
- package/lib/cjs/a11y/locale.js.map +1 -1
- package/lib/cjs/a11y/serialize.js +17 -15
- package/lib/cjs/a11y/serialize.js.map +1 -1
- package/lib/cjs/a11y/summarize.js +2 -1
- package/lib/cjs/a11y/summarize.js.map +1 -1
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/a11y/translations/module/de.json +2 -2
- package/lib/cjs/a11y/translations/module/en.json +2 -2
- package/lib/cjs/a11y/translations/module/es.json +2 -2
- package/lib/cjs/a11y/translations/module/fr.json +2 -2
- package/lib/cjs/a11y/translations/module/it.json +2 -2
- package/lib/cjs/a11y/translations/module/ja.json +2 -2
- package/lib/cjs/a11y/translations/module/ko.json +2 -2
- package/lib/cjs/a11y/translations/module/nl.json +2 -2
- package/lib/cjs/a11y/translations/module/pl.json +2 -2
- package/lib/cjs/a11y/translations/module/pt.json +2 -2
- package/lib/cjs/a11y/translations/module/sv.json +2 -2
- package/lib/cjs/a11y/translations/module/tr.json +2 -2
- package/lib/cjs/a11y/translations/module/vi.json +2 -2
- package/lib/cjs/a11y/translations/module/zh.json +2 -2
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/color.js +3 -2
- package/lib/cjs/color.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.js +83 -157
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js +51 -24
- package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.js +69 -85
- package/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.js +27 -31
- package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +147 -340
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +15 -11
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +22 -16
- package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.js +44 -16
- package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.js +48 -22
- package/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.js +19 -15
- package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.js +21 -16
- package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.js +19 -16
- package/lib/cjs/component/Chart/VennChart.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/index.js +8 -7
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +23 -45
- package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +24 -19
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +83 -108
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +2 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +23 -18
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/index.js +2 -1
- package/lib/cjs/component/ChartLegend/index.js.map +1 -1
- package/lib/cjs/component/Cigarette/Cigarette.js +20 -16
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js +24 -19
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/cjs/createElement.d.js.map +1 -1
- package/lib/cjs/createElement.js +12 -10
- package/lib/cjs/createElement.js.map +1 -1
- package/lib/cjs/index.js +2 -9
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/axis.shadow.css +1 -39
- package/lib/cjs/style/bubble.shadow.css +0 -8
- package/lib/cjs/style/hover.shadow.css +2 -2
- package/lib/cjs/style/plot.shadow.css +6 -8
- package/lib/cjs/style/plotA11yModule.shadow.css +11 -10
- package/lib/cjs/style/plotA11yView.shadow.css +26 -13
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/translations/de.json +0 -1
- package/lib/cjs/translations/es.json +0 -1
- package/lib/cjs/translations/fr.json +0 -1
- package/lib/cjs/translations/it.json +0 -1
- package/lib/cjs/translations/ja.json +0 -1
- package/lib/cjs/translations/ko.json +0 -1
- package/lib/cjs/translations/nl.json +0 -1
- package/lib/cjs/translations/pl.json +0 -1
- package/lib/cjs/translations/pt.json +0 -1
- package/lib/cjs/translations/sv.json +0 -1
- package/lib/cjs/translations/tr.json +1 -2
- package/lib/cjs/translations/vi.json +0 -1
- package/lib/cjs/translations/zh.json +0 -1
- package/lib/cjs/types/Area.d.js.map +1 -1
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/Bar.d.js.map +1 -1
- package/lib/cjs/types/Bubble.d.js.map +1 -1
- package/lib/cjs/types/ClipPath.d.js.map +1 -1
- package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/GroupBar.d.js.map +1 -1
- package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/types/Line.d.js.map +1 -1
- package/lib/cjs/types/Plot.d.js.map +1 -1
- package/lib/cjs/types/Radar.d.js.map +1 -1
- package/lib/cjs/types/Reference.d.js.map +1 -1
- package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
- package/lib/cjs/types/StackBar.d.js.map +1 -1
- package/lib/cjs/types/StackedArea.d.js.map +1 -1
- package/lib/cjs/types/Tooltip.d.js.map +1 -1
- package/lib/cjs/types/Venn.d.js.map +1 -1
- package/lib/cjs/types/context.d.js.map +1 -1
- package/lib/cjs/types/index.d.js +2 -14
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +55 -36
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/AnimatedClipPath.js +11 -9
- package/lib/es6/AnimatedClipPath.js.map +1 -1
- package/lib/es6/Area.js +45 -70
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +104 -168
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +29 -27
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +135 -211
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +77 -89
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +137 -154
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +36 -55
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +15 -13
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +29 -27
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +41 -51
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +37 -61
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +3 -7
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +32 -28
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +257 -279
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +151 -168
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +45 -43
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +19 -16
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +59 -71
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +27 -17
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +13 -10
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +65 -68
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +48 -75
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +86 -43
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +16 -43
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/bezier.js.map +1 -1
- package/lib/es6/a11y/focus.js +4 -4
- package/lib/es6/a11y/focus.js.map +1 -1
- package/lib/es6/a11y/hints.js +2 -2
- package/lib/es6/a11y/hints.js.map +1 -1
- package/lib/es6/a11y/insights.js +61 -61
- package/lib/es6/a11y/insights.js.map +1 -1
- package/lib/es6/a11y/intl.js.map +1 -1
- package/lib/es6/a11y/locale.js +2 -3
- package/lib/es6/a11y/locale.js.map +1 -1
- package/lib/es6/a11y/serialize.js +13 -14
- package/lib/es6/a11y/serialize.js.map +1 -1
- package/lib/es6/a11y/summarize.js.map +1 -1
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/a11y/translations/module/de.json +2 -2
- package/lib/es6/a11y/translations/module/en.json +2 -2
- package/lib/es6/a11y/translations/module/es.json +2 -2
- package/lib/es6/a11y/translations/module/fr.json +2 -2
- package/lib/es6/a11y/translations/module/it.json +2 -2
- package/lib/es6/a11y/translations/module/ja.json +2 -2
- package/lib/es6/a11y/translations/module/ko.json +2 -2
- package/lib/es6/a11y/translations/module/nl.json +2 -2
- package/lib/es6/a11y/translations/module/pl.json +2 -2
- package/lib/es6/a11y/translations/module/pt.json +2 -2
- package/lib/es6/a11y/translations/module/sv.json +2 -2
- package/lib/es6/a11y/translations/module/tr.json +2 -2
- package/lib/es6/a11y/translations/module/vi.json +2 -2
- package/lib/es6/a11y/translations/module/zh.json +2 -2
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/color.js +1 -1
- package/lib/es6/color.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.js +80 -159
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js +48 -23
- package/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.js +67 -84
- package/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.js +24 -30
- package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +144 -341
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js +12 -9
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +18 -14
- package/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.js +41 -15
- package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.js +45 -20
- package/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.js +16 -13
- package/lib/es6/component/Chart/RadarChart.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.js +18 -15
- package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.js +16 -14
- package/lib/es6/component/Chart/VennChart.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/Chart/index.js +6 -6
- package/lib/es6/component/Chart/index.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +20 -43
- package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +19 -17
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +74 -102
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +17 -15
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/index.js.map +1 -1
- package/lib/es6/component/Cigarette/Cigarette.js +17 -14
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.js +21 -17
- package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/es6/createElement.d.js.map +1 -1
- package/lib/es6/createElement.js +7 -7
- package/lib/es6/createElement.js.map +1 -1
- package/lib/es6/index.js +0 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/axis.shadow.css +1 -39
- package/lib/es6/style/bubble.shadow.css +0 -8
- package/lib/es6/style/hover.shadow.css +2 -2
- package/lib/es6/style/plot.shadow.css +6 -8
- package/lib/es6/style/plotA11yModule.shadow.css +11 -10
- package/lib/es6/style/plotA11yView.shadow.css +26 -13
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/translations/de.json +0 -1
- package/lib/es6/translations/es.json +0 -1
- package/lib/es6/translations/fr.json +0 -1
- package/lib/es6/translations/it.json +0 -1
- package/lib/es6/translations/ja.json +0 -1
- package/lib/es6/translations/ko.json +0 -1
- package/lib/es6/translations/nl.json +0 -1
- package/lib/es6/translations/pl.json +0 -1
- package/lib/es6/translations/pt.json +0 -1
- package/lib/es6/translations/sv.json +0 -1
- package/lib/es6/translations/tr.json +1 -2
- package/lib/es6/translations/vi.json +0 -1
- package/lib/es6/translations/zh.json +0 -1
- package/lib/es6/types/Area.d.js.map +1 -1
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/Bar.d.js.map +1 -1
- package/lib/es6/types/Bubble.d.js.map +1 -1
- package/lib/es6/types/ClipPath.d.js.map +1 -1
- package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/GroupBar.d.js.map +1 -1
- package/lib/es6/types/HorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/types/Line.d.js.map +1 -1
- package/lib/es6/types/Plot.d.js.map +1 -1
- package/lib/es6/types/Radar.d.js.map +1 -1
- package/lib/es6/types/Reference.d.js.map +1 -1
- package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/es6/types/ScatterPlot.d.js.map +1 -1
- package/lib/es6/types/StackBar.d.js.map +1 -1
- package/lib/es6/types/StackedArea.d.js.map +1 -1
- package/lib/es6/types/Tooltip.d.js.map +1 -1
- package/lib/es6/types/Venn.d.js.map +1 -1
- package/lib/es6/types/context.d.js.map +1 -1
- package/lib/es6/types/index.d.js +0 -2
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +16 -16
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +16 -9
- package/lib/esm/Area.mjs +36 -51
- package/lib/esm/Axis.mjs +86 -143
- package/lib/esm/Bar.mjs +34 -31
- package/lib/esm/Bubble.mjs +106 -154
- package/lib/esm/CompactHorizontalBar.mjs +80 -88
- package/lib/esm/Donut.mjs +75 -87
- package/lib/esm/Dots.mjs +34 -50
- package/lib/esm/GroupBar.mjs +14 -12
- package/lib/esm/HorizontalBar.mjs +34 -31
- package/lib/esm/Hover.mjs +50 -53
- package/lib/esm/Line.mjs +31 -45
- package/lib/esm/Pattern.mjs +2 -4
- package/lib/esm/Plot.mjs +35 -30
- package/lib/esm/Radar.mjs +175 -188
- package/lib/esm/RadialTree.mjs +111 -105
- package/lib/esm/Reference.mjs +40 -37
- package/lib/esm/ResponsiveContainer.mjs +21 -18
- package/lib/esm/ScatterPlot.mjs +40 -49
- package/lib/esm/StackBar.mjs +28 -18
- package/lib/esm/StackedArea.mjs +16 -13
- package/lib/esm/Tooltip.mjs +59 -56
- package/lib/esm/Venn.mjs +47 -67
- package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
- package/lib/esm/a11y/PlotA11yModule.mjs +74 -35
- package/lib/esm/a11y/PlotA11yView.mjs +17 -41
- package/lib/esm/a11y/focus.mjs +4 -4
- package/lib/esm/a11y/hints.mjs +2 -2
- package/lib/esm/a11y/insights.mjs +76 -76
- package/lib/esm/a11y/locale.mjs +2 -2
- package/lib/esm/a11y/serialize.mjs +12 -12
- package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/a11y/translations/module/de.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/en.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/es.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/fr.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/it.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/ja.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/ko.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/nl.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/pl.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/pt.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/sv.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/tr.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/vi.json.mjs +4 -2
- package/lib/esm/a11y/translations/module/zh.json.mjs +4 -2
- package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +65 -141
- package/lib/esm/component/Chart/AreaChart.mjs +51 -27
- package/lib/esm/component/Chart/BarChart.mjs +51 -64
- package/lib/esm/component/Chart/BubbleChart.mjs +25 -30
- package/lib/esm/component/Chart/CigaretteChart.mjs +119 -298
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +15 -13
- package/lib/esm/component/Chart/DonutChart.mjs +19 -16
- package/lib/esm/component/Chart/HistogramChart.mjs +46 -22
- package/lib/esm/component/Chart/LineChart.mjs +46 -23
- package/lib/esm/component/Chart/RadarChart.mjs +18 -16
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +21 -18
- package/lib/esm/component/Chart/VennChart.mjs +19 -16
- package/lib/esm/component/Chart/index.mjs +6 -6
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +22 -45
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +22 -19
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +75 -88
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +25 -22
- package/lib/esm/component/ChartLegend/index.mjs +0 -2
- package/lib/esm/component/Cigarette/Cigarette.mjs +19 -16
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +22 -18
- package/lib/esm/createElement.mjs +10 -8
- package/lib/esm/index.mjs +0 -3
- package/lib/esm/style/axis.shadow.css +1 -39
- package/lib/esm/style/bubble.shadow.css +0 -8
- package/lib/esm/style/hover.shadow.css +2 -2
- package/lib/esm/style/plot.shadow.css +6 -8
- package/lib/esm/style/plotA11yModule.shadow.css +11 -10
- package/lib/esm/style/plotA11yView.shadow.css +26 -13
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/translations/es.json.mjs +0 -1
- package/lib/esm/translations/fr.json.mjs +0 -1
- package/lib/esm/translations/it.json.mjs +0 -1
- package/lib/esm/translations/ja.json.mjs +0 -1
- package/lib/esm/translations/ko.json.mjs +0 -1
- package/lib/esm/translations/nl.json.mjs +0 -1
- package/lib/esm/translations/pl.json.mjs +0 -1
- package/lib/esm/translations/pt.json.mjs +0 -1
- package/lib/esm/translations/sv.json.mjs +0 -1
- package/lib/esm/translations/tr.json.mjs +1 -2
- package/lib/esm/translations/vi.json.mjs +0 -1
- package/lib/esm/translations/zh.json.mjs +0 -1
- package/lib/esm/utils.mjs +11 -11
- package/lib/types/Area.d.ts +6 -9
- package/lib/types/Axis.d.ts +3 -10
- package/lib/types/Bar.d.ts +6 -7
- package/lib/types/Bubble.d.ts +5 -21
- package/lib/types/ClipPath.d.ts +3 -4
- package/lib/types/CompactHorizontalBar.d.ts +8 -7
- package/lib/types/Donut.d.ts +5 -8
- package/lib/types/GroupBar.d.ts +6 -6
- package/lib/types/HorizontalBar.d.ts +6 -7
- package/lib/types/Hover.d.ts +8 -8
- package/lib/types/Line.d.ts +6 -9
- package/lib/types/Pattern.d.ts +51 -51
- package/lib/types/Plot.d.ts +9 -11
- package/lib/types/Radar.d.ts +7 -10
- package/lib/types/RadialTree.d.ts +54 -10
- package/lib/types/Reference.d.ts +5 -6
- package/lib/types/ResponsiveContainer.d.ts +4 -5
- package/lib/types/ScatterPlot.d.ts +5 -8
- package/lib/types/StackBar.d.ts +6 -7
- package/lib/types/StackedArea.d.ts +5 -6
- package/lib/types/Tooltip.d.ts +12 -12
- package/lib/types/Venn.d.ts +6 -7
- package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
- package/lib/types/a11y/PlotA11yModule.d.ts +11 -4
- package/lib/types/a11y/PlotA11yView.d.ts +2 -13
- package/lib/types/a11y/hints.d.ts +5 -5
- package/lib/types/a11y/insights.d.ts +1 -1
- package/lib/types/a11y/intl.d.ts +1 -1
- package/lib/types/a11y/serialize.d.ts +7 -7
- package/lib/types/a11y/summarize.d.ts +2 -2
- package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
- package/lib/types/component/Chart/AbstractChart.d.ts +13 -20
- package/lib/types/component/Chart/AbstractChart.type.d.ts +25 -39
- package/lib/types/component/Chart/AreaChart.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +7 -17
- package/lib/types/component/Chart/BarChart.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +9 -14
- package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +5 -10
- package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +8 -18
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +6 -10
- package/lib/types/component/Chart/DonutChart.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +7 -16
- package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +4 -7
- package/lib/types/component/Chart/LineChart.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +7 -16
- package/lib/types/component/Chart/RadarChart.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +5 -7
- package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +6 -12
- package/lib/types/component/Chart/VennChart.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +6 -12
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +6 -8
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +5 -4
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +5 -4
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +10 -17
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
- package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
- package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +4 -3
- package/lib/types/index.d.ts +1 -3
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +0 -12
- package/lib/types/utils.d.ts +17 -17
- package/package.json +10 -10
- package/lib/cjs/component/SvgElement.js +0 -21
- package/lib/cjs/component/SvgElement.js.map +0 -1
- package/lib/cjs/style/abstract-chart.shadow.css +0 -12
- package/lib/es6/component/SvgElement.js +0 -14
- package/lib/es6/component/SvgElement.js.map +0 -1
- package/lib/es6/style/abstract-chart.shadow.css +0 -12
- package/lib/esm/component/SvgElement.mjs +0 -14
- package/lib/esm/style/abstract-chart.shadow.css +0 -12
- package/lib/types/component/SvgElement.d.ts +0 -10
package/lib/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");
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -11,50 +11,51 @@ 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 _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
15
15
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
|
+
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
16
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
|
-
var
|
|
18
|
-
var _assignProps = _interopRequireDefault(require("@semcore/core/lib/utils/assignProps"));
|
|
19
|
-
var _canUseDOM = _interopRequireDefault(require("@semcore/core/lib/utils/canUseDOM"));
|
|
20
|
-
var _getOriginChildren = _interopRequireDefault(require("@semcore/core/lib/utils/getOriginChildren"));
|
|
21
|
-
var _uniqueID = _interopRequireDefault(require("@semcore/core/lib/utils/uniqueID"));
|
|
22
|
-
var _d3Transition = require("d3-transition");
|
|
18
|
+
var _index = require("@semcore/utils/lib/core/index");
|
|
23
19
|
var _react = _interopRequireDefault(require("react"));
|
|
20
|
+
var _d3Transition = require("d3-transition");
|
|
21
|
+
var _core = require("@semcore/core");
|
|
22
|
+
var _uniqueID = _interopRequireDefault(require("@semcore/utils/lib/uniqueID"));
|
|
23
|
+
var _assignProps = _interopRequireDefault(require("@semcore/utils/lib/assignProps"));
|
|
24
|
+
var _getOriginChildren = _interopRequireDefault(require("@semcore/utils/lib/getOriginChildren"));
|
|
25
|
+
var _canUseDOM = _interopRequireDefault(require("@semcore/utils/lib/canUseDOM"));
|
|
24
26
|
var _createElement = _interopRequireDefault(require("./createElement"));
|
|
25
|
-
var _Pattern = require("./Pattern");
|
|
26
27
|
var _utils = require("./utils");
|
|
28
|
+
var _Pattern = require("./Pattern");
|
|
27
29
|
var _excluded = ["data"];
|
|
28
30
|
/*!__reshadow-styles__:"./style/radial-tree.shadow.css"*/
|
|
29
|
-
var style = (/*__reshadow_css_start__*/
|
|
31
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SRadian_1efrs_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, rgb(92, 92, 196))}.___SLine_1efrs_gg_{stroke:var(--intergalactic-text-large-info, rgb(92, 92, 196))}.___SLine_1efrs_gg_.__stroke_1efrs_gg_{stroke:var(--stroke_1efrs)}.___SLine_1efrs_gg_.__transparent_1efrs_gg_{opacity:.3}.___SCap_1efrs_gg_{transition:r .1s}.___SCap_1efrs_gg_.__pattern_1efrs_gg_{stroke:var(--intergalactic-chart-grid-border, #fff);stroke-width:1px}.___SCap_1efrs_gg_.__transparent_1efrs_gg_,.___SIcon_1efrs_gg_.__transparent_1efrs_gg_,.___SLabel_1efrs_gg_.__transparent_1efrs_gg_{opacity:.3}.___SLabel_1efrs_gg_{fill:var(--color_1efrs)}@media (hover:hover){.___SRadian_1efrs_gg_:hover .___SLabel_1efrs_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1efrs_gg_{transition:none}}", /*__inner_css_end__*/"1efrs_gg_"),
|
|
30
32
|
/*__reshadow_css_end__*/
|
|
31
33
|
{
|
|
32
|
-
"__SRadian": "
|
|
33
|
-
"__SLine": "
|
|
34
|
-
"_stroke": "
|
|
35
|
-
"--stroke": "--
|
|
36
|
-
"_transparent": "
|
|
37
|
-
"__SCap": "
|
|
38
|
-
"_pattern": "
|
|
39
|
-
"__SIcon": "
|
|
40
|
-
"__SLabel": "
|
|
41
|
-
"--color": "--
|
|
42
|
-
"__SLineCap": "
|
|
34
|
+
"__SRadian": "___SRadian_1efrs_gg_",
|
|
35
|
+
"__SLine": "___SLine_1efrs_gg_",
|
|
36
|
+
"_stroke": "__stroke_1efrs_gg_",
|
|
37
|
+
"--stroke": "--stroke_1efrs",
|
|
38
|
+
"_transparent": "__transparent_1efrs_gg_",
|
|
39
|
+
"__SCap": "___SCap_1efrs_gg_",
|
|
40
|
+
"_pattern": "__pattern_1efrs_gg_",
|
|
41
|
+
"__SIcon": "___SIcon_1efrs_gg_",
|
|
42
|
+
"__SLabel": "___SLabel_1efrs_gg_",
|
|
43
|
+
"--color": "--color_1efrs",
|
|
44
|
+
"__SLineCap": "___SLineCap_1efrs_gg_"
|
|
43
45
|
});
|
|
44
46
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
|
45
|
-
|
|
46
|
-
/** @deprecated */
|
|
47
47
|
var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
48
|
+
(0, _inherits2["default"])(RadialTreeBase, _Component);
|
|
49
|
+
var _super = (0, _createSuper2["default"])(RadialTreeBase);
|
|
48
50
|
function RadialTreeBase(props) {
|
|
49
51
|
var _this;
|
|
50
52
|
(0, _classCallCheck2["default"])(this, RadialTreeBase);
|
|
51
|
-
_this = (
|
|
52
|
-
(0, _defineProperty2["default"])(_this, "Element", void 0);
|
|
53
|
-
_this.handleRadianClick = _this.handleRadianClick.bind(_this);
|
|
53
|
+
_this = _super.call(this, props);
|
|
54
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "Element", void 0);
|
|
55
|
+
_this.handleRadianClick = _this.handleRadianClick.bind((0, _assertThisInitialized2["default"])(_this));
|
|
54
56
|
return _this;
|
|
55
57
|
}
|
|
56
|
-
(0,
|
|
57
|
-
return (0, _createClass2["default"])(RadialTreeBase, [{
|
|
58
|
+
(0, _createClass2["default"])(RadialTreeBase, [{
|
|
58
59
|
key: "uncontrolledProps",
|
|
59
60
|
value: function uncontrolledProps() {
|
|
60
61
|
return {
|
|
@@ -71,7 +72,7 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
71
72
|
if (!(0, _canUseDOM["default"])()) return;
|
|
72
73
|
var preferReduceMotion = (_window$matchMedia = window.matchMedia('(prefers-reduced-motion: reduce)')) === null || _window$matchMedia === void 0 ? void 0 : _window$matchMedia.matches;
|
|
73
74
|
|
|
74
|
-
/** using `!(>)` instead of `<=` to get true on
|
|
75
|
+
/** using `!(>)` instead of `<=` to get true on NaN and non numbers stuff */
|
|
75
76
|
if (!(duration > 0)) return;
|
|
76
77
|
if (preferReduceMotion) return;
|
|
77
78
|
var circlesAnimation = (0, _d3Transition.transition)().selection().selectAll("[data-radial-animation=".concat(uid, "-cap-circle]")).interrupt();
|
|
@@ -84,13 +85,13 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
84
85
|
var labelsNodes = linesAnimation.nodes();
|
|
85
86
|
if (circlesNodes.length > 0) {
|
|
86
87
|
var attrs = circlesNodes.map(function (node) {
|
|
87
|
-
var _lineNode$x, _lineNode$y;
|
|
88
|
-
var radianIndex =
|
|
88
|
+
var _lineNode$x, _lineNode$x$baseVal, _lineNode$y, _lineNode$y$baseVal;
|
|
89
|
+
var radianIndex = parseInt(node.dataset.radianIndex, 10);
|
|
89
90
|
var lineNode = linesNodes[radianIndex];
|
|
90
91
|
return {
|
|
91
92
|
from: {
|
|
92
|
-
cx: (_lineNode$x = lineNode.x1) === null || _lineNode$x === void 0
|
|
93
|
-
cy: (_lineNode$y = lineNode.y1) === null || _lineNode$y === void 0
|
|
93
|
+
cx: (_lineNode$x = lineNode.x1) === null || _lineNode$x === void 0 ? void 0 : (_lineNode$x$baseVal = _lineNode$x.baseVal) === null || _lineNode$x$baseVal === void 0 ? void 0 : _lineNode$x$baseVal.value,
|
|
94
|
+
cy: (_lineNode$y = lineNode.y1) === null || _lineNode$y === void 0 ? void 0 : (_lineNode$y$baseVal = _lineNode$y.baseVal) === null || _lineNode$y$baseVal === void 0 ? void 0 : _lineNode$y$baseVal.value
|
|
94
95
|
},
|
|
95
96
|
to: {
|
|
96
97
|
cx: node.dataset['cx'],
|
|
@@ -104,29 +105,25 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
104
105
|
}).attr('cy', function (_, index) {
|
|
105
106
|
var _attrs$index$from2;
|
|
106
107
|
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)
|
|
108
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
109
|
-
.attr('cx', function (_, index) {
|
|
108
|
+
}).transition().duration(duration).attr('opacity', 1).attr('cx', function (_, index) {
|
|
110
109
|
var _attrs$index$to;
|
|
111
110
|
return (_attrs$index$to = attrs[index].to) === null || _attrs$index$to === void 0 ? void 0 : _attrs$index$to.cx;
|
|
112
|
-
})
|
|
113
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
114
|
-
.attr('cy', function (_, index) {
|
|
111
|
+
}).attr('cy', function (_, index) {
|
|
115
112
|
var _attrs$index$to2;
|
|
116
113
|
return (_attrs$index$to2 = attrs[index].to) === null || _attrs$index$to2 === void 0 ? void 0 : _attrs$index$to2.cy;
|
|
117
114
|
});
|
|
118
115
|
}
|
|
119
116
|
if (iconsNodes.length > 0) {
|
|
120
117
|
var _attrs = iconsNodes.map(function (node) {
|
|
121
|
-
var _node$width, _node$height, _lineNode$x2, _lineNode$y2;
|
|
122
|
-
var width = (_node$width = node.width) === null || _node$width === void 0
|
|
123
|
-
var height = (_node$height = node.height) === null || _node$height === void 0
|
|
124
|
-
var radianIndex =
|
|
118
|
+
var _node$width, _node$width$baseVal, _node$height, _node$height$baseVal, _lineNode$x2, _lineNode$x2$baseVal, _lineNode$y2, _lineNode$y2$baseVal;
|
|
119
|
+
var width = (_node$width = node.width) === null || _node$width === void 0 ? void 0 : (_node$width$baseVal = _node$width.baseVal) === null || _node$width$baseVal === void 0 ? void 0 : _node$width$baseVal.value;
|
|
120
|
+
var height = (_node$height = node.height) === null || _node$height === void 0 ? void 0 : (_node$height$baseVal = _node$height.baseVal) === null || _node$height$baseVal === void 0 ? void 0 : _node$height$baseVal.value;
|
|
121
|
+
var radianIndex = parseInt(node.dataset.radianIndex, 10);
|
|
125
122
|
var lineNode = linesNodes[radianIndex];
|
|
126
123
|
return {
|
|
127
124
|
from: {
|
|
128
|
-
x: ((_lineNode$x2 = lineNode.x1) === null || _lineNode$x2 === void 0
|
|
129
|
-
y: ((_lineNode$y2 = lineNode.y1) === null || _lineNode$y2 === void 0
|
|
125
|
+
x: ((_lineNode$x2 = lineNode.x1) === null || _lineNode$x2 === void 0 ? void 0 : (_lineNode$x2$baseVal = _lineNode$x2.baseVal) === null || _lineNode$x2$baseVal === void 0 ? void 0 : _lineNode$x2$baseVal.value) - width / 2,
|
|
126
|
+
y: ((_lineNode$y2 = lineNode.y1) === null || _lineNode$y2 === void 0 ? void 0 : (_lineNode$y2$baseVal = _lineNode$y2.baseVal) === null || _lineNode$y2$baseVal === void 0 ? void 0 : _lineNode$y2$baseVal.value) - height / 2
|
|
130
127
|
},
|
|
131
128
|
to: {
|
|
132
129
|
x: node.dataset['x'],
|
|
@@ -134,35 +131,27 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
134
131
|
}
|
|
135
132
|
};
|
|
136
133
|
});
|
|
137
|
-
iconsAnimation.attr('opacity', 0)
|
|
138
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
139
|
-
.attr('x', function (_, index) {
|
|
134
|
+
iconsAnimation.attr('opacity', 0).attr('x', function (_, index) {
|
|
140
135
|
var _attrs$index$from3;
|
|
141
136
|
return (_attrs$index$from3 = _attrs[index].from) === null || _attrs$index$from3 === void 0 ? void 0 : _attrs$index$from3.x;
|
|
142
|
-
})
|
|
143
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
144
|
-
.attr('y', function (_, index) {
|
|
137
|
+
}).attr('y', function (_, index) {
|
|
145
138
|
var _attrs$index$from4;
|
|
146
139
|
return (_attrs$index$from4 = _attrs[index].from) === null || _attrs$index$from4 === void 0 ? void 0 : _attrs$index$from4.y;
|
|
147
|
-
}).transition().duration(duration).attr('opacity', 1)
|
|
148
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
149
|
-
.attr('x', function (_, index) {
|
|
140
|
+
}).transition().duration(duration).attr('opacity', 1).attr('x', function (_, index) {
|
|
150
141
|
var _attrs$index$to3;
|
|
151
142
|
return (_attrs$index$to3 = _attrs[index].to) === null || _attrs$index$to3 === void 0 ? void 0 : _attrs$index$to3.x;
|
|
152
|
-
})
|
|
153
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
154
|
-
.attr('y', function (_, index) {
|
|
143
|
+
}).attr('y', function (_, index) {
|
|
155
144
|
var _attrs$index$to4;
|
|
156
145
|
return (_attrs$index$to4 = _attrs[index].to) === null || _attrs$index$to4 === void 0 ? void 0 : _attrs$index$to4.y;
|
|
157
146
|
});
|
|
158
147
|
}
|
|
159
148
|
if (linesNodes.length > 0) {
|
|
160
149
|
var _attrs2 = linesNodes.map(function (node) {
|
|
161
|
-
var _node$x, _node$y;
|
|
150
|
+
var _node$x, _node$x$baseVal, _node$y, _node$y$baseVal;
|
|
162
151
|
return {
|
|
163
152
|
from: {
|
|
164
|
-
x2: (_node$x = node.x1) === null || _node$x === void 0
|
|
165
|
-
y2: (_node$y = node.y1) === null || _node$y === void 0
|
|
153
|
+
x2: (_node$x = node.x1) === null || _node$x === void 0 ? void 0 : (_node$x$baseVal = _node$x.baseVal) === null || _node$x$baseVal === void 0 ? void 0 : _node$x$baseVal.value,
|
|
154
|
+
y2: (_node$y = node.y1) === null || _node$y === void 0 ? void 0 : (_node$y$baseVal = _node$y.baseVal) === null || _node$y$baseVal === void 0 ? void 0 : _node$y$baseVal.value
|
|
166
155
|
},
|
|
167
156
|
to: {
|
|
168
157
|
x2: node.dataset['x2'],
|
|
@@ -170,24 +159,16 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
170
159
|
}
|
|
171
160
|
};
|
|
172
161
|
});
|
|
173
|
-
linesAnimation.attr('opacity', 0)
|
|
174
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
175
|
-
.attr('x2', function (_, index) {
|
|
162
|
+
linesAnimation.attr('opacity', 0).attr('x2', function (_, index) {
|
|
176
163
|
var _attrs2$index$from;
|
|
177
164
|
return (_attrs2$index$from = _attrs2[index].from) === null || _attrs2$index$from === void 0 ? void 0 : _attrs2$index$from.x2;
|
|
178
|
-
})
|
|
179
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
180
|
-
.attr('y2', function (_, index) {
|
|
165
|
+
}).attr('y2', function (_, index) {
|
|
181
166
|
var _attrs2$index$from2;
|
|
182
167
|
return (_attrs2$index$from2 = _attrs2[index].from) === null || _attrs2$index$from2 === void 0 ? void 0 : _attrs2$index$from2.y2;
|
|
183
|
-
}).transition().duration(duration).attr('opacity', 1)
|
|
184
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
185
|
-
.attr('x2', function (_, index) {
|
|
168
|
+
}).transition().duration(duration).attr('opacity', 1).attr('x2', function (_, index) {
|
|
186
169
|
var _attrs2$index$to;
|
|
187
170
|
return (_attrs2$index$to = _attrs2[index].to) === null || _attrs2$index$to === void 0 ? void 0 : _attrs2$index$to.x2;
|
|
188
|
-
})
|
|
189
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
190
|
-
.attr('y2', function (_, index) {
|
|
171
|
+
}).attr('y2', function (_, index) {
|
|
191
172
|
var _attrs2$index$to2;
|
|
192
173
|
return (_attrs2$index$to2 = _attrs2[index].to) === null || _attrs2$index$to2 === void 0 ? void 0 : _attrs2$index$to2.y2;
|
|
193
174
|
});
|
|
@@ -224,8 +205,8 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
224
205
|
var _this$asProps2 = this.asProps,
|
|
225
206
|
data = _this$asProps2.data,
|
|
226
207
|
textSize = _this$asProps2.textSize;
|
|
227
|
-
var widths = data.map(function (
|
|
228
|
-
var label =
|
|
208
|
+
var widths = data.map(function (_ref10) {
|
|
209
|
+
var label = _ref10.label;
|
|
229
210
|
return (0, _utils.measureText)(label, textSize);
|
|
230
211
|
});
|
|
231
212
|
return Math.max.apply(Math, (0, _toConsumableArray2["default"])(widths));
|
|
@@ -275,6 +256,7 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
275
256
|
}), /*#__PURE__*/_react["default"].createElement(Children, _ref.cn("Children", {})));
|
|
276
257
|
}
|
|
277
258
|
}]);
|
|
259
|
+
return RadialTreeBase;
|
|
278
260
|
}(_core.Component);
|
|
279
261
|
/** @deprecated */
|
|
280
262
|
(0, _defineProperty2["default"])(RadialTreeBase, "displayName", 'RadialTree');
|
|
@@ -292,20 +274,21 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
|
292
274
|
defaultActiveKey: null
|
|
293
275
|
});
|
|
294
276
|
var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
277
|
+
(0, _inherits2["default"])(RadialTreeRadian, _Component2);
|
|
278
|
+
var _super2 = (0, _createSuper2["default"])(RadialTreeRadian);
|
|
295
279
|
function RadialTreeRadian(props) {
|
|
296
280
|
var _this3;
|
|
297
281
|
(0, _classCallCheck2["default"])(this, RadialTreeRadian);
|
|
298
|
-
_this3 = (
|
|
299
|
-
(0, _defineProperty2["default"])(_this3, "Element", void 0);
|
|
300
|
-
_this3.renderRadian = _this3.renderRadian.bind(_this3);
|
|
282
|
+
_this3 = _super2.call(this, props);
|
|
283
|
+
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this3), "Element", void 0);
|
|
284
|
+
_this3.renderRadian = _this3.renderRadian.bind((0, _assertThisInitialized2["default"])(_this3));
|
|
301
285
|
return _this3;
|
|
302
286
|
}
|
|
303
|
-
(0,
|
|
304
|
-
return (0, _createClass2["default"])(RadialTreeRadian, [{
|
|
287
|
+
(0, _createClass2["default"])(RadialTreeRadian, [{
|
|
305
288
|
key: "getInteractiveAreaProps",
|
|
306
|
-
value: function getInteractiveAreaProps(
|
|
289
|
+
value: function getInteractiveAreaProps(_ref12, index) {
|
|
307
290
|
var _$rootProps$data;
|
|
308
|
-
var $rootProps =
|
|
291
|
+
var $rootProps = _ref12.$rootProps;
|
|
309
292
|
var data = (_$rootProps$data = $rootProps.data) === null || _$rootProps$data === void 0 ? void 0 : _$rootProps$data[index];
|
|
310
293
|
var _this$computeRadianPo = this.computeRadianPosition(data, index),
|
|
311
294
|
xStart = _this$computeRadianPo.xStart,
|
|
@@ -323,9 +306,9 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
323
306
|
}
|
|
324
307
|
}, {
|
|
325
308
|
key: "getLineProps",
|
|
326
|
-
value: function getLineProps(
|
|
327
|
-
var _$rootProps$data2, _color;
|
|
328
|
-
var $rootProps =
|
|
309
|
+
value: function getLineProps(_ref13, index) {
|
|
310
|
+
var _$rootProps$data2, _color, _ref14;
|
|
311
|
+
var $rootProps = _ref13.$rootProps;
|
|
329
312
|
var data = (_$rootProps$data2 = $rootProps.data) === null || _$rootProps$data2 === void 0 ? void 0 : _$rootProps$data2[index];
|
|
330
313
|
var _this$computeRadianPo2 = this.computeRadianPosition(data, index),
|
|
331
314
|
xStart = _this$computeRadianPo2.xStart,
|
|
@@ -337,7 +320,7 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
337
320
|
transparent = _this$asProps5.transparent,
|
|
338
321
|
resolveColor = _this$asProps5.resolveColor;
|
|
339
322
|
var color = (_color = data.color) !== null && _color !== void 0 ? _color : this.asProps.color;
|
|
340
|
-
return
|
|
323
|
+
return _ref14 = {
|
|
341
324
|
x1: xStart,
|
|
342
325
|
y1: yStart,
|
|
343
326
|
x2: xEnd,
|
|
@@ -345,13 +328,13 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
345
328
|
stroke: color,
|
|
346
329
|
resolveColor: resolveColor,
|
|
347
330
|
transparent: transparent
|
|
348
|
-
}, 'data-x1', xStart), 'data-y1', yStart), 'data-x2', xEnd), 'data-y2', yEnd), 'data-radial-animation', "".concat(uid, "-line")), 'data-radian-index', index);
|
|
331
|
+
}, (0, _defineProperty2["default"])(_ref14, 'data-x1', xStart), (0, _defineProperty2["default"])(_ref14, 'data-y1', yStart), (0, _defineProperty2["default"])(_ref14, 'data-x2', xEnd), (0, _defineProperty2["default"])(_ref14, 'data-y2', yEnd), (0, _defineProperty2["default"])(_ref14, 'data-radial-animation', "".concat(uid, "-line")), (0, _defineProperty2["default"])(_ref14, 'data-radian-index', index), _ref14;
|
|
349
332
|
}
|
|
350
333
|
}, {
|
|
351
334
|
key: "getCapProps",
|
|
352
|
-
value: function getCapProps(
|
|
353
|
-
var _$rootProps$data3, _color2;
|
|
354
|
-
var $rootProps =
|
|
335
|
+
value: function getCapProps(_ref15, index) {
|
|
336
|
+
var _$rootProps$data3, _color2, _ref16;
|
|
337
|
+
var $rootProps = _ref15.$rootProps;
|
|
355
338
|
var data = (_$rootProps$data3 = $rootProps.data) === null || _$rootProps$data3 === void 0 ? void 0 : _$rootProps$data3[index];
|
|
356
339
|
var _this$computeRadianPo3 = this.computeRadianPosition(data, index),
|
|
357
340
|
xEnd = _this$computeRadianPo3.xEnd,
|
|
@@ -363,16 +346,16 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
363
346
|
resolveColor = _this$asProps6.resolveColor,
|
|
364
347
|
patterns = _this$asProps6.patterns;
|
|
365
348
|
var color = (_color2 = data.color) !== null && _color2 !== void 0 ? _color2 : this.asProps.color;
|
|
366
|
-
return
|
|
349
|
+
return _ref16 = {
|
|
367
350
|
x: xEnd,
|
|
368
351
|
y: yEnd
|
|
369
|
-
}, '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
|
+
}, (0, _defineProperty2["default"])(_ref16, 'data-cx', xEnd), (0, _defineProperty2["default"])(_ref16, 'data-cy', yEnd), (0, _defineProperty2["default"])(_ref16, "radius", capSize), (0, _defineProperty2["default"])(_ref16, "color", color), (0, _defineProperty2["default"])(_ref16, "resolveColor", resolveColor), (0, _defineProperty2["default"])(_ref16, "transparent", transparent), (0, _defineProperty2["default"])(_ref16, "patterns", patterns), (0, _defineProperty2["default"])(_ref16, "uid", "".concat(uid, "-cap-").concat(index)), (0, _defineProperty2["default"])(_ref16, 'data-radial-animation', "".concat(uid, "-cap-circle")), (0, _defineProperty2["default"])(_ref16, 'data-radian-index', index), _ref16;
|
|
370
353
|
}
|
|
371
354
|
}, {
|
|
372
355
|
key: "getIconProps",
|
|
373
|
-
value: function getIconProps(
|
|
374
|
-
var _$rootProps$data4, _iconColor, _iconSize, _icon;
|
|
375
|
-
var $rootProps =
|
|
356
|
+
value: function getIconProps(_ref17, index) {
|
|
357
|
+
var _$rootProps$data4, _iconColor, _iconSize, _icon, _ref18;
|
|
358
|
+
var $rootProps = _ref17.$rootProps;
|
|
376
359
|
var data = (_$rootProps$data4 = $rootProps.data) === null || _$rootProps$data4 === void 0 ? void 0 : _$rootProps$data4[index];
|
|
377
360
|
var _this$computeRadianPo4 = this.computeRadianPosition(data, index),
|
|
378
361
|
xEnd = _this$computeRadianPo4.xEnd,
|
|
@@ -386,16 +369,16 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
386
369
|
var icon = (_icon = data.icon) !== null && _icon !== void 0 ? _icon : this.asProps.icon;
|
|
387
370
|
var x = xEnd - iconSize / 2;
|
|
388
371
|
var y = yEnd - iconSize / 2;
|
|
389
|
-
return
|
|
372
|
+
return _ref18 = {
|
|
390
373
|
x: x,
|
|
391
374
|
y: y
|
|
392
|
-
}, '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
|
+
}, (0, _defineProperty2["default"])(_ref18, 'data-x', x), (0, _defineProperty2["default"])(_ref18, 'data-y', y), (0, _defineProperty2["default"])(_ref18, "iconSize", iconSize), (0, _defineProperty2["default"])(_ref18, "color", iconColor !== null && iconColor !== void 0 ? iconColor : '#fff'), (0, _defineProperty2["default"])(_ref18, "resolveColor", resolveColor), (0, _defineProperty2["default"])(_ref18, 'data-radial-animation', "".concat(uid, "-cap-icon")), (0, _defineProperty2["default"])(_ref18, 'data-radian-index', index), (0, _defineProperty2["default"])(_ref18, "icon", icon), (0, _defineProperty2["default"])(_ref18, "tag", icon), (0, _defineProperty2["default"])(_ref18, "isActive", isActive), _ref18;
|
|
393
376
|
}
|
|
394
377
|
}, {
|
|
395
378
|
key: "getLabelProps",
|
|
396
|
-
value: function getLabelProps(
|
|
397
|
-
var _$rootProps$data5, _color3;
|
|
398
|
-
var $rootProps =
|
|
379
|
+
value: function getLabelProps(_ref19, index) {
|
|
380
|
+
var _$rootProps$data5, _color3, _ref21;
|
|
381
|
+
var $rootProps = _ref19.$rootProps;
|
|
399
382
|
var data = (_$rootProps$data5 = $rootProps.data) === null || _$rootProps$data5 === void 0 ? void 0 : _$rootProps$data5[index];
|
|
400
383
|
var _this$computeRadianPo5 = this.computeRadianPosition(data, index),
|
|
401
384
|
xLabelCenter = _this$computeRadianPo5.xLabelCenter,
|
|
@@ -407,14 +390,14 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
407
390
|
textSize = _this$asProps8.textSize,
|
|
408
391
|
transparent = _this$asProps8.transparent,
|
|
409
392
|
resolveColor = _this$asProps8.resolveColor;
|
|
410
|
-
var
|
|
411
|
-
label =
|
|
393
|
+
var _ref20 = data,
|
|
394
|
+
label = _ref20.label;
|
|
412
395
|
var color = (_color3 = data.color) !== null && _color3 !== void 0 ? _color3 : this.asProps.color;
|
|
413
|
-
return
|
|
396
|
+
return _ref21 = {
|
|
414
397
|
x: xLabelCenter,
|
|
415
398
|
y: yLabelCenter,
|
|
416
399
|
angle: labelAngle
|
|
417
|
-
}, 'data-radial-animation', "".concat(uid, "-label")), 'data-radian-index', index), "label", label), "color", color), "resolveColor", resolveColor), "isHorizontal", isHorizontal), "textSize", textSize), "transparent", transparent);
|
|
400
|
+
}, (0, _defineProperty2["default"])(_ref21, 'data-radial-animation', "".concat(uid, "-label")), (0, _defineProperty2["default"])(_ref21, 'data-radian-index', index), (0, _defineProperty2["default"])(_ref21, "label", label), (0, _defineProperty2["default"])(_ref21, "color", color), (0, _defineProperty2["default"])(_ref21, "resolveColor", resolveColor), (0, _defineProperty2["default"])(_ref21, "isHorizontal", isHorizontal), (0, _defineProperty2["default"])(_ref21, "textSize", textSize), (0, _defineProperty2["default"])(_ref21, "transparent", transparent), _ref21;
|
|
418
401
|
}
|
|
419
402
|
}, {
|
|
420
403
|
key: "getRadianKey",
|
|
@@ -476,10 +459,10 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
476
459
|
key: "renderRadian",
|
|
477
460
|
value: function renderRadian(data, index) {
|
|
478
461
|
var _ref2;
|
|
479
|
-
var _this$
|
|
480
|
-
styles = _this$
|
|
481
|
-
Children = _this$
|
|
482
|
-
onRadianClick = _this$
|
|
462
|
+
var _this$asProps10 = this.asProps,
|
|
463
|
+
styles = _this$asProps10.styles,
|
|
464
|
+
Children = _this$asProps10.Children,
|
|
465
|
+
onRadianClick = _this$asProps10.onRadianClick;
|
|
483
466
|
var key = this.getRadianKey(data, index);
|
|
484
467
|
var SRadian = 'g';
|
|
485
468
|
var children = (0, _getOriginChildren["default"])(Children);
|
|
@@ -511,6 +494,7 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
511
494
|
}));
|
|
512
495
|
}
|
|
513
496
|
}]);
|
|
497
|
+
return RadialTreeRadian;
|
|
514
498
|
}(_core.Component);
|
|
515
499
|
/** @deprecated */
|
|
516
500
|
(0, _defineProperty2["default"])(RadialTreeRadian, "displayName", 'RadialTreeRadian');
|
|
@@ -523,47 +507,47 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
|
523
507
|
iconSize: 16,
|
|
524
508
|
textSize: 14
|
|
525
509
|
});
|
|
526
|
-
function InteractiveArea(
|
|
510
|
+
var InteractiveArea = function InteractiveArea(_ref22) {
|
|
527
511
|
var _ref4;
|
|
528
|
-
var SInteractiveArea =
|
|
529
|
-
styles =
|
|
512
|
+
var SInteractiveArea = _ref22.Element,
|
|
513
|
+
styles = _ref22.styles;
|
|
530
514
|
return _ref4 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SInteractiveArea, _ref4.cn("SInteractiveArea", {
|
|
531
515
|
"stroke": 'transparent',
|
|
532
516
|
"render": 'line'
|
|
533
517
|
}));
|
|
534
|
-
}
|
|
518
|
+
};
|
|
535
519
|
|
|
536
520
|
/** @deprecated */
|
|
537
521
|
|
|
538
|
-
function Line(
|
|
522
|
+
var Line = function Line(_ref23) {
|
|
539
523
|
var _ref5;
|
|
540
|
-
var SLine =
|
|
541
|
-
styles =
|
|
542
|
-
stroke =
|
|
543
|
-
resolveColor =
|
|
544
|
-
transparent =
|
|
524
|
+
var SLine = _ref23.Element,
|
|
525
|
+
styles = _ref23.styles,
|
|
526
|
+
stroke = _ref23.stroke,
|
|
527
|
+
resolveColor = _ref23.resolveColor,
|
|
528
|
+
transparent = _ref23.transparent;
|
|
545
529
|
return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SLine, _ref5.cn("SLine", {
|
|
546
530
|
"render": 'line',
|
|
547
531
|
"stroke": resolveColor(stroke),
|
|
548
532
|
"transparent": transparent
|
|
549
533
|
}));
|
|
550
|
-
}
|
|
534
|
+
};
|
|
551
535
|
|
|
552
536
|
/** @deprecated */
|
|
553
537
|
|
|
554
|
-
function Cap(
|
|
538
|
+
var Cap = function Cap(_ref24) {
|
|
555
539
|
var _ref7;
|
|
556
|
-
var SCap =
|
|
557
|
-
styles =
|
|
558
|
-
|
|
559
|
-
x =
|
|
560
|
-
|
|
561
|
-
y =
|
|
562
|
-
radius =
|
|
563
|
-
color =
|
|
564
|
-
resolveColor =
|
|
565
|
-
transparent =
|
|
566
|
-
patterns =
|
|
540
|
+
var SCap = _ref24.Element,
|
|
541
|
+
styles = _ref24.styles,
|
|
542
|
+
_ref24$x = _ref24.x,
|
|
543
|
+
x = _ref24$x === void 0 ? 0 : _ref24$x,
|
|
544
|
+
_ref24$y = _ref24.y,
|
|
545
|
+
y = _ref24$y === void 0 ? 0 : _ref24$y,
|
|
546
|
+
radius = _ref24.radius,
|
|
547
|
+
color = _ref24.color,
|
|
548
|
+
resolveColor = _ref24.resolveColor,
|
|
549
|
+
transparent = _ref24.transparent,
|
|
550
|
+
patterns = _ref24.patterns;
|
|
567
551
|
if (!patterns) {
|
|
568
552
|
var _ref6;
|
|
569
553
|
return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SCap, _ref6.cn("SCap", {
|
|
@@ -592,20 +576,20 @@ function Cap(_ref22) {
|
|
|
592
576
|
"transparent": transparent,
|
|
593
577
|
"pattern": true
|
|
594
578
|
}));
|
|
595
|
-
}
|
|
579
|
+
};
|
|
596
580
|
|
|
597
581
|
/** @deprecated */
|
|
598
582
|
|
|
599
|
-
function Icon(
|
|
583
|
+
var Icon = function Icon(_ref25) {
|
|
600
584
|
var _ref8;
|
|
601
|
-
var SIcon =
|
|
602
|
-
styles =
|
|
603
|
-
isActive =
|
|
604
|
-
tag =
|
|
605
|
-
x =
|
|
606
|
-
y =
|
|
607
|
-
iconSize =
|
|
608
|
-
transparent =
|
|
585
|
+
var SIcon = _ref25.Element,
|
|
586
|
+
styles = _ref25.styles,
|
|
587
|
+
isActive = _ref25.isActive,
|
|
588
|
+
tag = _ref25.tag,
|
|
589
|
+
x = _ref25.x,
|
|
590
|
+
y = _ref25.y,
|
|
591
|
+
iconSize = _ref25.iconSize,
|
|
592
|
+
transparent = _ref25.transparent;
|
|
609
593
|
if (!(isActive && tag)) return null;
|
|
610
594
|
var width = iconSize;
|
|
611
595
|
var height = iconSize;
|
|
@@ -617,23 +601,23 @@ function Icon(_ref23) {
|
|
|
617
601
|
"render": tag,
|
|
618
602
|
"transparent": transparent
|
|
619
603
|
}));
|
|
620
|
-
}
|
|
604
|
+
};
|
|
621
605
|
|
|
622
606
|
/** @deprecated */
|
|
623
607
|
|
|
624
|
-
function Label(
|
|
625
|
-
var SLabel =
|
|
626
|
-
Children =
|
|
627
|
-
styles =
|
|
628
|
-
label =
|
|
629
|
-
color =
|
|
630
|
-
resolveColor =
|
|
631
|
-
isHorizontal =
|
|
632
|
-
x =
|
|
633
|
-
y =
|
|
634
|
-
textSize =
|
|
635
|
-
angle =
|
|
636
|
-
transparent =
|
|
608
|
+
var Label = function Label(_ref26) {
|
|
609
|
+
var SLabel = _ref26.Element,
|
|
610
|
+
Children = _ref26.Children,
|
|
611
|
+
styles = _ref26.styles,
|
|
612
|
+
label = _ref26.label,
|
|
613
|
+
color = _ref26.color,
|
|
614
|
+
resolveColor = _ref26.resolveColor,
|
|
615
|
+
isHorizontal = _ref26.isHorizontal,
|
|
616
|
+
x = _ref26.x,
|
|
617
|
+
y = _ref26.y,
|
|
618
|
+
textSize = _ref26.textSize,
|
|
619
|
+
angle = _ref26.angle,
|
|
620
|
+
transparent = _ref26.transparent;
|
|
637
621
|
var lines = String(label).split('\n');
|
|
638
622
|
var linesCount = lines.length;
|
|
639
623
|
var SLabelLine = 'tspan';
|
|
@@ -642,7 +626,7 @@ function Label(_ref24) {
|
|
|
642
626
|
var transform = "rotate(".concat([angleDegs].concat(transformOrigin).join(', '), ")");
|
|
643
627
|
var sstyles = (0, _core.sstyled)(styles);
|
|
644
628
|
var sLabelStyles = sstyles.cn('SLabel', {
|
|
645
|
-
|
|
629
|
+
color: resolveColor(color),
|
|
646
630
|
'text-cursor': isHorizontal ? 'text' : 'vertical-text',
|
|
647
631
|
transparent: transparent
|
|
648
632
|
});
|
|
@@ -663,7 +647,7 @@ function Label(_ref24) {
|
|
|
663
647
|
key: "#".concat(lineIndex, "-").concat(lineText)
|
|
664
648
|
}, lineText);
|
|
665
649
|
}), /*#__PURE__*/_react["default"].createElement(Children, null));
|
|
666
|
-
}
|
|
650
|
+
};
|
|
667
651
|
var Radian = (0, _createElement["default"])(RadialTreeRadian, {
|
|
668
652
|
InteractiveArea: InteractiveArea,
|
|
669
653
|
Line: Line,
|
|
@@ -674,18 +658,18 @@ var Radian = (0, _createElement["default"])(RadialTreeRadian, {
|
|
|
674
658
|
|
|
675
659
|
/** @deprecated */
|
|
676
660
|
|
|
677
|
-
function Title(
|
|
661
|
+
var Title = function Title(_ref27) {
|
|
678
662
|
var _ref9;
|
|
679
|
-
var STitle =
|
|
680
|
-
Children =
|
|
681
|
-
children =
|
|
682
|
-
styles =
|
|
683
|
-
textSize =
|
|
684
|
-
color =
|
|
685
|
-
resolveColor =
|
|
686
|
-
x =
|
|
687
|
-
y =
|
|
688
|
-
dataHintsHandler =
|
|
663
|
+
var STitle = _ref27.Element,
|
|
664
|
+
Children = _ref27.Children,
|
|
665
|
+
children = _ref27.children,
|
|
666
|
+
styles = _ref27.styles,
|
|
667
|
+
textSize = _ref27.textSize,
|
|
668
|
+
color = _ref27.color,
|
|
669
|
+
resolveColor = _ref27.resolveColor,
|
|
670
|
+
x = _ref27.x,
|
|
671
|
+
y = _ref27.y,
|
|
672
|
+
dataHintsHandler = _ref27.dataHintsHandler;
|
|
689
673
|
if (typeof children === 'string') {
|
|
690
674
|
dataHintsHandler.setTitle('vertical', children);
|
|
691
675
|
}
|
|
@@ -699,10 +683,11 @@ function Title(_ref25) {
|
|
|
699
683
|
"x": x,
|
|
700
684
|
"y": y
|
|
701
685
|
}), /*#__PURE__*/_react["default"].createElement(Children, _ref9.cn("Children", {})));
|
|
702
|
-
}
|
|
686
|
+
};
|
|
703
687
|
var RadialTree = (0, _createElement["default"])(RadialTreeBase, {
|
|
704
688
|
Title: Title,
|
|
705
689
|
Radian: Radian
|
|
706
690
|
});
|
|
707
|
-
var _default =
|
|
691
|
+
var _default = RadialTree;
|
|
692
|
+
exports["default"] = _default;
|
|
708
693
|
//# sourceMappingURL=RadialTree.js.map
|