@semcore/d3-chart 16.5.0 → 17.0.0-prerelease.9
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 +10 -0
- package/lib/cjs/AnimatedClipPath.js +28 -41
- package/lib/cjs/AnimatedClipPath.js.map +1 -1
- package/lib/cjs/Area.js +187 -223
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +248 -327
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +162 -185
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +219 -248
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +448 -482
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +349 -396
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +67 -86
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +78 -93
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +149 -167
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +178 -207
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +182 -222
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +124 -126
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +100 -126
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +576 -681
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +518 -571
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +147 -178
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +64 -82
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +169 -199
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +135 -177
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +60 -73
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +193 -208
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +182 -217
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/DataAccessibilityTable.js +45 -83
- package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +37 -97
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +97 -91
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/bezier.js +17 -23
- package/lib/cjs/a11y/bezier.js.map +1 -1
- package/lib/cjs/a11y/focus.js +16 -16
- package/lib/cjs/a11y/focus.js.map +1 -1
- package/lib/cjs/a11y/hints.js +72 -75
- package/lib/cjs/a11y/hints.js.map +1 -1
- package/lib/cjs/a11y/insights.js +354 -525
- package/lib/cjs/a11y/insights.js.map +1 -1
- package/lib/cjs/a11y/intl.js +5 -5
- package/lib/cjs/a11y/intl.js.map +1 -1
- package/lib/cjs/a11y/locale.js +12 -19
- package/lib/cjs/a11y/locale.js.map +1 -1
- package/lib/cjs/a11y/serialize.js +164 -203
- package/lib/cjs/a11y/serialize.js.map +1 -1
- package/lib/cjs/a11y/summarize.js +7 -6
- package/lib/cjs/a11y/summarize.js.map +1 -1
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +16 -16
- 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 +16 -16
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/color.js +1 -1
- package/lib/cjs/color.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.js +421 -466
- 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 +97 -115
- 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 +229 -216
- 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 +114 -136
- 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 +280 -305
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +76 -108
- 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 +80 -95
- 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 +126 -148
- 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 +95 -113
- 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 +84 -110
- 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 +119 -143
- 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 +103 -122
- 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 +2 -2
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +72 -105
- 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 +58 -70
- 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 +208 -221
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +63 -73
- 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 +4 -4
- package/lib/cjs/component/ChartLegend/index.js.map +1 -1
- package/lib/cjs/component/Cigarette/Cigarette.js +115 -129
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js +107 -137
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/cjs/component/SvgElement.js +7 -7
- package/lib/cjs/component/SvgElement.js.map +1 -1
- package/lib/cjs/createElement.js +66 -65
- package/lib/cjs/createElement.js.map +1 -1
- package/lib/cjs/index.js +62 -62
- package/lib/cjs/style/axis.shadow.css +3 -0
- package/lib/cjs/style/plot.shadow.css +1 -3
- package/lib/cjs/style/plotA11yModule.shadow.css +10 -11
- package/lib/cjs/style/plotA11yView.shadow.css +13 -26
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +15 -15
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/CompactHorizontalBar.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/ResponsiveContainer.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/index.d.js +80 -80
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +122 -145
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/AnimatedClipPath.js +24 -37
- package/lib/es6/AnimatedClipPath.js.map +1 -1
- package/lib/es6/Area.js +179 -215
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +242 -321
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +154 -177
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +206 -235
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +433 -467
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +337 -384
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +60 -79
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +74 -89
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +141 -159
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +174 -203
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +173 -213
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +68 -74
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +95 -121
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +554 -659
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +500 -553
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +140 -171
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +58 -76
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +161 -191
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +130 -172
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +56 -69
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +183 -198
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +169 -204
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/DataAccessibilityTable.js +41 -80
- package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +35 -95
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +89 -84
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/bezier.js +16 -23
- package/lib/es6/a11y/bezier.js.map +1 -1
- package/lib/es6/a11y/focus.js +15 -16
- package/lib/es6/a11y/focus.js.map +1 -1
- package/lib/es6/a11y/hints.js +67 -73
- package/lib/es6/a11y/hints.js.map +1 -1
- package/lib/es6/a11y/insights.js +353 -524
- package/lib/es6/a11y/insights.js.map +1 -1
- package/lib/es6/a11y/intl.js +4 -5
- package/lib/es6/a11y/intl.js.map +1 -1
- package/lib/es6/a11y/locale.js +11 -18
- package/lib/es6/a11y/locale.js.map +1 -1
- package/lib/es6/a11y/serialize.js +162 -203
- package/lib/es6/a11y/serialize.js.map +1 -1
- package/lib/es6/a11y/summarize.js +6 -6
- package/lib/es6/a11y/summarize.js.map +1 -1
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +15 -15
- 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 +15 -15
- 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 +416 -462
- 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 +92 -111
- 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 +225 -213
- 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 +109 -132
- 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 +276 -301
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js +70 -103
- 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 +74 -90
- 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 +121 -144
- 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 +90 -109
- 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 +80 -107
- 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 +113 -138
- 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 +97 -117
- 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/ChartLegend/BaseLegend.js +70 -104
- 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 +53 -65
- 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 +198 -211
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +58 -68
- 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/Cigarette/Cigarette.js +108 -122
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.js +100 -130
- package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/es6/component/SvgElement.js +4 -5
- package/lib/es6/component/SvgElement.js.map +1 -1
- package/lib/es6/createElement.js +55 -54
- package/lib/es6/createElement.js.map +1 -1
- package/lib/es6/style/axis.shadow.css +3 -0
- package/lib/es6/style/plot.shadow.css +1 -3
- package/lib/es6/style/plotA11yModule.shadow.css +10 -11
- package/lib/es6/style/plotA11yView.shadow.css +13 -26
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +14 -14
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/CompactHorizontalBar.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/ResponsiveContainer.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/utils.js +105 -144
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +24 -36
- package/lib/esm/Area.mjs +178 -149
- package/lib/esm/Axis.mjs +241 -242
- package/lib/esm/Bar.mjs +155 -137
- package/lib/esm/Bubble.mjs +205 -171
- package/lib/esm/CompactHorizontalBar.mjs +428 -383
- package/lib/esm/Donut.mjs +315 -266
- package/lib/esm/Dots.mjs +60 -49
- package/lib/esm/GroupBar.mjs +71 -75
- package/lib/esm/HorizontalBar.mjs +142 -120
- package/lib/esm/Hover.mjs +173 -163
- package/lib/esm/Line.mjs +174 -145
- package/lib/esm/Pattern.mjs +67 -63
- package/lib/esm/Plot.mjs +98 -95
- package/lib/esm/Radar.mjs +550 -498
- package/lib/esm/RadialTree.mjs +512 -416
- package/lib/esm/Reference.mjs +137 -122
- package/lib/esm/ResponsiveContainer.mjs +58 -69
- package/lib/esm/ScatterPlot.mjs +163 -162
- package/lib/esm/StackBar.mjs +126 -147
- package/lib/esm/StackedArea.mjs +53 -61
- package/lib/esm/Tooltip.mjs +185 -175
- package/lib/esm/Venn.mjs +170 -170
- package/lib/esm/a11y/DataAccessibilityTable.mjs +46 -73
- package/lib/esm/a11y/PlotA11yModule.mjs +37 -80
- package/lib/esm/a11y/PlotA11yView.mjs +99 -74
- package/lib/esm/a11y/bezier.mjs +16 -23
- package/lib/esm/a11y/focus.mjs +15 -16
- package/lib/esm/a11y/hints.mjs +65 -71
- package/lib/esm/a11y/insights.mjs +347 -495
- package/lib/esm/a11y/intl.mjs +4 -5
- package/lib/esm/a11y/locale.mjs +12 -14
- package/lib/esm/a11y/serialize.mjs +139 -152
- package/lib/esm/a11y/summarize.mjs +3 -3
- package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +1 -1
- package/lib/esm/a11y/translations/module/de.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/en.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/es.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/fr.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/it.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/ja.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/ko.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/nl.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/pl.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/pt.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/sv.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/tr.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/vi.json.mjs +2 -4
- package/lib/esm/a11y/translations/module/zh.json.mjs +2 -4
- package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +1 -1
- package/lib/esm/color.mjs +1 -1
- package/lib/esm/component/Chart/AbstractChart.mjs +422 -415
- package/lib/esm/component/Chart/AreaChart.mjs +92 -91
- package/lib/esm/component/Chart/BarChart.mjs +225 -177
- package/lib/esm/component/Chart/BubbleChart.mjs +110 -118
- package/lib/esm/component/Chart/CigaretteChart.mjs +277 -268
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +70 -87
- package/lib/esm/component/Chart/DonutChart.mjs +74 -84
- package/lib/esm/component/Chart/HistogramChart.mjs +121 -117
- package/lib/esm/component/Chart/LineChart.mjs +90 -89
- package/lib/esm/component/Chart/RadarChart.mjs +81 -97
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +113 -111
- package/lib/esm/component/Chart/VennChart.mjs +98 -111
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +75 -97
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +54 -55
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +194 -165
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.type.mjs +1 -1
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +60 -58
- package/lib/esm/component/Cigarette/Cigarette.mjs +109 -99
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +97 -111
- package/lib/esm/component/SvgElement.mjs +4 -4
- package/lib/esm/createElement.mjs +54 -37
- package/lib/esm/style/axis.shadow.css +3 -0
- package/lib/esm/style/plot.shadow.css +1 -3
- package/lib/esm/style/plotA11yModule.shadow.css +10 -11
- package/lib/esm/style/plotA11yView.shadow.css +13 -26
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +1 -1
- package/lib/esm/utils.mjs +103 -138
- package/lib/types/Axis.d.ts +4 -0
- package/lib/types/CompactHorizontalBar.d.ts +1 -1
- package/lib/types/Hover.d.ts +1 -1
- package/lib/types/Line.d.ts +1 -1
- package/lib/types/Plot.d.ts +1 -1
- package/lib/types/Radar.d.ts +1 -1
- package/lib/types/ResponsiveContainer.d.ts +1 -1
- package/lib/types/Tooltip.d.ts +1 -3
- package/lib/types/Venn.d.ts +1 -1
- package/lib/types/a11y/PlotA11yModule.d.ts +4 -11
- package/lib/types/a11y/PlotA11yView.d.ts +12 -1
- package/lib/types/a11y/translations/module/__intergalactic-dynamic-locales.d.ts +14 -14
- package/lib/types/component/Chart/AbstractChart.d.ts +1 -1
- package/lib/types/component/Chart/AbstractChart.type.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +1 -1
- package/lib/types/utils.d.ts +10 -10
- package/package.json +9 -12
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
@import './var.css';
|
|
2
|
-
|
|
3
1
|
SPlot {
|
|
4
2
|
overflow: hidden;
|
|
5
3
|
}
|
|
@@ -17,7 +15,7 @@ foreignObject[data-aria-only] {
|
|
|
17
15
|
pointer-events: none;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
SPlot[
|
|
18
|
+
SPlot:has(foreignObject[data-aria-only]:focus-within) {
|
|
21
19
|
@mixin focus-outline-mixin;
|
|
22
20
|
border-radius: var(--intergalactic-surface-rounded, 6px);
|
|
23
21
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
@import './var.css';
|
|
2
|
-
|
|
3
1
|
SPlotA11yModule {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
position: absolute;
|
|
3
|
+
width: 1px;
|
|
4
|
+
height: 1px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: -1px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
clip: rect(0, 0, 0, 0);
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
border: 0,
|
|
11
|
+
}
|
|
@@ -1,39 +1,26 @@
|
|
|
1
|
-
@import './var.css';
|
|
2
|
-
|
|
3
1
|
SPlotA11yView {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
opacity: 0;
|
|
2
|
+
position: relative;
|
|
3
|
+
display: block;
|
|
7
4
|
background-color: var(--intergalactic-bg-primary-neutral, #ffffff);
|
|
8
5
|
color: var(--intergalactic-text-primary, #191b23);
|
|
9
6
|
border: 3px solid var(--intergalactic-border-primary, #c4c7cf);
|
|
10
7
|
font-size: var(--intergalactic-fs-50, 10px);
|
|
11
|
-
|
|
8
|
+
z-index: var(--intergalactic-z-index-overlay, 500);
|
|
12
9
|
padding: 2px;
|
|
13
10
|
width: 200px;
|
|
14
11
|
height: 200px;
|
|
15
12
|
max-width: 80%;
|
|
16
13
|
max-height: 80%;
|
|
17
14
|
overflow: auto;
|
|
18
|
-
}
|
|
19
|
-
SPlotA11yView:focus-within,
|
|
20
|
-
SPlotA11yView:focus {
|
|
21
|
-
user-select: all;
|
|
22
|
-
pointer-events: all;
|
|
23
|
-
opacity: 1;
|
|
24
|
-
z-index: var(--intergalactic-z-index-overlay, 500);
|
|
25
|
-
position: relative;
|
|
26
|
-
display: block;
|
|
27
|
-
}
|
|
28
|
-
SPlotA11yView a {
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
text-decoration: underline;
|
|
31
|
-
margin-bottom: var(--intergalactic-spacing-2x, 8px);
|
|
32
|
-
display: block;
|
|
33
|
-
}
|
|
34
15
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
16
|
+
a {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
text-decoration: underline;
|
|
19
|
+
margin-bottom: var(--intergalactic-spacing-2x, 8px);
|
|
20
|
+
display: block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
table, td, th {
|
|
24
|
+
border: 1px solid var(--intergalactic-border-primary, #c4c7cf);
|
|
25
|
+
}
|
|
39
26
|
}
|
package/lib/esm/utils.mjs
CHANGED
|
@@ -1,219 +1,184 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
|
-
import _createForOfIteratorHelper from "@babel/runtime/helpers/esm/createForOfIteratorHelper";
|
|
4
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
5
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
1
|
import EventEmitter from "@semcore/core/lib/utils/eventEmitter";
|
|
7
2
|
import { extent, bisector } from "d3-array";
|
|
8
3
|
import { scaleSqrt, scaleBand, scaleQuantize } from "d3-scale";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
const eventToPoint = (event, svgRoot) => {
|
|
5
|
+
const node = event.currentTarget || event.target;
|
|
6
|
+
const rect = svgRoot.getBoundingClientRect();
|
|
12
7
|
return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];
|
|
13
8
|
};
|
|
14
|
-
|
|
9
|
+
const invert = (scale, value) => {
|
|
15
10
|
if ("invert" in scale && scale.invert) return scale.invert(value);
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
const range = scale.range();
|
|
12
|
+
const domain = scale.domain();
|
|
18
13
|
if ("paddingOuter" in scale) {
|
|
19
14
|
range[0] += scale.paddingOuter() * scale.step();
|
|
20
15
|
range[1] -= scale.paddingOuter() * scale.step();
|
|
21
16
|
}
|
|
22
17
|
return scaleQuantize().domain(range[0] <= range[1] ? range : range.slice().reverse()).range(range[0] <= range[1] ? domain : domain.slice().reverse())(value);
|
|
23
18
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
var definedData = function definedData2(x, y) {
|
|
30
|
-
return function(plot) {
|
|
31
|
-
return plot[x] !== null && plot[x] !== void 0 && plot[y] !== null && plot[y] !== void 0;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
var scaleOfBandwidth = function scaleOfBandwidth2(scale, value) {
|
|
35
|
-
return scale.bandwidth ? scale(value) + scale.bandwidth() / 2 : scale(value);
|
|
36
|
-
};
|
|
37
|
-
var minMax = function minMax2(data, key) {
|
|
19
|
+
const definedNullData = (x, y) => (plot) => plot[x] !== null && plot[y] !== null;
|
|
20
|
+
const definedData = (x, y) => (plot) => plot[x] !== null && plot[x] !== void 0 && plot[y] !== null && plot[y] !== void 0;
|
|
21
|
+
const scaleOfBandwidth = (scale, value) => scale.bandwidth ? scale(value) + scale.bandwidth() / 2 : scale(value);
|
|
22
|
+
const minMax = (data, key) => {
|
|
38
23
|
if (typeof key === "string") {
|
|
39
|
-
return extent(data,
|
|
40
|
-
return d[key];
|
|
41
|
-
});
|
|
24
|
+
return extent(data, (d) => d[key]);
|
|
42
25
|
}
|
|
43
26
|
return extent(data, key);
|
|
44
27
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
if (next && defined(next)) {
|
|
60
|
-
acc.push(next);
|
|
61
|
-
}
|
|
62
|
-
if (data2.length - 1 === i) {
|
|
63
|
-
var defPrev = data2.slice().reverse().find(defined);
|
|
64
|
-
acc.push(_objectSpread(_objectSpread({}, d), {}, _defineProperty({}, name, defPrev ? defPrev[name] : null)));
|
|
65
|
-
}
|
|
28
|
+
const getNullData = (data, defined, name) => data.reduce((acc, d, i, data2) => {
|
|
29
|
+
if (defined(d)) {
|
|
30
|
+
acc.push({
|
|
31
|
+
[name]: null
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
const prev = data2[i - 1];
|
|
35
|
+
const next = data2[i + 1];
|
|
36
|
+
if (i === 0) {
|
|
37
|
+
const defNext = data2.find(defined);
|
|
38
|
+
acc.push({
|
|
39
|
+
...d,
|
|
40
|
+
[name]: defNext ? defNext[name] : null
|
|
41
|
+
});
|
|
66
42
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
43
|
+
if (prev && defined(prev)) {
|
|
44
|
+
acc.push(prev);
|
|
45
|
+
}
|
|
46
|
+
if (next && defined(next)) {
|
|
47
|
+
acc.push(next);
|
|
48
|
+
}
|
|
49
|
+
if (data2.length - 1 === i) {
|
|
50
|
+
const defPrev = data2.slice().reverse().find(defined);
|
|
51
|
+
acc.push({
|
|
52
|
+
...d,
|
|
53
|
+
[name]: defPrev ? defPrev[name] : null
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return acc;
|
|
58
|
+
}, []);
|
|
59
|
+
const getIndexFromData = (data, scale, key, value) => {
|
|
71
60
|
if ("invert" in scale && typeof scale.invert === "function" && Array.isArray(data)) {
|
|
72
|
-
|
|
73
|
-
return d[key];
|
|
74
|
-
}).center;
|
|
61
|
+
const bisect = bisector((d) => d[key]).center;
|
|
75
62
|
return bisect(data, value);
|
|
76
63
|
} else if ("step" in scale && typeof scale.step !== "undefined" && Array.isArray(data)) {
|
|
77
|
-
|
|
78
|
-
return d[key] === value;
|
|
79
|
-
});
|
|
64
|
+
const index = data.findIndex((d) => d[key] === value);
|
|
80
65
|
return index >= 0 ? index : null;
|
|
81
66
|
} else if ("invert" in scale && typeof scale.invert === "function" && !Array.isArray(data)) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return keys.slice(0,
|
|
67
|
+
const keys = Object.keys(data);
|
|
68
|
+
const domain = keys.map((_key, index) => {
|
|
69
|
+
return keys.slice(0, index).reduce((acc, item) => {
|
|
85
70
|
if (data[item] !== interpolateValue) {
|
|
86
71
|
acc = acc + data[item];
|
|
87
72
|
}
|
|
88
73
|
return acc;
|
|
89
74
|
}, 0);
|
|
90
75
|
});
|
|
91
|
-
|
|
92
|
-
|
|
76
|
+
let key2 = null;
|
|
77
|
+
const lastKeyIndex = keys.length - 1;
|
|
93
78
|
if (value > domain[lastKeyIndex]) {
|
|
94
|
-
|
|
79
|
+
key2 = keys[lastKeyIndex];
|
|
95
80
|
} else {
|
|
96
|
-
for (
|
|
81
|
+
for (let i = 0; i < lastKeyIndex; i++) {
|
|
97
82
|
if (i === 0 && value < domain[i]) {
|
|
98
83
|
break;
|
|
99
84
|
}
|
|
100
85
|
if (value > domain[i] && value < domain[i + 1]) {
|
|
101
|
-
|
|
86
|
+
key2 = keys[i];
|
|
102
87
|
break;
|
|
103
88
|
}
|
|
104
89
|
}
|
|
105
90
|
}
|
|
106
|
-
return
|
|
91
|
+
return key2;
|
|
107
92
|
} else {
|
|
108
93
|
console.warn("[d3-chart/utils/getIndexFromData] encountered incompatible scale type");
|
|
109
94
|
return null;
|
|
110
95
|
}
|
|
111
96
|
};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
var bl = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : false;
|
|
116
|
-
var br = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : false;
|
|
117
|
-
var result = "M".concat(x + r, ",").concat(y);
|
|
118
|
-
result += "h".concat(w - 2 * r);
|
|
97
|
+
const roundedPath = (x, y, w, h, r, tl = false, tr = false, bl = false, br = false) => {
|
|
98
|
+
let result = `M${x + r},${y}`;
|
|
99
|
+
result += `h${w - 2 * r}`;
|
|
119
100
|
if (tr) {
|
|
120
|
-
result +=
|
|
101
|
+
result += `a${r},${r} 0 0 1 ${r},${r}`;
|
|
121
102
|
} else {
|
|
122
|
-
result +=
|
|
123
|
-
result +=
|
|
103
|
+
result += `h${r}`;
|
|
104
|
+
result += `v${r}`;
|
|
124
105
|
}
|
|
125
|
-
result +=
|
|
106
|
+
result += `v${h - 2 * r}`;
|
|
126
107
|
if (br) {
|
|
127
|
-
result +=
|
|
108
|
+
result += `a${r},${r} 0 0 1 ${-r},${r}`;
|
|
128
109
|
} else {
|
|
129
|
-
result +=
|
|
130
|
-
result +=
|
|
110
|
+
result += `v${r}`;
|
|
111
|
+
result += `h${-r}`;
|
|
131
112
|
}
|
|
132
|
-
result +=
|
|
113
|
+
result += `h${2 * r - w}`;
|
|
133
114
|
if (bl) {
|
|
134
|
-
result +=
|
|
115
|
+
result += `a${r},${r} 0 0 1 ${-r},${-r}`;
|
|
135
116
|
} else {
|
|
136
|
-
result +=
|
|
137
|
-
result +=
|
|
117
|
+
result += `h${-r}`;
|
|
118
|
+
result += `v${-r}`;
|
|
138
119
|
}
|
|
139
|
-
result +=
|
|
120
|
+
result += `v${2 * r - h}`;
|
|
140
121
|
if (tl) {
|
|
141
|
-
result +=
|
|
122
|
+
result += `a${r},${r} 0 0 1 ${r},${-r}`;
|
|
142
123
|
} else {
|
|
143
|
-
result +=
|
|
144
|
-
result +=
|
|
124
|
+
result += `v${-r}`;
|
|
125
|
+
result += `h${r}`;
|
|
145
126
|
}
|
|
146
127
|
result += "z";
|
|
147
128
|
return result;
|
|
148
129
|
};
|
|
149
|
-
|
|
130
|
+
const scaleToBand = (scale) => {
|
|
150
131
|
if ("bandwidth" in scale) {
|
|
151
132
|
return scale;
|
|
152
133
|
}
|
|
153
|
-
|
|
134
|
+
const band = scaleBand().range(scale.range()).domain(scale.domain());
|
|
154
135
|
return band;
|
|
155
136
|
};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return
|
|
159
|
-
|
|
160
|
-
args[_key3] = arguments[_key3];
|
|
161
|
-
}
|
|
162
|
-
var argsKey = args.join(",");
|
|
137
|
+
const memoize = (func) => {
|
|
138
|
+
const results = {};
|
|
139
|
+
return (...args) => {
|
|
140
|
+
const argsKey = args.join(",");
|
|
163
141
|
if (!results[argsKey]) {
|
|
164
|
-
results[argsKey] = func
|
|
142
|
+
results[argsKey] = func(...args);
|
|
165
143
|
}
|
|
166
144
|
return results[argsKey];
|
|
167
145
|
};
|
|
168
146
|
};
|
|
169
|
-
|
|
147
|
+
const measureText = memoize((text, fontSize) => {
|
|
170
148
|
if (!text) return 0;
|
|
171
|
-
|
|
149
|
+
const span = document.createElement("span");
|
|
172
150
|
if (fontSize) {
|
|
173
|
-
span.style.fontSize =
|
|
151
|
+
span.style.fontSize = `${fontSize}px`;
|
|
174
152
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
var line = _step.value;
|
|
179
|
-
span.append(document.createTextNode(line));
|
|
180
|
-
span.append(document.createElement("br"));
|
|
181
|
-
}
|
|
182
|
-
} catch (err) {
|
|
183
|
-
_iterator.e(err);
|
|
184
|
-
} finally {
|
|
185
|
-
_iterator.f();
|
|
153
|
+
for (const line of text.split("\n")) {
|
|
154
|
+
span.append(document.createTextNode(line));
|
|
155
|
+
span.append(document.createElement("br"));
|
|
186
156
|
}
|
|
187
157
|
span.style.display = "inline-block";
|
|
188
158
|
document.body.append(span);
|
|
189
|
-
|
|
190
|
-
|
|
159
|
+
const textWidth = span.offsetWidth;
|
|
160
|
+
const textHeight = span.offsetHeight;
|
|
191
161
|
span.remove();
|
|
192
162
|
return Math.max(textWidth, textHeight);
|
|
193
163
|
});
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
};
|
|
199
|
-
var interpolateValue = Symbol("intergalactic-d3-chart-line-interpolate");
|
|
200
|
-
var getChartDefaultColorName = function getChartDefaultColorName2(index) {
|
|
164
|
+
let idCounter = 0;
|
|
165
|
+
const uniqueId = (prefix = "id-") => `${prefix}${idCounter++}`;
|
|
166
|
+
const interpolateValue = Symbol("intergalactic-d3-chart-line-interpolate");
|
|
167
|
+
const getChartDefaultColorName = (index) => {
|
|
201
168
|
index++;
|
|
202
169
|
if (index < 1) index = 1;
|
|
203
170
|
if (index > 24) index %= 24;
|
|
204
|
-
return
|
|
171
|
+
return `chart-palette-order-${index}`;
|
|
205
172
|
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
return el[key];
|
|
209
|
-
})))]).range([5.5, 50.5]);
|
|
173
|
+
const getBubbleChartValueScale = (data, key) => {
|
|
174
|
+
const z = scaleSqrt().domain([0, Math.max(...data.map((el) => el[key]))]).range([5.5, 50.5]);
|
|
210
175
|
return z;
|
|
211
176
|
};
|
|
212
|
-
|
|
177
|
+
const getScatterPlotRadius = (valueKey) => {
|
|
213
178
|
return valueKey !== void 0 ? 12 : 5.5;
|
|
214
179
|
};
|
|
215
|
-
|
|
216
|
-
|
|
180
|
+
const calculateBubbleDomain = (data, key, range) => {
|
|
181
|
+
const miniestValue = data.reduce((acc, item) => {
|
|
217
182
|
if (item[key] - item.value < acc.min) {
|
|
218
183
|
acc.min = item[key] - item.value;
|
|
219
184
|
acc.value = item.value;
|
|
@@ -223,7 +188,7 @@ var calculateBubbleDomain = function calculateBubbleDomain2(data, key, range) {
|
|
|
223
188
|
value: data[0].value,
|
|
224
189
|
min: data[0][key] - data[0].value
|
|
225
190
|
}).value;
|
|
226
|
-
|
|
191
|
+
const maxestValue = data.reduce((acc, item) => {
|
|
227
192
|
if (item.value + item[key] > acc.max) {
|
|
228
193
|
acc.max = item.value + item.x;
|
|
229
194
|
acc.value = item.value;
|
|
@@ -233,16 +198,16 @@ var calculateBubbleDomain = function calculateBubbleDomain2(data, key, range) {
|
|
|
233
198
|
value: data[0].value,
|
|
234
199
|
max: data[0].value + data[0][key]
|
|
235
200
|
}).value;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
201
|
+
let [min, max] = minMax(data, key);
|
|
202
|
+
const pixelRatio = Math.abs(max - min) / Math.abs(range[0] - range[1]);
|
|
203
|
+
const valueScale = getBubbleChartValueScale(data, "value");
|
|
204
|
+
const minValueShift = valueScale(miniestValue) * pixelRatio;
|
|
205
|
+
const maxValueShift = valueScale(maxestValue) * pixelRatio;
|
|
241
206
|
min -= minValueShift * 2;
|
|
242
207
|
max += maxValueShift * 2;
|
|
243
208
|
return [min, max];
|
|
244
209
|
};
|
|
245
|
-
|
|
210
|
+
const PlotEventEmitter = EventEmitter;
|
|
246
211
|
export {
|
|
247
212
|
PlotEventEmitter,
|
|
248
213
|
calculateBubbleDomain,
|
package/lib/types/Axis.d.ts
CHANGED
|
@@ -40,6 +40,10 @@ export type AxisTicksProps = Context & {
|
|
|
40
40
|
ticks?: any[];
|
|
41
41
|
/** Enables multiline tick labels, applicable only for band scales */
|
|
42
42
|
multiline?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Enable `--intergalactic-text-primary` color for ticks
|
|
45
|
+
*/
|
|
46
|
+
primaryText?: boolean;
|
|
43
47
|
};
|
|
44
48
|
|
|
45
49
|
/** @deprecated */
|
package/lib/types/Hover.d.ts
CHANGED
package/lib/types/Line.d.ts
CHANGED
package/lib/types/Plot.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { BoxProps } from '@semcore/base-components';
|
|
1
2
|
import type { UnknownProperties, Intergalactic } from '@semcore/core';
|
|
2
|
-
import type { BoxProps } from '@semcore/flex-box';
|
|
3
3
|
|
|
4
4
|
import type { DataStructureHints } from './a11y/hints';
|
|
5
5
|
import type { Context } from './context';
|
package/lib/types/Radar.d.ts
CHANGED
package/lib/types/Tooltip.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
+
import type { Popper, Box, BoxProps, PopperProps, PopperTriggerProps } from '@semcore/base-components';
|
|
1
2
|
import type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';
|
|
2
|
-
import type { Box, BoxProps } from '@semcore/flex-box';
|
|
3
|
-
import type { PopperProps, PopperTriggerProps } from '@semcore/popper';
|
|
4
|
-
import type Popper from '@semcore/popper';
|
|
5
3
|
import type React from 'react';
|
|
6
4
|
|
|
7
5
|
import type { Context } from './context';
|
package/lib/types/Venn.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
hints: DataStructureHints;
|
|
7
|
-
plotLabel: string;
|
|
8
|
-
locale: NavigatorLanguage['language'];
|
|
9
|
-
config: PartialDataSummarizationConfig;
|
|
10
|
-
plotRef: React.RefObject<HTMLElement>;
|
|
11
|
-
};
|
|
12
|
-
export declare function PlotA11yModule(props: A11yViewProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
2
|
+
import type { A11yViewProps } from './PlotA11yView';
|
|
3
|
+
type A11yModuleProps = Omit<A11yViewProps, 'onBlurHandler' | 'triggerRef'>;
|
|
4
|
+
export declare function PlotA11yModule(props: A11yModuleProps): React.ReactNode;
|
|
5
|
+
export {};
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { DataStructureHints, PartialDataSummarizationConfig } from './hints';
|
|
3
|
+
export type A11yViewProps = {
|
|
4
|
+
id: string;
|
|
5
|
+
payload: Record<string, unknown>[];
|
|
6
|
+
hints: DataStructureHints;
|
|
7
|
+
plotLabel: string;
|
|
8
|
+
locale: NavigatorLanguage['language'];
|
|
9
|
+
config: PartialDataSummarizationConfig;
|
|
10
|
+
plotRef: React.RefObject<HTMLElement>;
|
|
11
|
+
triggerRef: React.RefObject<HTMLElement>;
|
|
12
|
+
onCloseHandler: () => void;
|
|
13
|
+
};
|
|
3
14
|
export declare const PlotA11yView: React.FC<A11yViewProps>;
|
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
export declare const localizedMessages: {
|
|
2
2
|
de: {
|
|
3
|
-
disabled: string;
|
|
4
3
|
loading: string;
|
|
5
4
|
failed: string;
|
|
5
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
6
6
|
};
|
|
7
7
|
en: {
|
|
8
|
-
disabled: string;
|
|
9
8
|
loading: string;
|
|
10
9
|
failed: string;
|
|
10
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
11
11
|
};
|
|
12
12
|
es: {
|
|
13
|
-
disabled: string;
|
|
14
13
|
loading: string;
|
|
15
14
|
failed: string;
|
|
15
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
16
16
|
};
|
|
17
17
|
fr: {
|
|
18
|
-
disabled: string;
|
|
19
18
|
loading: string;
|
|
20
19
|
failed: string;
|
|
20
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
21
21
|
};
|
|
22
22
|
it: {
|
|
23
|
-
disabled: string;
|
|
24
23
|
loading: string;
|
|
25
24
|
failed: string;
|
|
25
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
26
26
|
};
|
|
27
27
|
ja: {
|
|
28
|
-
disabled: string;
|
|
29
28
|
loading: string;
|
|
30
29
|
failed: string;
|
|
30
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
31
31
|
};
|
|
32
32
|
ko: {
|
|
33
|
-
disabled: string;
|
|
34
33
|
loading: string;
|
|
35
34
|
failed: string;
|
|
35
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
36
36
|
};
|
|
37
37
|
nl: {
|
|
38
|
-
disabled: string;
|
|
39
38
|
loading: string;
|
|
40
39
|
failed: string;
|
|
40
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
41
41
|
};
|
|
42
42
|
pt: {
|
|
43
|
-
disabled: string;
|
|
44
43
|
loading: string;
|
|
45
44
|
failed: string;
|
|
45
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
46
46
|
};
|
|
47
47
|
tr: {
|
|
48
|
-
disabled: string;
|
|
49
48
|
loading: string;
|
|
50
49
|
failed: string;
|
|
50
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
51
51
|
};
|
|
52
52
|
vi: {
|
|
53
|
-
disabled: string;
|
|
54
53
|
loading: string;
|
|
55
54
|
failed: string;
|
|
55
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
56
56
|
};
|
|
57
57
|
zh: {
|
|
58
|
-
disabled: string;
|
|
59
58
|
loading: string;
|
|
60
59
|
failed: string;
|
|
60
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
61
61
|
};
|
|
62
62
|
pl: {
|
|
63
|
-
disabled: string;
|
|
64
63
|
loading: string;
|
|
65
64
|
failed: string;
|
|
65
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
66
66
|
};
|
|
67
67
|
sv: {
|
|
68
|
-
disabled: string;
|
|
69
68
|
loading: string;
|
|
70
69
|
failed: string;
|
|
70
|
+
"PlotA11yModule.ScreenReaderOnlyButton.Label": string;
|
|
71
71
|
};
|
|
72
72
|
};
|
|
@@ -13,7 +13,7 @@ type ChartState = {
|
|
|
13
13
|
withTrend: boolean;
|
|
14
14
|
};
|
|
15
15
|
export declare const NOT_A_VALUE = "n/a";
|
|
16
|
-
export declare abstract class AbstractChart<D extends ListData | ObjectData, T extends BaseChartProps<D>, E extends readonly ((...args: any[]) => any)[] = []> extends Component<T, {}, ChartState
|
|
16
|
+
export declare abstract class AbstractChart<D extends ListData | ObjectData, T extends BaseChartProps<D>, E extends readonly ((...args: any[]) => any)[] = []> extends Component<T, E, Readonly<{}>, {}, ChartState> {
|
|
17
17
|
static style: {
|
|
18
18
|
[key: string]: string;
|
|
19
19
|
};
|