@semcore/d3-chart 16.0.2-prerelease.4 → 16.0.3-prerelease.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +1 -50
- package/lib/cjs/AnimatedClipPath.js +13 -13
- package/lib/cjs/AnimatedClipPath.js.map +1 -1
- package/lib/cjs/Area.js +29 -27
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +97 -101
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +31 -32
- package/lib/cjs/Bar.js.map +1 -1
- package/lib/cjs/Bubble.js +26 -27
- package/lib/cjs/Bubble.js.map +1 -1
- package/lib/cjs/CompactHorizontalBar.js +65 -68
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +94 -95
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +36 -34
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +16 -16
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +30 -31
- package/lib/cjs/HorizontalBar.js.map +1 -1
- package/lib/cjs/Hover.js +27 -33
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +23 -23
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +13 -11
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +26 -27
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +125 -132
- package/lib/cjs/Radar.js.map +1 -1
- package/lib/cjs/RadialTree.js +164 -145
- package/lib/cjs/RadialTree.js.map +1 -1
- package/lib/cjs/Reference.js +47 -49
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ResponsiveContainer.js +19 -20
- package/lib/cjs/ResponsiveContainer.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +24 -25
- package/lib/cjs/ScatterPlot.js.map +1 -1
- package/lib/cjs/StackBar.js +20 -23
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/StackedArea.js +14 -15
- package/lib/cjs/StackedArea.js.map +1 -1
- package/lib/cjs/Tooltip.js +34 -35
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +28 -29
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/DataAccessibilityTable.js +2 -3
- package/lib/cjs/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +11 -12
- package/lib/cjs/a11y/PlotA11yModule.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yView.js +10 -11
- package/lib/cjs/a11y/PlotA11yView.js.map +1 -1
- package/lib/cjs/a11y/bezier.js +1 -2
- package/lib/cjs/a11y/bezier.js.map +1 -1
- package/lib/cjs/a11y/focus.js +4 -5
- package/lib/cjs/a11y/focus.js.map +1 -1
- package/lib/cjs/a11y/hints.js +5 -8
- package/lib/cjs/a11y/hints.js.map +1 -1
- package/lib/cjs/a11y/insights.js +63 -64
- package/lib/cjs/a11y/insights.js.map +1 -1
- package/lib/cjs/a11y/intl.js +1 -2
- package/lib/cjs/a11y/intl.js.map +1 -1
- package/lib/cjs/a11y/locale.js +4 -5
- package/lib/cjs/a11y/locale.js.map +1 -1
- package/lib/cjs/a11y/serialize.js +15 -17
- package/lib/cjs/a11y/serialize.js.map +1 -1
- package/lib/cjs/a11y/summarize.js +1 -2
- package/lib/cjs/a11y/summarize.js.map +1 -1
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/color.js +2 -3
- package/lib/cjs/color.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.js +43 -46
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js +17 -20
- package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.js +17 -21
- package/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.js +18 -19
- package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +19 -23
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js +13 -14
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +13 -14
- package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.js +15 -16
- package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.js +17 -18
- package/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.js +14 -17
- package/lib/cjs/component/Chart/RadarChart.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.js +14 -15
- package/lib/cjs/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.js +12 -13
- package/lib/cjs/component/Chart/VennChart.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/index.js +7 -8
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +42 -20
- package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +20 -20
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +79 -67
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -2
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +18 -18
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/index.js +1 -2
- package/lib/cjs/component/ChartLegend/index.js.map +1 -1
- package/lib/cjs/component/Cigarette/Cigarette.js +18 -19
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js +22 -26
- package/lib/cjs/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/cjs/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/cjs/component/SvgElement.js +21 -0
- package/lib/cjs/component/SvgElement.js.map +1 -0
- package/lib/cjs/createElement.d.js.map +1 -1
- package/lib/cjs/createElement.js +7 -8
- package/lib/cjs/createElement.js.map +1 -1
- package/lib/cjs/index.js +9 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +4 -5
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/cjs/types/Area.d.js.map +1 -1
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/Bar.d.js.map +1 -1
- package/lib/cjs/types/Bubble.d.js.map +1 -1
- package/lib/cjs/types/ClipPath.d.js.map +1 -1
- package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/GroupBar.d.js.map +1 -1
- package/lib/cjs/types/HorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/types/Line.d.js.map +1 -1
- package/lib/cjs/types/Plot.d.js.map +1 -1
- package/lib/cjs/types/Radar.d.js.map +1 -1
- package/lib/cjs/types/Reference.d.js.map +1 -1
- package/lib/cjs/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/cjs/types/ScatterPlot.d.js.map +1 -1
- package/lib/cjs/types/StackBar.d.js.map +1 -1
- package/lib/cjs/types/StackedArea.d.js.map +1 -1
- package/lib/cjs/types/Tooltip.d.js.map +1 -1
- package/lib/cjs/types/Venn.d.js.map +1 -1
- package/lib/cjs/types/context.d.js.map +1 -1
- package/lib/cjs/types/index.d.js +2 -2
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +31 -52
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/AnimatedClipPath.js +11 -10
- package/lib/es6/AnimatedClipPath.js.map +1 -1
- package/lib/es6/Area.js +27 -24
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +96 -98
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +28 -27
- package/lib/es6/Bar.js.map +1 -1
- package/lib/es6/Bubble.js +24 -24
- package/lib/es6/Bubble.js.map +1 -1
- package/lib/es6/CompactHorizontalBar.js +63 -65
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +92 -92
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +36 -33
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +14 -13
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +27 -26
- package/lib/es6/HorizontalBar.js.map +1 -1
- package/lib/es6/Hover.js +24 -28
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +20 -19
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +4 -2
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +25 -25
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +122 -128
- package/lib/es6/Radar.js.map +1 -1
- package/lib/es6/RadialTree.js +162 -142
- package/lib/es6/RadialTree.js.map +1 -1
- package/lib/es6/Reference.js +44 -43
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ResponsiveContainer.js +17 -17
- package/lib/es6/ResponsiveContainer.js.map +1 -1
- package/lib/es6/ScatterPlot.js +22 -22
- package/lib/es6/ScatterPlot.js.map +1 -1
- package/lib/es6/StackBar.js +17 -19
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/StackedArea.js +12 -12
- package/lib/es6/StackedArea.js.map +1 -1
- package/lib/es6/Tooltip.js +33 -33
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +26 -26
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/DataAccessibilityTable.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +11 -11
- package/lib/es6/a11y/PlotA11yModule.js.map +1 -1
- package/lib/es6/a11y/PlotA11yView.js +9 -9
- package/lib/es6/a11y/PlotA11yView.js.map +1 -1
- package/lib/es6/a11y/bezier.js.map +1 -1
- package/lib/es6/a11y/focus.js +3 -3
- package/lib/es6/a11y/focus.js.map +1 -1
- package/lib/es6/a11y/hints.js +1 -1
- package/lib/es6/a11y/hints.js.map +1 -1
- package/lib/es6/a11y/insights.js +61 -61
- package/lib/es6/a11y/insights.js.map +1 -1
- package/lib/es6/a11y/intl.js.map +1 -1
- package/lib/es6/a11y/locale.js +2 -2
- package/lib/es6/a11y/locale.js.map +1 -1
- package/lib/es6/a11y/serialize.js +14 -13
- package/lib/es6/a11y/serialize.js.map +1 -1
- package/lib/es6/a11y/summarize.js.map +1 -1
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/module/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/a11y/translations/view/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/color.js +1 -1
- package/lib/es6/color.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.js +40 -41
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js +16 -16
- package/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.js +15 -17
- package/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.js +17 -15
- package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +17 -17
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js +11 -10
- package/lib/es6/component/Chart/CompactHorizontalBarChart.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +12 -10
- package/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.js +14 -12
- package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.js +15 -14
- package/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.js +12 -13
- package/lib/es6/component/Chart/RadarChart.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.js +13 -11
- package/lib/es6/component/Chart/ScatterPlotChart.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.js +10 -9
- package/lib/es6/component/Chart/VennChart.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/Chart/index.js +6 -6
- package/lib/es6/component/Chart/index.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +40 -17
- package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +18 -17
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +77 -64
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +16 -15
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/index.js.map +1 -1
- package/lib/es6/component/Cigarette/Cigarette.js +16 -16
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.js +20 -21
- package/lib/es6/component/StackGroupBar/StackGroupBar.js.map +1 -1
- package/lib/es6/component/StackGroupBar/StackGroupBar.type.js.map +1 -1
- package/lib/es6/component/SvgElement.js +14 -0
- package/lib/es6/component/SvgElement.js.map +1 -0
- package/lib/es6/createElement.d.js.map +1 -1
- package/lib/es6/createElement.js +5 -5
- package/lib/es6/createElement.js.map +1 -1
- package/lib/es6/index.js +1 -0
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/types/Area.d.js.map +1 -1
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/Bar.d.js.map +1 -1
- package/lib/es6/types/Bubble.d.js.map +1 -1
- package/lib/es6/types/ClipPath.d.js.map +1 -1
- package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/GroupBar.d.js.map +1 -1
- package/lib/es6/types/HorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/types/Line.d.js.map +1 -1
- package/lib/es6/types/Plot.d.js.map +1 -1
- package/lib/es6/types/Radar.d.js.map +1 -1
- package/lib/es6/types/Reference.d.js.map +1 -1
- package/lib/es6/types/ResponsiveContainer.d.js.map +1 -1
- package/lib/es6/types/ScatterPlot.d.js.map +1 -1
- package/lib/es6/types/StackBar.d.js.map +1 -1
- package/lib/es6/types/StackedArea.d.js.map +1 -1
- package/lib/es6/types/Tooltip.d.js.map +1 -1
- package/lib/es6/types/Venn.d.js.map +1 -1
- package/lib/es6/types/context.d.js.map +1 -1
- package/lib/es6/types/index.d.js +1 -0
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +11 -13
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/AnimatedClipPath.mjs +10 -7
- package/lib/esm/Area.mjs +30 -25
- package/lib/esm/Axis.mjs +67 -67
- package/lib/esm/Bar.mjs +31 -28
- package/lib/esm/Bubble.mjs +28 -26
- package/lib/esm/CompactHorizontalBar.mjs +61 -60
- package/lib/esm/Donut.mjs +50 -49
- package/lib/esm/Dots.mjs +32 -27
- package/lib/esm/GroupBar.mjs +14 -11
- package/lib/esm/HorizontalBar.mjs +30 -27
- package/lib/esm/Hover.mjs +28 -30
- package/lib/esm/Line.mjs +23 -20
- package/lib/esm/Pattern.mjs +1 -1
- package/lib/esm/Plot.mjs +27 -25
- package/lib/esm/Radar.mjs +90 -94
- package/lib/esm/RadialTree.mjs +86 -86
- package/lib/esm/Reference.mjs +34 -31
- package/lib/esm/ResponsiveContainer.mjs +19 -17
- package/lib/esm/ScatterPlot.mjs +26 -24
- package/lib/esm/StackBar.mjs +17 -17
- package/lib/esm/StackedArea.mjs +13 -11
- package/lib/esm/Tooltip.mjs +35 -33
- package/lib/esm/Venn.mjs +29 -27
- package/lib/esm/a11y/DataAccessibilityTable.mjs +2 -2
- package/lib/esm/a11y/PlotA11yModule.mjs +8 -8
- package/lib/esm/a11y/PlotA11yView.mjs +9 -9
- package/lib/esm/a11y/focus.mjs +3 -3
- package/lib/esm/a11y/hints.mjs +1 -1
- package/lib/esm/a11y/insights.mjs +77 -78
- package/lib/esm/a11y/intl.mjs +1 -1
- package/lib/esm/a11y/locale.mjs +2 -2
- package/lib/esm/a11y/serialize.mjs +12 -12
- package/lib/esm/a11y/translations/module/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/a11y/translations/view/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +38 -37
- package/lib/esm/component/Chart/AreaChart.mjs +19 -15
- package/lib/esm/component/Chart/BarChart.mjs +20 -17
- package/lib/esm/component/Chart/BubbleChart.mjs +16 -13
- package/lib/esm/component/Chart/CigaretteChart.mjs +24 -17
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +18 -10
- package/lib/esm/component/Chart/DonutChart.mjs +13 -10
- package/lib/esm/component/Chart/HistogramChart.mjs +18 -12
- package/lib/esm/component/Chart/LineChart.mjs +18 -12
- package/lib/esm/component/Chart/RadarChart.mjs +19 -12
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +14 -11
- package/lib/esm/component/Chart/VennChart.mjs +12 -9
- package/lib/esm/component/Chart/index.mjs +6 -6
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +42 -17
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +21 -18
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +67 -56
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +23 -20
- package/lib/esm/component/Cigarette/Cigarette.mjs +18 -16
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +20 -19
- package/lib/esm/component/SvgElement.mjs +14 -0
- package/lib/esm/createElement.mjs +5 -5
- package/lib/esm/index.mjs +2 -0
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/esm/utils.mjs +8 -8
- package/lib/types/Area.d.ts +7 -6
- package/lib/types/Axis.d.ts +4 -3
- package/lib/types/Bar.d.ts +7 -6
- package/lib/types/Bubble.d.ts +6 -5
- package/lib/types/ClipPath.d.ts +4 -3
- package/lib/types/CompactHorizontalBar.d.ts +7 -8
- package/lib/types/Donut.d.ts +6 -5
- package/lib/types/GroupBar.d.ts +6 -6
- package/lib/types/HorizontalBar.d.ts +7 -6
- package/lib/types/Hover.d.ts +8 -8
- package/lib/types/Line.d.ts +7 -6
- package/lib/types/Pattern.d.ts +51 -51
- package/lib/types/Plot.d.ts +10 -9
- package/lib/types/Radar.d.ts +8 -7
- package/lib/types/RadialTree.d.ts +9 -54
- package/lib/types/Reference.d.ts +5 -4
- package/lib/types/ResponsiveContainer.d.ts +5 -4
- package/lib/types/ScatterPlot.d.ts +6 -5
- package/lib/types/StackBar.d.ts +7 -6
- package/lib/types/StackedArea.d.ts +6 -5
- package/lib/types/Tooltip.d.ts +14 -12
- package/lib/types/Venn.d.ts +7 -6
- package/lib/types/a11y/DataAccessibilityTable.d.ts +2 -2
- package/lib/types/a11y/PlotA11yModule.d.ts +1 -1
- package/lib/types/a11y/hints.d.ts +5 -5
- package/lib/types/a11y/insights.d.ts +1 -1
- package/lib/types/a11y/intl.d.ts +1 -1
- package/lib/types/a11y/serialize.d.ts +7 -7
- package/lib/types/a11y/summarize.d.ts +2 -2
- package/lib/types/component/Chart/AbstractChart.d.ts +6 -6
- package/lib/types/component/Chart/AbstractChart.type.d.ts +27 -27
- package/lib/types/component/Chart/AreaChart.d.ts +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +6 -6
- package/lib/types/component/Chart/BarChart.d.ts +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +6 -6
- package/lib/types/component/Chart/BubbleChart.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +4 -4
- package/lib/types/component/Chart/CigaretteChart.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +4 -4
- package/lib/types/component/Chart/CompactHorizontalBarChart.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +5 -5
- package/lib/types/component/Chart/DonutChart.d.ts +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +5 -5
- package/lib/types/component/Chart/HistogramChart.d.ts +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +4 -4
- package/lib/types/component/Chart/LineChart.d.ts +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +7 -7
- package/lib/types/component/Chart/RadarChart.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +4 -4
- package/lib/types/component/Chart/ScatterPlotChart.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +5 -5
- package/lib/types/component/Chart/VennChart.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +4 -4
- package/lib/types/component/ChartLegend/BaseLegend.d.ts +6 -4
- package/lib/types/component/ChartLegend/BaseLegend.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendFlex/LegendFlex.type.d.ts +4 -5
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +17 -10
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -5
- package/lib/types/component/StackGroupBar/StackGroupBar.d.ts +1 -1
- package/lib/types/component/StackGroupBar/StackGroupBar.type.d.ts +3 -4
- package/lib/types/component/SvgElement.d.ts +10 -0
- package/lib/types/index.d.ts +2 -1
- package/lib/types/utils.d.ts +6 -6
- package/package.json +22 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DataStructureHints, PartialDataSummarizationConfig } from './hints';
|
|
2
|
+
import type { DataStructureHints, PartialDataSummarizationConfig } from './hints';
|
|
3
3
|
export type A11yViewProps = {
|
|
4
4
|
id: string;
|
|
5
5
|
data: Record<string, unknown>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SerializableDataType } from './insights';
|
|
1
|
+
import type { SerializableDataType } from './insights';
|
|
2
2
|
type DeepPartial<T> = T extends object ? {
|
|
3
3
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
4
4
|
} : T;
|
|
@@ -70,13 +70,13 @@ export type PartialDataSummarizationConfig = DeepPartial<Omit<DataSummarizationC
|
|
|
70
70
|
export declare const makeDataHintsContainer: () => DataStructureHints;
|
|
71
71
|
export declare const makeDataHintsHandlers: (mutableContainer: DataStructureHints) => {
|
|
72
72
|
specifyDataRowFields: (x?: string, y?: string, value?: string) => void;
|
|
73
|
-
setupGrid: (direction:
|
|
73
|
+
setupGrid: (direction: "vertical" | "horizontal", size: number) => void;
|
|
74
74
|
establishDataType: (dataType: SerializableDataType) => void;
|
|
75
75
|
describeValueEntity: (dataKey: string | number, readableName: string) => void;
|
|
76
76
|
describeGroupedValues: (groupKey: string | number, dataKey: string | number) => void;
|
|
77
|
-
labelKey: (axes:
|
|
78
|
-
addKeyLabelGetter: (axes:
|
|
79
|
-
setTitle: (describedDataAxes:
|
|
77
|
+
labelKey: (axes: "vertical" | "horizontal" | "value", dataKey: string | number, label: string) => void;
|
|
78
|
+
addKeyLabelGetter: (axes: "vertical" | "horizontal" | "value", getter: (dataKey: string | number) => string) => void;
|
|
79
|
+
setTitle: (describedDataAxes: "vertical" | "horizontal", title: string) => void;
|
|
80
80
|
setPointsDensity: (horizontalAxes: number, verticalAxes: number) => void;
|
|
81
81
|
};
|
|
82
82
|
export type DataHintsHandler = ReturnType<typeof makeDataHintsHandlers>;
|
package/lib/types/a11y/intl.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IntlShape } from '@formatjs/intl';
|
|
1
|
+
import { type IntlShape } from '@formatjs/intl';
|
|
2
2
|
import type { localizedMessages as localizedMessagesTypeBase } from './translations/view/__intergalactic-dynamic-locales';
|
|
3
3
|
export type Intl = IntlShape<typeof localizedMessagesTypeBase['en']>;
|
|
4
4
|
export declare const getIntl: (locale: string, translations: {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Intl } from './intl';
|
|
1
|
+
import type { DataSummarizationConfig } from './hints';
|
|
2
|
+
import type { AnalyzedData } from './insights';
|
|
3
|
+
import { type Intl } from './intl';
|
|
4
4
|
export declare const defaultValueFormatter: (intl: Intl, value: unknown, { siblingsTimeMark, maxListSymbols, datesWithTime, }?: {
|
|
5
5
|
siblingsTimeMark?: unknown;
|
|
6
|
-
maxListSymbols?: number
|
|
7
|
-
datesWithTime?: boolean
|
|
6
|
+
maxListSymbols?: number;
|
|
7
|
+
datesWithTime?: boolean;
|
|
8
8
|
}) => string;
|
|
9
9
|
export declare const serialize: ({ insights, dataType, dataRange, dataTitle, entitiesCount }: AnalyzedData, { datesWithTime, maxListSymbols, clustersLimit, valuesLimit, groupsLimit, titlesFormatter, valuesFormatter, }: DataSummarizationConfig, { locale, translations, availableLocales, }: {
|
|
10
10
|
locale: string;
|
|
11
11
|
translations?: {
|
|
12
12
|
[messageId: string]: string;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
availableLocales?: {
|
|
15
15
|
[localeId: string]: any;
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
}) => string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataStructureHints, DataSummarizationConfig } from './hints';
|
|
2
|
-
export declare const summarize: (data: Record<string, unknown>[] | Record<string, unknown>, hints: DataStructureHints, config: DataSummarizationConfig, locale: NavigatorLanguage[
|
|
1
|
+
import type { DataStructureHints, DataSummarizationConfig } from './hints';
|
|
2
|
+
export declare const summarize: (data: Record<string, unknown>[] | Record<string, unknown>, hints: DataStructureHints, config: DataSummarizationConfig, locale: NavigatorLanguage["language"], translations: {
|
|
3
3
|
[messageId: string]: string;
|
|
4
4
|
}, availableLocales: {
|
|
5
5
|
[localeId: string]: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LegendItem } from '../ChartLegend/LegendItem/LegendItem.type';
|
|
2
|
-
import { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';
|
|
3
|
-
import { interpolateValue } from '../../utils';
|
|
4
|
-
import React from 'react';
|
|
5
1
|
import { Component } from '@semcore/core';
|
|
6
|
-
import {
|
|
2
|
+
import type { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { BaseChartProps, BaseLegendProps, ListData, ObjectData } from './AbstractChart.type';
|
|
5
|
+
import { interpolateValue } from '../../utils';
|
|
6
|
+
import type { LegendItem } from '../ChartLegend/LegendItem/LegendItem.type';
|
|
7
7
|
type ChartState = {
|
|
8
8
|
dataDefinitions: Array<LegendItem & {
|
|
9
9
|
columns: React.ReactNode[];
|
|
@@ -45,7 +45,7 @@ export declare abstract class AbstractChart<D extends ListData | ObjectData, T e
|
|
|
45
45
|
protected resolveColor(id: string, index: number): string;
|
|
46
46
|
protected tooltipValueFormatter(value?: string | number | typeof interpolateValue | Date): string;
|
|
47
47
|
protected defaultLegendProps(): Partial<BaseLegendProps>;
|
|
48
|
-
protected renderLegend(): JSX.Element | null;
|
|
48
|
+
protected renderLegend(): React.JSX.Element | null;
|
|
49
49
|
protected renderAxis(): React.ReactNode;
|
|
50
50
|
render(): React.ReactNode;
|
|
51
51
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FlexProps } from '@semcore/flex-box';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { FlexProps } from '@semcore/flex-box';
|
|
3
|
+
import type Icon from '@semcore/icon';
|
|
4
|
+
import type React from 'react';
|
|
5
|
+
import type { PatternsConfig } from '../../Pattern';
|
|
6
|
+
import type { PlotSummarizerConfig } from '../../Plot';
|
|
7
|
+
import type { BaseChartLegendProps } from '../ChartLegend/BaseLegend.type';
|
|
8
|
+
import type { TrendProps } from '../ChartLegend/LegendFlex/LegendFlex.type';
|
|
9
|
+
import type { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';
|
|
10
10
|
export type BaseLegendProps = BaseChartLegendProps & {
|
|
11
11
|
/**
|
|
12
12
|
* Disable hover (for transition items legend of each not hovered)
|
|
@@ -18,21 +18,21 @@ export type BaseLegendProps = BaseChartLegendProps & {
|
|
|
18
18
|
disableSelectItems?: boolean;
|
|
19
19
|
} & ((TrendProps & {
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
* How to render Legend - Flex view. Just list of legend items
|
|
22
|
+
*/
|
|
23
23
|
legendType?: never | 'Flex';
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
* Config for Legend items
|
|
26
|
+
*/
|
|
27
27
|
legendMap?: LegendDataMap<'Flex'>;
|
|
28
28
|
}) | {
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
* How to render Legend - Table view. Table of legend items with some additional information in columns
|
|
31
|
+
*/
|
|
32
32
|
legendType: 'Table';
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
* Config for Legend items
|
|
35
|
+
*/
|
|
36
36
|
legendMap?: LegendDataMap<'Table'>;
|
|
37
37
|
});
|
|
38
38
|
export type ObjectData = Record<string, unknown>;
|
|
@@ -44,7 +44,7 @@ export type ListData = ObjectData[];
|
|
|
44
44
|
export type AriaNameProps = Intergalactic.RequireAtLeastOne<{
|
|
45
45
|
'aria-label'?: string;
|
|
46
46
|
'aria-labelledby'?: string;
|
|
47
|
-
title?: string;
|
|
47
|
+
'title'?: string;
|
|
48
48
|
}>;
|
|
49
49
|
export type BaseChartProps<T extends ListData | ObjectData> = FlexProps & AriaNameProps & {
|
|
50
50
|
/**
|
|
@@ -136,22 +136,22 @@ export type BaseChartProps<T extends ListData | ObjectData> = FlexProps & AriaNa
|
|
|
136
136
|
} /**
|
|
137
137
|
* By default, we show the Legend for all charts with more the one data item.
|
|
138
138
|
* For hide the Legend, you should set showLegend prop to `false`.
|
|
139
|
-
|
|
139
|
+
*/ & ({
|
|
140
140
|
/**
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
* Don't show legend
|
|
142
|
+
*/
|
|
143
143
|
showLegend?: false;
|
|
144
144
|
legendProps?: never;
|
|
145
145
|
} | {
|
|
146
146
|
/**
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
* By default (if showLegend don't set), for one data item on chart,
|
|
148
|
+
* Legend component will be hide, and show for more then 1 data item.
|
|
149
|
+
* If set `true` - Legend component will show always.
|
|
150
|
+
*/
|
|
151
151
|
showLegend?: true;
|
|
152
152
|
/**
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
* Props for Legend
|
|
154
|
+
*/
|
|
155
155
|
legendProps?: Partial<BaseLegendProps>;
|
|
156
156
|
});
|
|
157
157
|
type LegendDataMap<T extends 'Flex' | 'Table'> = Record<LegendItemKey, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AreaChartType } from './AreaChart.type';
|
|
1
|
+
import type { AreaChartType } from './AreaChart.type';
|
|
2
2
|
export declare const AreaChart: AreaChartType;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Intergalactic } from '@semcore/core';
|
|
2
|
-
import { Flex } from '@semcore/flex-box';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Flex } from '@semcore/flex-box';
|
|
3
|
+
import type { ScaleLinear, ScaleTime } from 'd3-scale';
|
|
4
|
+
import type { CurveFactory } from 'd3-shape';
|
|
5
|
+
import type { BaseChartProps } from './AbstractChart.type';
|
|
6
|
+
import type { interpolateValue } from '../../utils';
|
|
7
7
|
export type AreaChartData = Array<Record<string, number | typeof interpolateValue | Date>>;
|
|
8
8
|
export type AreaChartProps = BaseChartProps<AreaChartData> & {
|
|
9
9
|
groupKey: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BarChartType } from './BarChart.type';
|
|
1
|
+
import type { BarChartType } from './BarChart.type';
|
|
2
2
|
export declare const BarChart: BarChartType;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { BaseChartProps } from './AbstractChart.type';
|
|
6
|
-
import { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Flex } from '@semcore/flex-box';
|
|
3
|
+
import type { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';
|
|
4
|
+
import type React from 'react';
|
|
5
|
+
import type { BaseChartProps } from './AbstractChart.type';
|
|
6
|
+
import type { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';
|
|
7
7
|
type TrendItem = {
|
|
8
8
|
x: number;
|
|
9
9
|
y: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BubbleChartType } from './BubbleChart.type';
|
|
1
|
+
import type { BubbleChartType } from './BubbleChart.type';
|
|
2
2
|
export declare const BubbleChart: BubbleChartType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Intergalactic } from '@semcore/core';
|
|
2
|
-
import { Flex } from '@semcore/flex-box';
|
|
3
|
-
import { ScaleLinear } from 'd3-scale';
|
|
4
|
-
import { BaseChartProps } from './AbstractChart.type';
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Flex } from '@semcore/flex-box';
|
|
3
|
+
import type { ScaleLinear } from 'd3-scale';
|
|
4
|
+
import type { BaseChartProps } from './AbstractChart.type';
|
|
5
5
|
export type ScaledValues = {
|
|
6
6
|
x: number[];
|
|
7
7
|
y: number[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CigaretteChartType } from './CigaretteChart.type';
|
|
1
|
+
import type { CigaretteChartType } from './CigaretteChart.type';
|
|
2
2
|
export declare const CigaretteChart: CigaretteChartType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { BaseChartProps } from './AbstractChart.type';
|
|
4
|
-
import { interpolateValue } from '../../utils';
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { BaseChartProps } from './AbstractChart.type';
|
|
4
|
+
import type { interpolateValue } from '../../utils';
|
|
5
5
|
type DataKey = string;
|
|
6
6
|
export type CigaretteChartData = Record<DataKey, number | typeof interpolateValue>;
|
|
7
7
|
export type CigaretteChartProps = Intergalactic.InternalTypings.EfficientOmit<BaseChartProps<CigaretteChartData>, 'xScale' | 'yScale'> & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CompactHorizontalBarChartType } from './CompactHorizontalBarChart.type';
|
|
1
|
+
import type { CompactHorizontalBarChartType } from './CompactHorizontalBarChart.type';
|
|
2
2
|
export declare const CompactHorizontalBarChart: CompactHorizontalBarChartType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { BaseChartProps } from './AbstractChart.type';
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Flex } from '@semcore/flex-box';
|
|
3
|
+
import type { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';
|
|
4
|
+
import type React from 'react';
|
|
5
|
+
import type { BaseChartProps } from './AbstractChart.type';
|
|
6
6
|
type BarKey = string;
|
|
7
7
|
export type CompactHorizontalBarChartData = Array<Record<BarKey, number | string>>;
|
|
8
8
|
export type CompactHorizontalBarChartProps = BaseChartProps<CompactHorizontalBarChartData> & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DonutChartType } from './DonutChart.type';
|
|
1
|
+
import type { DonutChartType } from './DonutChart.type';
|
|
2
2
|
export declare const DonutChart: DonutChartType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { BaseChartProps } from './AbstractChart.type';
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Flex } from '@semcore/flex-box';
|
|
3
|
+
import type { ScaleLinear } from 'd3-scale';
|
|
4
|
+
import type React from 'react';
|
|
5
|
+
import type { BaseChartProps } from './AbstractChart.type';
|
|
6
6
|
export type DonutChartData = Record<string, number>;
|
|
7
7
|
export type DonutChartProps = BaseChartProps<DonutChartData> & {
|
|
8
8
|
groupKey?: never;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HistogramChartType } from './HistogramChart.type';
|
|
1
|
+
import type { HistogramChartType } from './HistogramChart.type';
|
|
2
2
|
export declare const HistogramChart: HistogramChartType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Intergalactic } from '@semcore/core';
|
|
2
|
-
import { Flex } from '@semcore/flex-box';
|
|
3
|
-
import { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';
|
|
4
|
-
import { BaseChartProps } from './AbstractChart.type';
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Flex } from '@semcore/flex-box';
|
|
3
|
+
import type { ScaleBand, ScaleLinear, ScaleTime } from 'd3-scale';
|
|
4
|
+
import type { BaseChartProps } from './AbstractChart.type';
|
|
5
5
|
export type HistogramChartData = Array<Record<string, number | Date>>;
|
|
6
6
|
export type HistogramChartProps = BaseChartProps<HistogramChartData> & {
|
|
7
7
|
groupKey: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LineChartType } from './LineChart.type';
|
|
1
|
+
import type { LineChartType } from './LineChart.type';
|
|
2
2
|
export declare const LineChart: LineChartType;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Intergalactic } from '@semcore/core';
|
|
2
|
-
import { Flex } from '@semcore/flex-box';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Flex } from '@semcore/flex-box';
|
|
3
|
+
import type { ScaleLinear, ScaleTime } from 'd3-scale';
|
|
4
|
+
import type { CurveFactory } from 'd3-shape';
|
|
5
|
+
import type { BaseChartProps } from './AbstractChart.type';
|
|
6
|
+
import type { interpolateValue } from '../../utils';
|
|
7
|
+
import type { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';
|
|
8
8
|
type AreaItem = {
|
|
9
9
|
x: number;
|
|
10
10
|
y0: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RadarChartType } from './RadarChart.type';
|
|
1
|
+
import type { RadarChartType } from './RadarChart.type';
|
|
2
2
|
export declare const RadarChart: RadarChartType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Intergalactic } from '@semcore/core';
|
|
2
|
-
import { Flex } from '@semcore/flex-box';
|
|
3
|
-
import { ScaleLinear } from 'd3-scale';
|
|
4
|
-
import { BaseChartProps } from './AbstractChart.type';
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Flex } from '@semcore/flex-box';
|
|
3
|
+
import type { ScaleLinear } from 'd3-scale';
|
|
4
|
+
import type { BaseChartProps } from './AbstractChart.type';
|
|
5
5
|
export type RadarChartData = Record<string, string[] | number[]>;
|
|
6
6
|
export type RadarChartProps = BaseChartProps<RadarChartData> & {
|
|
7
7
|
groupKey: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ScatterPlotChartType } from './ScatterPlotChart.type';
|
|
1
|
+
import type { ScatterPlotChartType } from './ScatterPlotChart.type';
|
|
2
2
|
export declare const ScatterPlotChart: ScatterPlotChartType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Intergalactic } from '@semcore/core';
|
|
2
|
-
import { Flex } from '@semcore/flex-box';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Flex } from '@semcore/flex-box';
|
|
3
|
+
import type { ScaleLinear, ScaleTime } from 'd3-scale';
|
|
4
|
+
import type { BaseChartProps } from './AbstractChart.type';
|
|
5
|
+
import type { interpolateValue } from '../../utils';
|
|
6
6
|
export type ScatterPlotChartData = Array<Record<string, number | typeof interpolateValue | Date>>;
|
|
7
7
|
export type ScatterPlotChartProps = BaseChartProps<ScatterPlotChartData> & {
|
|
8
8
|
groupKey: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { VennChartType } from './VennChart.type';
|
|
1
|
+
import type { VennChartType } from './VennChart.type';
|
|
2
2
|
export declare const VennChart: VennChartType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Intergalactic } from '@semcore/core';
|
|
2
|
-
import { Flex } from '@semcore/flex-box';
|
|
3
|
-
import { ScaleLinear } from 'd3-scale';
|
|
4
|
-
import { BaseChartProps } from './AbstractChart.type';
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Flex } from '@semcore/flex-box';
|
|
3
|
+
import type { ScaleLinear } from 'd3-scale';
|
|
4
|
+
import type { BaseChartProps } from './AbstractChart.type';
|
|
5
5
|
export type VennChartData = Record<string, number>;
|
|
6
6
|
export type VennChartProps = BaseChartProps<VennChartData> & {
|
|
7
7
|
groupKey?: never;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Component, type Intergalactic } from '@semcore/core';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
import type { LegendProps } from './BaseLegend.type';
|
|
4
|
+
import type { LegendItemKey, LegendItemProps } from './LegendItem/LegendItem.type';
|
|
5
5
|
export declare abstract class BaseLegend<T extends LegendProps> extends Component<T> {
|
|
6
6
|
componentDidMount(): void;
|
|
7
7
|
componentDidUpdate(prevProps: T): void;
|
|
@@ -9,6 +9,8 @@ export declare abstract class BaseLegend<T extends LegendProps> extends Componen
|
|
|
9
9
|
getItem(index: number): import("./LegendItem/LegendItem.type").LegendItem;
|
|
10
10
|
getLegendItemProps(_: {}, index: number): LegendItemProps & Intergalactic.InternalTypings.ComponentPropsNesting<'div'>;
|
|
11
11
|
onChangeLegendItem: (id: LegendItemKey, checked: boolean) => void;
|
|
12
|
+
onFocusLegendItem: (checked: boolean) => (id: LegendItemKey) => void;
|
|
13
|
+
onBlurLegendItem: (id: LegendItemKey) => void;
|
|
12
14
|
bindOnMouseEnterItem: (id: LegendItemKey) => (e: React.SyntheticEvent) => void;
|
|
13
15
|
bindOnMouseLeaveItem: (id: LegendItemKey) => (e: React.SyntheticEvent) => void;
|
|
14
16
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { DataStructureHints } from '../../a11y/hints';
|
|
1
|
+
import type { BoxProps, FlexProps } from '@semcore/flex-box';
|
|
2
|
+
import type { LegendItem, LegendItemKey, ShapeType } from './LegendItem/LegendItem.type';
|
|
3
|
+
import type { DataStructureHints } from '../../a11y/hints';
|
|
5
4
|
import type { PatternsConfig } from '../../Pattern';
|
|
6
|
-
import { AriaNameProps } from '../Chart/AbstractChart.type';
|
|
5
|
+
import type { AriaNameProps } from '../Chart/AbstractChart.type';
|
|
7
6
|
export type LSize = 'm' | 'l';
|
|
8
7
|
export type BaseChartLegendProps = FlexProps & AriaNameProps & {
|
|
9
8
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LegendFlexType } from './LegendFlex.type';
|
|
1
|
+
import type { LegendFlexType } from './LegendFlex.type';
|
|
2
2
|
export declare const LegendFlex: LegendFlexType;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { Flex, FlexProps } from '@semcore/flex-box';
|
|
3
|
-
import {
|
|
4
|
-
import { LegendItemType } from '../LegendItem/LegendItem.type';
|
|
5
|
-
import { LegendProps } from '../BaseLegend.type';
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Flex, FlexProps } from '@semcore/flex-box';
|
|
3
|
+
import type { LegendProps } from '../BaseLegend.type';
|
|
4
|
+
import type { LegendItemType } from '../LegendItem/LegendItem.type';
|
|
6
5
|
export type TrendProps = {
|
|
7
6
|
/**
|
|
8
7
|
* Flag for include trend LegendItem in Legend
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LegendItemType } from './LegendItem.type';
|
|
1
|
+
import { type LegendItemType } from './LegendItem.type';
|
|
2
2
|
export declare const LegendItemComponent: LegendItemType;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import { Flex } from '@semcore/flex-box';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { LSize } from '../BaseLegend.type';
|
|
7
|
-
import { PatternsConfig } from '../../../Pattern';
|
|
1
|
+
import type { Intergalactic, Root } from '@semcore/core';
|
|
2
|
+
import type { Flex } from '@semcore/flex-box';
|
|
3
|
+
import type Icon from '@semcore/icon';
|
|
4
|
+
import type { Text } from '@semcore/typography';
|
|
5
|
+
import type { PatternsConfig } from '../../../Pattern';
|
|
6
|
+
import type { LSize } from '../BaseLegend.type';
|
|
8
7
|
/**
|
|
9
8
|
* Key of chart data item
|
|
10
9
|
*/
|
|
@@ -63,14 +62,22 @@ export type LegendItemProps = LegendItem & {
|
|
|
63
62
|
* Handler for select/deselect legend item
|
|
64
63
|
*/
|
|
65
64
|
onChangeLegendItem: (id: LegendItemKey, checked: boolean) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Handler for focus legend item
|
|
67
|
+
*/
|
|
68
|
+
onFocusLegendItem: (id: LegendItemKey) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Handler for focus out legend item
|
|
71
|
+
*/
|
|
72
|
+
onBlurLegendItem: (id: LegendItemKey) => void;
|
|
66
73
|
};
|
|
67
74
|
export type ShapeProps = LegendItem & ({
|
|
68
75
|
size: LSize;
|
|
69
76
|
shape: Exclude<ShapeType, 'Checkbox'>;
|
|
70
77
|
} | {
|
|
71
|
-
size: LSize;
|
|
72
|
-
shape: Extract<ShapeType, 'Checkbox'>;
|
|
73
|
-
onChange: (checked: boolean, e?: React.SyntheticEvent<HTMLInputElement>) => void;
|
|
78
|
+
'size': LSize;
|
|
79
|
+
'shape': Extract<ShapeType, 'Checkbox'>;
|
|
80
|
+
'onChange': (checked: boolean, e?: React.SyntheticEvent<HTMLInputElement>) => void;
|
|
74
81
|
'aria-labelledby'?: string;
|
|
75
82
|
});
|
|
76
83
|
export declare const StaticShapes: readonly ["Circle", "Line", "Square", "Pattern"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LegendTableType } from './LegendTable.type';
|
|
1
|
+
import type { LegendTableType } from './LegendTable.type';
|
|
2
2
|
export declare const LegendTable: LegendTableType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Intergalactic } from '@semcore/core';
|
|
2
|
-
import { Box } from '@semcore/flex-box';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import type { Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { Box } from '@semcore/flex-box';
|
|
3
|
+
import type React from 'react';
|
|
4
|
+
import type { LegendProps, LSize } from '../BaseLegend.type';
|
|
5
|
+
import type { LegendItem, LegendItemType } from '../LegendItem/LegendItem.type';
|
|
6
6
|
export type LegendTableProps = Intergalactic.InternalTypings.EfficientOmit<LegendProps, 'items'> & {
|
|
7
7
|
/**
|
|
8
8
|
* Legend items
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { IntergalacticD3Component } from '../../Plot';
|
|
1
|
+
import type { ScaleBand, ScaleLinear } from 'd3-scale';
|
|
2
|
+
import type { Stack } from 'd3-shape';
|
|
3
|
+
import type { IntergalacticD3Component } from '../../Plot';
|
|
5
4
|
type StackGroupData = {
|
|
6
5
|
[key: string]: number;
|
|
7
6
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type FilteredTags<T, ValueType> = {
|
|
3
|
+
[K in keyof T]: K extends ValueType ? K : never;
|
|
4
|
+
}[keyof T];
|
|
5
|
+
type AvailableTags = FilteredTags<JSX.IntrinsicElements, keyof SVGElementTagNameMap>;
|
|
6
|
+
type SvgElementProps<T extends AvailableTags> = React.SVGProps<SVGElementTagNameMap[T]> & {
|
|
7
|
+
tag: T;
|
|
8
|
+
};
|
|
9
|
+
export declare const SvgElement: <T extends AvailableTags>({ tag: Tag, ...props }: SvgElementProps<T>) => React.JSX.Element;
|
|
10
|
+
export {};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Utils
|
|
2
2
|
// @ts-ignore
|
|
3
|
-
import { interpolateValue as intValue
|
|
3
|
+
import type { interpolateValue as intValue } from './utils';
|
|
4
|
+
import { PlotEventEmitter } from './utils';
|
|
4
5
|
|
|
5
6
|
export declare const interpolateValue: typeof intValue;
|
|
6
7
|
export declare function minMax(data: any, key: string | number): any;
|