@lobehub/charts 5.7.0 → 5.7.1
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/es/AccuracyBarChart/index.d.mts +62 -0
- package/es/AccuracyBarChart/index.mjs +326 -0
- package/es/AccuracyBarChart/index.mjs.map +1 -0
- package/es/AccuracyBarChart/styles.d.mts +14 -0
- package/es/AccuracyBarChart/styles.mjs +71 -0
- package/es/AccuracyBarChart/styles.mjs.map +1 -0
- package/es/AreaChart/index.d.mts +13 -0
- package/es/AreaChart/index.mjs +308 -0
- package/es/AreaChart/index.mjs.map +1 -0
- package/es/AreaChart/styles.d.mts +9 -0
- package/es/AreaChart/styles.mjs +28 -0
- package/es/AreaChart/styles.mjs.map +1 -0
- package/es/BarChart/index.d.mts +11 -0
- package/es/BarChart/index.mjs +290 -0
- package/es/BarChart/index.mjs.map +1 -0
- package/es/BarChart/{renderShape.d.ts → renderShape.d.mts} +3 -1
- package/es/BarChart/renderShape.mjs +28 -0
- package/es/BarChart/renderShape.mjs.map +1 -0
- package/es/BarChart/styles.d.mts +9 -0
- package/es/BarChart/styles.mjs +28 -0
- package/es/BarChart/styles.mjs.map +1 -0
- package/es/BarList/index.d.mts +32 -0
- package/es/BarList/index.mjs +128 -0
- package/es/BarList/index.mjs.map +1 -0
- package/es/BarList/styles.d.mts +13 -0
- package/es/BarList/styles.mjs +63 -0
- package/es/BarList/styles.mjs.map +1 -0
- package/es/BenchmarkColumnChart/index.d.mts +144 -0
- package/es/BenchmarkColumnChart/index.mjs +514 -0
- package/es/BenchmarkColumnChart/index.mjs.map +1 -0
- package/es/BenchmarkColumnChart/styles.d.mts +19 -0
- package/es/BenchmarkColumnChart/styles.mjs +129 -0
- package/es/BenchmarkColumnChart/styles.mjs.map +1 -0
- package/es/BenchmarkRankingChart/index.d.mts +91 -0
- package/es/BenchmarkRankingChart/index.mjs +347 -0
- package/es/BenchmarkRankingChart/index.mjs.map +1 -0
- package/es/BenchmarkRankingChart/styles.d.mts +36 -0
- package/es/BenchmarkRankingChart/styles.mjs +265 -0
- package/es/BenchmarkRankingChart/styles.mjs.map +1 -0
- package/es/BenchmarkScatterChart/index.d.mts +148 -0
- package/es/BenchmarkScatterChart/index.mjs +668 -0
- package/es/BenchmarkScatterChart/index.mjs.map +1 -0
- package/es/BenchmarkScatterChart/styles.d.mts +28 -0
- package/es/BenchmarkScatterChart/styles.mjs +193 -0
- package/es/BenchmarkScatterChart/styles.mjs.map +1 -0
- package/es/BenchmarkScatterChart/{utils.d.ts → utils.d.mts} +32 -29
- package/es/BenchmarkScatterChart/utils.mjs +214 -0
- package/es/BenchmarkScatterChart/utils.mjs.map +1 -0
- package/es/ComposedChart/index.d.mts +6 -0
- package/es/ComposedChart/index.mjs +254 -0
- package/es/ComposedChart/index.mjs.map +1 -0
- package/es/ComposedChart/styles.d.mts +9 -0
- package/es/ComposedChart/styles.mjs +28 -0
- package/es/ComposedChart/styles.mjs.map +1 -0
- package/es/ComposedChart/types.d.mts +71 -0
- package/es/ComposedChart/types.mjs +0 -0
- package/es/DataBars/CategoryBar.d.mts +17 -0
- package/es/DataBars/CategoryBar.mjs +146 -0
- package/es/DataBars/CategoryBar.mjs.map +1 -0
- package/es/DataBars/DeltaBar.d.mts +16 -0
- package/es/DataBars/DeltaBar.mjs +102 -0
- package/es/DataBars/DeltaBar.mjs.map +1 -0
- package/es/DataBars/MarkerBar.d.mts +19 -0
- package/es/DataBars/MarkerBar.mjs +74 -0
- package/es/DataBars/MarkerBar.mjs.map +1 -0
- package/es/DataBars/ProgressBar.d.mts +15 -0
- package/es/DataBars/ProgressBar.mjs +53 -0
- package/es/DataBars/ProgressBar.mjs.map +1 -0
- package/es/DataBars/index.d.mts +5 -0
- package/es/DataBars/index.mjs +5 -0
- package/es/DataBars/styles.d.mts +10 -0
- package/es/DataBars/styles.mjs +31 -0
- package/es/DataBars/styles.mjs.map +1 -0
- package/es/DonutChart/DonutChartTooltip.d.mts +14 -0
- package/es/DonutChart/DonutChartTooltip.mjs +25 -0
- package/es/DonutChart/DonutChartTooltip.mjs.map +1 -0
- package/es/DonutChart/index.d.mts +33 -0
- package/es/DonutChart/index.mjs +160 -0
- package/es/DonutChart/index.mjs.map +1 -0
- package/es/DonutChart/inputParser.d.mts +5 -0
- package/es/DonutChart/inputParser.mjs +8 -0
- package/es/DonutChart/inputParser.mjs.map +1 -0
- package/es/DonutChart/renderInactiveShape.d.mts +4 -0
- package/es/DonutChart/renderInactiveShape.mjs +22 -0
- package/es/DonutChart/renderInactiveShape.mjs.map +1 -0
- package/es/DonutChart/styles.d.mts +9 -0
- package/es/DonutChart/styles.mjs +28 -0
- package/es/DonutChart/styles.mjs.map +1 -0
- package/es/FunnelChart/ArrowRightIcon.d.mts +8 -0
- package/es/FunnelChart/ArrowRightIcon.mjs +14 -0
- package/es/FunnelChart/ArrowRightIcon.mjs.map +1 -0
- package/es/FunnelChart/index.d.mts +21 -0
- package/es/FunnelChart/index.mjs +421 -0
- package/es/FunnelChart/index.mjs.map +1 -0
- package/es/FunnelChart/styles.d.mts +9 -0
- package/es/FunnelChart/styles.mjs +28 -0
- package/es/FunnelChart/styles.mjs.map +1 -0
- package/es/FunnelChart/types.d.mts +31 -0
- package/es/FunnelChart/types.mjs +0 -0
- package/es/Heatmaps/Calendar.d.mts +21 -0
- package/es/Heatmaps/Calendar.mjs +108 -0
- package/es/Heatmaps/Calendar.mjs.map +1 -0
- package/es/Heatmaps/ChartLabels.d.mts +17 -0
- package/es/Heatmaps/ChartLabels.mjs +84 -0
- package/es/Heatmaps/ChartLabels.mjs.map +1 -0
- package/es/Heatmaps/Footer.d.mts +24 -0
- package/es/Heatmaps/Footer.mjs +81 -0
- package/es/Heatmaps/Footer.mjs.map +1 -0
- package/es/Heatmaps/index.d.mts +31 -0
- package/es/Heatmaps/index.mjs +188 -0
- package/es/Heatmaps/index.mjs.map +1 -0
- package/es/Heatmaps/styles.d.mts +10 -0
- package/es/Heatmaps/styles.mjs +47 -0
- package/es/Heatmaps/styles.mjs.map +1 -0
- package/es/Legend/LegendItem.d.mts +12 -0
- package/es/Legend/LegendItem.mjs +65 -0
- package/es/Legend/LegendItem.mjs.map +1 -0
- package/es/Legend/ScrollButton.d.mts +11 -0
- package/es/Legend/ScrollButton.mjs +50 -0
- package/es/Legend/ScrollButton.mjs.map +1 -0
- package/es/Legend/index.d.mts +16 -0
- package/es/Legend/index.mjs +152 -0
- package/es/Legend/index.mjs.map +1 -0
- package/es/LineChart/index.d.mts +11 -0
- package/es/LineChart/index.mjs +271 -0
- package/es/LineChart/index.mjs.map +1 -0
- package/es/LineChart/styles.d.mts +9 -0
- package/es/LineChart/styles.mjs +28 -0
- package/es/LineChart/styles.mjs.map +1 -0
- package/es/RadarChart/index.d.mts +27 -0
- package/es/RadarChart/index.mjs +157 -0
- package/es/RadarChart/index.mjs.map +1 -0
- package/es/RadarChart/styles.d.mts +8 -0
- package/es/RadarChart/styles.mjs +23 -0
- package/es/RadarChart/styles.mjs.map +1 -0
- package/es/ScatterChart/ScatterChartTooltip.d.mts +19 -0
- package/es/ScatterChart/ScatterChartTooltip.mjs +52 -0
- package/es/ScatterChart/ScatterChartTooltip.mjs.map +1 -0
- package/es/ScatterChart/ScatterChartTooltipRow.d.mts +10 -0
- package/es/ScatterChart/ScatterChartTooltipRow.mjs +36 -0
- package/es/ScatterChart/ScatterChartTooltipRow.mjs.map +1 -0
- package/es/ScatterChart/index.d.mts +58 -0
- package/es/ScatterChart/index.mjs +241 -0
- package/es/ScatterChart/index.mjs.map +1 -0
- package/es/ScatterChart/{renderShape.d.ts → renderShape.d.mts} +4 -1
- package/es/ScatterChart/renderShape.mjs +18 -0
- package/es/ScatterChart/renderShape.mjs.map +1 -0
- package/es/ScatterChart/styles.d.mts +9 -0
- package/es/ScatterChart/styles.mjs +28 -0
- package/es/ScatterChart/styles.mjs.map +1 -0
- package/es/SparkChart/SparkAreaChart.d.mts +14 -0
- package/es/SparkChart/SparkAreaChart.mjs +109 -0
- package/es/SparkChart/SparkAreaChart.mjs.map +1 -0
- package/es/SparkChart/SparkBarChart.d.mts +11 -0
- package/es/SparkChart/SparkBarChart.mjs +69 -0
- package/es/SparkChart/SparkBarChart.mjs.map +1 -0
- package/es/SparkChart/SparkLineChart.d.mts +12 -0
- package/es/SparkChart/SparkLineChart.mjs +73 -0
- package/es/SparkChart/SparkLineChart.mjs.map +1 -0
- package/es/SparkChart/index.d.mts +4 -0
- package/es/SparkChart/index.mjs +4 -0
- package/es/Tracker/TrackerBlock.d.mts +11 -0
- package/es/Tracker/TrackerBlock.mjs +52 -0
- package/es/Tracker/TrackerBlock.mjs.map +1 -0
- package/es/Tracker/index.d.mts +21 -0
- package/es/Tracker/index.mjs +69 -0
- package/es/Tracker/index.mjs.map +1 -0
- package/es/Tracker/styles.d.mts +8 -0
- package/es/Tracker/styles.mjs +24 -0
- package/es/Tracker/styles.mjs.map +1 -0
- package/es/common/BaseAnimationTimingProps.d.mts +10 -0
- package/es/common/BaseAnimationTimingProps.mjs +0 -0
- package/es/common/BaseChartProps.d.mts +61 -0
- package/es/common/BaseChartProps.mjs +0 -0
- package/es/common/BaseSparkChartProps.d.mts +17 -0
- package/es/common/BaseSparkChartProps.mjs +0 -0
- package/es/common/ChartLegend.d.mts +8 -0
- package/es/common/ChartLegend.mjs +32 -0
- package/es/common/ChartLegend.mjs.map +1 -0
- package/es/common/ChartTooltip/ChartTooltipFrame.d.mts +8 -0
- package/es/common/ChartTooltip/ChartTooltipFrame.mjs +27 -0
- package/es/common/ChartTooltip/ChartTooltipFrame.mjs.map +1 -0
- package/es/common/ChartTooltip/ChartTooltipRow.d.mts +10 -0
- package/es/common/ChartTooltip/ChartTooltipRow.mjs +51 -0
- package/es/common/ChartTooltip/ChartTooltipRow.mjs.map +1 -0
- package/es/common/ChartTooltip/index.d.mts +18 -0
- package/es/common/ChartTooltip/index.mjs +50 -0
- package/es/common/ChartTooltip/index.mjs.map +1 -0
- package/es/common/CustomTooltipProps.d.mts +15 -0
- package/es/common/CustomTooltipProps.mjs +0 -0
- package/es/common/CustomYAxisTick.d.mts +18 -0
- package/es/common/CustomYAxisTick.mjs +24 -0
- package/es/common/CustomYAxisTick.mjs.map +1 -0
- package/es/common/NoData.d.mts +13 -0
- package/es/common/NoData.mjs +25 -0
- package/es/common/NoData.mjs.map +1 -0
- package/es/common/benchmark/index.d.mts +3 -0
- package/es/common/benchmark/{index.js → index.mjs} +1 -1
- package/es/common/benchmark/types.d.mts +125 -0
- package/es/common/benchmark/types.mjs +0 -0
- package/es/common/benchmark/{utils.d.ts → utils.d.mts} +38 -36
- package/es/common/benchmark/utils.mjs +115 -0
- package/es/common/benchmark/utils.mjs.map +1 -0
- package/es/common/{utils.d.ts → utils.d.mts} +3 -0
- package/es/common/utils.mjs +36 -0
- package/es/common/utils.mjs.map +1 -0
- package/es/hooks/useOnWindowResize.d.mts +6 -0
- package/es/hooks/useOnWindowResize.mjs +18 -0
- package/es/hooks/useOnWindowResize.mjs.map +1 -0
- package/es/hooks/usePrefersReducedMotion.d.mts +4 -0
- package/es/hooks/usePrefersReducedMotion.mjs +24 -0
- package/es/hooks/usePrefersReducedMotion.mjs.map +1 -0
- package/es/hooks/useThemeColorRange.d.mts +4 -0
- package/es/hooks/useThemeColorRange.mjs +28 -0
- package/es/hooks/useThemeColorRange.mjs.map +1 -0
- package/es/index.d.mts +34 -0
- package/es/index.mjs +28 -0
- package/es/types/{charts.d.ts → charts.d.mts} +26 -26
- package/es/types/charts.mjs +12 -0
- package/es/types/charts.mjs.map +1 -0
- package/es/utils/{calendar.d.ts → calendar.d.mts} +21 -18
- package/es/utils/calendar.mjs +154 -0
- package/es/utils/calendar.mjs.map +1 -0
- package/es/utils/getMaxLabelLength.d.mts +13 -0
- package/es/utils/getMaxLabelLength.mjs +48 -0
- package/es/utils/getMaxLabelLength.mjs.map +1 -0
- package/es/utils/{index.d.ts → index.d.mts} +4 -1
- package/es/utils/index.mjs +19 -0
- package/es/utils/index.mjs.map +1 -0
- package/es/utils/{theme.d.ts → theme.d.mts} +3 -0
- package/es/utils/theme.mjs +33 -0
- package/es/utils/theme.mjs.map +1 -0
- package/package.json +22 -4
- package/es/AccuracyBarChart/index.d.ts +0 -60
- package/es/AccuracyBarChart/index.js +0 -454
- package/es/AccuracyBarChart/index.mdx +0 -52
- package/es/AccuracyBarChart/styles.d.ts +0 -11
- package/es/AccuracyBarChart/styles.js +0 -18
- package/es/AreaChart/index.d.ts +0 -11
- package/es/AreaChart/index.js +0 -430
- package/es/AreaChart/index.mdx +0 -49
- package/es/AreaChart/styles.d.ts +0 -6
- package/es/AreaChart/styles.js +0 -13
- package/es/BarChart/index.d.ts +0 -9
- package/es/BarChart/index.js +0 -392
- package/es/BarChart/index.mdx +0 -73
- package/es/BarChart/renderShape.js +0 -34
- package/es/BarChart/styles.d.ts +0 -6
- package/es/BarChart/styles.js +0 -13
- package/es/BarList/index.d.ts +0 -29
- package/es/BarList/index.js +0 -174
- package/es/BarList/index.mdx +0 -34
- package/es/BarList/styles.d.ts +0 -10
- package/es/BarList/styles.js +0 -18
- package/es/BenchmarkColumnChart/index.d.ts +0 -140
- package/es/BenchmarkColumnChart/index.js +0 -686
- package/es/BenchmarkColumnChart/index.mdx +0 -66
- package/es/BenchmarkColumnChart/styles.d.ts +0 -16
- package/es/BenchmarkColumnChart/styles.js +0 -23
- package/es/BenchmarkRankingChart/index.d.ts +0 -87
- package/es/BenchmarkRankingChart/index.js +0 -455
- package/es/BenchmarkRankingChart/index.mdx +0 -59
- package/es/BenchmarkRankingChart/styles.d.ts +0 -33
- package/es/BenchmarkRankingChart/styles.js +0 -41
- package/es/BenchmarkScatterChart/index.d.ts +0 -145
- package/es/BenchmarkScatterChart/index.js +0 -857
- package/es/BenchmarkScatterChart/index.mdx +0 -61
- package/es/BenchmarkScatterChart/styles.d.ts +0 -25
- package/es/BenchmarkScatterChart/styles.js +0 -33
- package/es/BenchmarkScatterChart/utils.js +0 -353
- package/es/ComposedChart/index.d.ts +0 -5
- package/es/ComposedChart/index.js +0 -335
- package/es/ComposedChart/index.mdx +0 -43
- package/es/ComposedChart/styles.d.ts +0 -6
- package/es/ComposedChart/styles.js +0 -13
- package/es/ComposedChart/types.d.ts +0 -68
- package/es/ComposedChart/types.js +0 -1
- package/es/DataBars/CategoryBar.d.ts +0 -15
- package/es/DataBars/CategoryBar.js +0 -201
- package/es/DataBars/DeltaBar.d.ts +0 -13
- package/es/DataBars/DeltaBar.js +0 -117
- package/es/DataBars/MarkerBar.d.ts +0 -16
- package/es/DataBars/MarkerBar.js +0 -94
- package/es/DataBars/ProgressBar.d.ts +0 -12
- package/es/DataBars/ProgressBar.js +0 -71
- package/es/DataBars/index.d.ts +0 -4
- package/es/DataBars/index.js +0 -4
- package/es/DataBars/index.mdx +0 -36
- package/es/DataBars/styles.d.ts +0 -7
- package/es/DataBars/styles.js +0 -14
- package/es/DonutChart/DonutChartTooltip.d.ts +0 -11
- package/es/DonutChart/DonutChartTooltip.js +0 -26
- package/es/DonutChart/index.d.ts +0 -31
- package/es/DonutChart/index.js +0 -232
- package/es/DonutChart/index.mdx +0 -48
- package/es/DonutChart/inputParser.d.ts +0 -2
- package/es/DonutChart/inputParser.js +0 -9
- package/es/DonutChart/renderInactiveShape.d.ts +0 -2
- package/es/DonutChart/renderInactiveShape.js +0 -27
- package/es/DonutChart/styles.d.ts +0 -6
- package/es/DonutChart/styles.js +0 -13
- package/es/FunnelChart/ArrowRightIcon.d.ts +0 -5
- package/es/FunnelChart/ArrowRightIcon.js +0 -22
- package/es/FunnelChart/index.d.ts +0 -19
- package/es/FunnelChart/index.js +0 -499
- package/es/FunnelChart/index.mdx +0 -21
- package/es/FunnelChart/styles.d.ts +0 -6
- package/es/FunnelChart/styles.js +0 -13
- package/es/FunnelChart/types.d.ts +0 -28
- package/es/FunnelChart/types.js +0 -1
- package/es/Heatmaps/Calendar.d.ts +0 -18
- package/es/Heatmaps/Calendar.js +0 -155
- package/es/Heatmaps/ChartLabels.d.ts +0 -15
- package/es/Heatmaps/ChartLabels.js +0 -106
- package/es/Heatmaps/Footer.d.ts +0 -22
- package/es/Heatmaps/Footer.js +0 -105
- package/es/Heatmaps/index.d.ts +0 -28
- package/es/Heatmaps/index.js +0 -227
- package/es/Heatmaps/index.mdx +0 -70
- package/es/Heatmaps/styles.d.ts +0 -7
- package/es/Heatmaps/styles.js +0 -14
- package/es/Legend/LegendItem.d.ts +0 -10
- package/es/Legend/LegendItem.js +0 -58
- package/es/Legend/ScrollButton.d.ts +0 -9
- package/es/Legend/ScrollButton.js +0 -63
- package/es/Legend/index.d.ts +0 -14
- package/es/Legend/index.js +0 -184
- package/es/Legend/index.mdx +0 -13
- package/es/LineChart/index.d.ts +0 -9
- package/es/LineChart/index.js +0 -388
- package/es/LineChart/index.mdx +0 -49
- package/es/LineChart/styles.d.ts +0 -6
- package/es/LineChart/styles.js +0 -13
- package/es/RadarChart/index.d.ts +0 -24
- package/es/RadarChart/index.js +0 -254
- package/es/RadarChart/index.mdx +0 -52
- package/es/RadarChart/styles.d.ts +0 -5
- package/es/RadarChart/styles.js +0 -12
- package/es/ScatterChart/ScatterChartTooltip.d.ts +0 -16
- package/es/ScatterChart/ScatterChartTooltip.js +0 -76
- package/es/ScatterChart/ScatterChartTooltipRow.d.ts +0 -7
- package/es/ScatterChart/ScatterChartTooltipRow.js +0 -40
- package/es/ScatterChart/index.d.ts +0 -56
- package/es/ScatterChart/index.js +0 -342
- package/es/ScatterChart/index.mdx +0 -49
- package/es/ScatterChart/renderShape.js +0 -18
- package/es/ScatterChart/styles.d.ts +0 -6
- package/es/ScatterChart/styles.js +0 -13
- package/es/SparkChart/SparkAreaChart.d.ts +0 -12
- package/es/SparkChart/SparkAreaChart.js +0 -148
- package/es/SparkChart/SparkBarChart.d.ts +0 -9
- package/es/SparkChart/SparkBarChart.js +0 -106
- package/es/SparkChart/SparkLineChart.d.ts +0 -10
- package/es/SparkChart/SparkLineChart.js +0 -110
- package/es/SparkChart/index.d.ts +0 -3
- package/es/SparkChart/index.js +0 -3
- package/es/SparkChart/index.mdx +0 -29
- package/es/Tracker/TrackerBlock.d.ts +0 -8
- package/es/Tracker/TrackerBlock.js +0 -64
- package/es/Tracker/index.d.ts +0 -18
- package/es/Tracker/index.js +0 -105
- package/es/Tracker/index.mdx +0 -41
- package/es/Tracker/styles.d.ts +0 -5
- package/es/Tracker/styles.js +0 -12
- package/es/common/BaseAnimationTimingProps.d.ts +0 -7
- package/es/common/BaseAnimationTimingProps.js +0 -1
- package/es/common/BaseChartProps.d.ts +0 -58
- package/es/common/BaseChartProps.js +0 -1
- package/es/common/BaseSparkChartProps.d.ts +0 -14
- package/es/common/BaseSparkChartProps.js +0 -1
- package/es/common/ChartLegend.d.ts +0 -5
- package/es/common/ChartLegend.js +0 -40
- package/es/common/ChartTooltip/ChartTooltipFrame.d.ts +0 -6
- package/es/common/ChartTooltip/ChartTooltipFrame.js +0 -32
- package/es/common/ChartTooltip/ChartTooltipRow.d.ts +0 -8
- package/es/common/ChartTooltip/ChartTooltipRow.js +0 -55
- package/es/common/ChartTooltip/index.d.ts +0 -15
- package/es/common/ChartTooltip/index.js +0 -66
- package/es/common/CustomTooltipProps.d.ts +0 -12
- package/es/common/CustomTooltipProps.js +0 -1
- package/es/common/CustomYAxisTick.d.ts +0 -15
- package/es/common/CustomYAxisTick.js +0 -27
- package/es/common/NoData.d.ts +0 -10
- package/es/common/NoData.js +0 -24
- package/es/common/benchmark/index.d.ts +0 -2
- package/es/common/benchmark/types.d.ts +0 -122
- package/es/common/benchmark/types.js +0 -1
- package/es/common/benchmark/utils.js +0 -159
- package/es/common/utils.js +0 -85
- package/es/hooks/useOnWindowResize.d.ts +0 -3
- package/es/hooks/useOnWindowResize.js +0 -15
- package/es/hooks/usePrefersReducedMotion.d.ts +0 -1
- package/es/hooks/usePrefersReducedMotion.js +0 -28
- package/es/hooks/useThemeColorRange.d.ts +0 -1
- package/es/hooks/useThemeColorRange.js +0 -8
- package/es/index.d.ts +0 -24
- package/es/index.js +0 -22
- package/es/types/charts.js +0 -8
- package/es/types/global.d.ts +0 -9
- package/es/utils/calendar.js +0 -199
- package/es/utils/getMaxLabelLength.d.ts +0 -10
- package/es/utils/getMaxLabelLength.js +0 -110
- package/es/utils/index.js +0 -32
- package/es/utils/theme.js +0 -40
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { createStaticStyles } from "antd-style";
|
|
2
|
+
//#region src/BenchmarkRankingChart/styles.ts
|
|
3
|
+
const prefixCls = "ant";
|
|
4
|
+
const styles = createStaticStyles(({ css, cssVar }) => ({
|
|
5
|
+
axisLabelSpacer: css`
|
|
6
|
+
flex-shrink: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
`,
|
|
9
|
+
bar: css`
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 50%;
|
|
12
|
+
left: 0;
|
|
13
|
+
transform: translateY(-50%);
|
|
14
|
+
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
border-radius: 0;
|
|
17
|
+
|
|
18
|
+
transition: all 0.25s ${cssVar.motionEaseInOut};
|
|
19
|
+
`,
|
|
20
|
+
barHover: css`
|
|
21
|
+
&:hover {
|
|
22
|
+
.${prefixCls}-benchmark-ranking-bar {
|
|
23
|
+
filter: brightness(1.08);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
`,
|
|
27
|
+
barTrack: css`
|
|
28
|
+
position: relative;
|
|
29
|
+
overflow: visible;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
`,
|
|
33
|
+
container: css`
|
|
34
|
+
align-items: stretch;
|
|
35
|
+
min-width: 0;
|
|
36
|
+
`,
|
|
37
|
+
emphasis: css`
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
`,
|
|
42
|
+
errorBar: css`
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
|
|
45
|
+
position: absolute;
|
|
46
|
+
z-index: 2;
|
|
47
|
+
top: 50%;
|
|
48
|
+
transform: translateY(-50%);
|
|
49
|
+
|
|
50
|
+
height: 0;
|
|
51
|
+
border-top: 1.5px solid #fff;
|
|
52
|
+
|
|
53
|
+
mix-blend-mode: difference;
|
|
54
|
+
|
|
55
|
+
&::before,
|
|
56
|
+
&::after {
|
|
57
|
+
content: '';
|
|
58
|
+
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 50%;
|
|
61
|
+
transform: translateY(-50%);
|
|
62
|
+
|
|
63
|
+
width: 0;
|
|
64
|
+
height: 10px;
|
|
65
|
+
border-left: 1.5px solid #fff;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&::before {
|
|
69
|
+
left: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&::after {
|
|
73
|
+
right: 0;
|
|
74
|
+
}
|
|
75
|
+
`,
|
|
76
|
+
gridLine: css`
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
|
|
79
|
+
position: absolute;
|
|
80
|
+
z-index: 0;
|
|
81
|
+
top: 0;
|
|
82
|
+
|
|
83
|
+
width: 0;
|
|
84
|
+
border-left: 1px dashed ${cssVar.colorBorderSecondary};
|
|
85
|
+
`,
|
|
86
|
+
icon: css`
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
flex-shrink: 0;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
|
|
92
|
+
width: 24px;
|
|
93
|
+
height: 24px;
|
|
94
|
+
`,
|
|
95
|
+
identity: css`
|
|
96
|
+
display: flex;
|
|
97
|
+
flex: 1;
|
|
98
|
+
gap: 10px;
|
|
99
|
+
align-items: center;
|
|
100
|
+
|
|
101
|
+
min-width: 0;
|
|
102
|
+
`,
|
|
103
|
+
labelColumn: css`
|
|
104
|
+
flex-shrink: 0;
|
|
105
|
+
min-width: 0;
|
|
106
|
+
padding-right: 16px;
|
|
107
|
+
`,
|
|
108
|
+
labelRow: css`
|
|
109
|
+
min-width: 0;
|
|
110
|
+
`,
|
|
111
|
+
labelStack: css`
|
|
112
|
+
display: flex;
|
|
113
|
+
flex: 1;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
gap: 2px;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
|
|
118
|
+
min-width: 0;
|
|
119
|
+
`,
|
|
120
|
+
name: css`
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
|
|
123
|
+
font-size: var(--benchmark-label-font-size, 14px);
|
|
124
|
+
font-weight: 600;
|
|
125
|
+
line-height: 1.3;
|
|
126
|
+
color: ${cssVar.colorText};
|
|
127
|
+
text-overflow: ellipsis;
|
|
128
|
+
white-space: pre-line;
|
|
129
|
+
`,
|
|
130
|
+
nameLink: css`
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
|
|
133
|
+
font-size: var(--benchmark-label-font-size, 14px);
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
line-height: 1.3;
|
|
136
|
+
color: ${cssVar.colorText} !important;
|
|
137
|
+
text-overflow: ellipsis;
|
|
138
|
+
white-space: pre-line;
|
|
139
|
+
|
|
140
|
+
&:hover {
|
|
141
|
+
color: ${cssVar.colorLinkHover} !important;
|
|
142
|
+
}
|
|
143
|
+
`,
|
|
144
|
+
plot: css`
|
|
145
|
+
position: relative;
|
|
146
|
+
overflow: visible;
|
|
147
|
+
flex: 1;
|
|
148
|
+
min-width: 80px;
|
|
149
|
+
`,
|
|
150
|
+
plotRow: css`
|
|
151
|
+
position: relative;
|
|
152
|
+
width: 100%;
|
|
153
|
+
min-width: 0;
|
|
154
|
+
`,
|
|
155
|
+
plotRows: css`
|
|
156
|
+
position: relative;
|
|
157
|
+
z-index: 1;
|
|
158
|
+
width: 100%;
|
|
159
|
+
`,
|
|
160
|
+
provider: css`
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
|
|
163
|
+
font-size: var(--benchmark-subtitle-font-size, 12px);
|
|
164
|
+
line-height: 1.3;
|
|
165
|
+
color: ${cssVar.colorTextDescription};
|
|
166
|
+
text-overflow: ellipsis;
|
|
167
|
+
white-space: nowrap;
|
|
168
|
+
`,
|
|
169
|
+
rank: css`
|
|
170
|
+
flex-shrink: 0;
|
|
171
|
+
|
|
172
|
+
min-width: 20px;
|
|
173
|
+
margin-right: 12px;
|
|
174
|
+
|
|
175
|
+
font-family: 'Geist Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;
|
|
176
|
+
font-size: var(--benchmark-value-label-font-size, 14px);
|
|
177
|
+
font-variant-numeric: tabular-nums;
|
|
178
|
+
line-height: 1.3;
|
|
179
|
+
color: ${cssVar.colorTextQuaternary};
|
|
180
|
+
text-align: left;
|
|
181
|
+
`,
|
|
182
|
+
score: css`
|
|
183
|
+
flex-shrink: 0;
|
|
184
|
+
|
|
185
|
+
min-width: 40px;
|
|
186
|
+
|
|
187
|
+
font-family: 'Geist Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;
|
|
188
|
+
font-size: var(--benchmark-value-label-font-size, 14px);
|
|
189
|
+
font-weight: 600;
|
|
190
|
+
font-variant-numeric: tabular-nums;
|
|
191
|
+
line-height: 1.3;
|
|
192
|
+
color: ${cssVar.colorText};
|
|
193
|
+
text-align: right;
|
|
194
|
+
`,
|
|
195
|
+
scoreColumn: css`
|
|
196
|
+
flex-shrink: 0;
|
|
197
|
+
min-width: 48px;
|
|
198
|
+
padding-left: 16px;
|
|
199
|
+
`,
|
|
200
|
+
scoreError: css`
|
|
201
|
+
margin-left: 4px;
|
|
202
|
+
|
|
203
|
+
font-family: 'Geist Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;
|
|
204
|
+
font-size: calc(var(--benchmark-value-label-font-size, 14px) - 2px);
|
|
205
|
+
font-weight: 400;
|
|
206
|
+
color: ${cssVar.colorTextSecondary};
|
|
207
|
+
`,
|
|
208
|
+
scoreRow: css`
|
|
209
|
+
width: 100%;
|
|
210
|
+
`,
|
|
211
|
+
tooltipTrigger: css`
|
|
212
|
+
width: 100%;
|
|
213
|
+
min-width: 0;
|
|
214
|
+
height: 100%;
|
|
215
|
+
`,
|
|
216
|
+
xAxis: css`
|
|
217
|
+
position: relative;
|
|
218
|
+
margin-top: 4px;
|
|
219
|
+
padding-top: 0;
|
|
220
|
+
`,
|
|
221
|
+
xAxisLabel: css`
|
|
222
|
+
margin-top: 8px;
|
|
223
|
+
|
|
224
|
+
font-size: 12px;
|
|
225
|
+
font-weight: 500;
|
|
226
|
+
line-height: 16px;
|
|
227
|
+
color: ${cssVar.colorTextSecondary};
|
|
228
|
+
text-align: center;
|
|
229
|
+
`,
|
|
230
|
+
xAxisLine: css`
|
|
231
|
+
width: 100%;
|
|
232
|
+
height: 0;
|
|
233
|
+
border-top: 1px solid ${cssVar.colorBorder};
|
|
234
|
+
`,
|
|
235
|
+
xAxisTick: css`
|
|
236
|
+
position: absolute;
|
|
237
|
+
top: 6px;
|
|
238
|
+
|
|
239
|
+
font-family: 'Geist Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;
|
|
240
|
+
font-size: 12px;
|
|
241
|
+
line-height: 16px;
|
|
242
|
+
color: ${cssVar.colorTextDescription};
|
|
243
|
+
white-space: nowrap;
|
|
244
|
+
`,
|
|
245
|
+
xAxisTicks: css`
|
|
246
|
+
position: relative;
|
|
247
|
+
height: 22px;
|
|
248
|
+
`,
|
|
249
|
+
yAxisLine: css`
|
|
250
|
+
pointer-events: none;
|
|
251
|
+
|
|
252
|
+
position: absolute;
|
|
253
|
+
z-index: 2;
|
|
254
|
+
top: 0;
|
|
255
|
+
bottom: 0;
|
|
256
|
+
left: 0;
|
|
257
|
+
|
|
258
|
+
width: 0;
|
|
259
|
+
border-left: 1px solid ${cssVar.colorBorder};
|
|
260
|
+
`
|
|
261
|
+
}));
|
|
262
|
+
//#endregion
|
|
263
|
+
export { styles };
|
|
264
|
+
|
|
265
|
+
//# sourceMappingURL=styles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.mjs","names":[],"sources":["../../src/BenchmarkRankingChart/styles.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\n\nconst prefixCls = 'ant';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => ({\n axisLabelSpacer: css`\n flex-shrink: 0;\n width: 100%;\n `,\n bar: css`\n position: absolute;\n top: 50%;\n left: 0;\n transform: translateY(-50%);\n\n max-width: 100%;\n border-radius: 0;\n\n transition: all 0.25s ${cssVar.motionEaseInOut};\n `,\n barHover: css`\n &:hover {\n .${prefixCls}-benchmark-ranking-bar {\n filter: brightness(1.08);\n }\n }\n `,\n barTrack: css`\n position: relative;\n overflow: visible;\n width: 100%;\n height: 100%;\n `,\n container: css`\n align-items: stretch;\n min-width: 0;\n `,\n emphasis: css`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n errorBar: css`\n pointer-events: none;\n\n position: absolute;\n z-index: 2;\n top: 50%;\n transform: translateY(-50%);\n\n height: 0;\n border-top: 1.5px solid #fff;\n\n mix-blend-mode: difference;\n\n &::before,\n &::after {\n content: '';\n\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n\n width: 0;\n height: 10px;\n border-left: 1.5px solid #fff;\n }\n\n &::before {\n left: 0;\n }\n\n &::after {\n right: 0;\n }\n `,\n gridLine: css`\n pointer-events: none;\n\n position: absolute;\n z-index: 0;\n top: 0;\n\n width: 0;\n border-left: 1px dashed ${cssVar.colorBorderSecondary};\n `,\n icon: css`\n display: inline-flex;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n\n width: 24px;\n height: 24px;\n `,\n identity: css`\n display: flex;\n flex: 1;\n gap: 10px;\n align-items: center;\n\n min-width: 0;\n `,\n labelColumn: css`\n flex-shrink: 0;\n min-width: 0;\n padding-right: 16px;\n `,\n labelRow: css`\n min-width: 0;\n `,\n labelStack: css`\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 2px;\n justify-content: center;\n\n min-width: 0;\n `,\n name: css`\n overflow: hidden;\n\n font-size: var(--benchmark-label-font-size, 14px);\n font-weight: 600;\n line-height: 1.3;\n color: ${cssVar.colorText};\n text-overflow: ellipsis;\n white-space: pre-line;\n `,\n nameLink: css`\n overflow: hidden;\n\n font-size: var(--benchmark-label-font-size, 14px);\n font-weight: 600;\n line-height: 1.3;\n color: ${cssVar.colorText} !important;\n text-overflow: ellipsis;\n white-space: pre-line;\n\n &:hover {\n color: ${cssVar.colorLinkHover} !important;\n }\n `,\n plot: css`\n position: relative;\n overflow: visible;\n flex: 1;\n min-width: 80px;\n `,\n plotRow: css`\n position: relative;\n width: 100%;\n min-width: 0;\n `,\n plotRows: css`\n position: relative;\n z-index: 1;\n width: 100%;\n `,\n provider: css`\n overflow: hidden;\n\n font-size: var(--benchmark-subtitle-font-size, 12px);\n line-height: 1.3;\n color: ${cssVar.colorTextDescription};\n text-overflow: ellipsis;\n white-space: nowrap;\n `,\n rank: css`\n flex-shrink: 0;\n\n min-width: 20px;\n margin-right: 12px;\n\n font-family: 'Geist Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;\n font-size: var(--benchmark-value-label-font-size, 14px);\n font-variant-numeric: tabular-nums;\n line-height: 1.3;\n color: ${cssVar.colorTextQuaternary};\n text-align: left;\n `,\n score: css`\n flex-shrink: 0;\n\n min-width: 40px;\n\n font-family: 'Geist Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;\n font-size: var(--benchmark-value-label-font-size, 14px);\n font-weight: 600;\n font-variant-numeric: tabular-nums;\n line-height: 1.3;\n color: ${cssVar.colorText};\n text-align: right;\n `,\n scoreColumn: css`\n flex-shrink: 0;\n min-width: 48px;\n padding-left: 16px;\n `,\n scoreError: css`\n margin-left: 4px;\n\n font-family: 'Geist Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;\n font-size: calc(var(--benchmark-value-label-font-size, 14px) - 2px);\n font-weight: 400;\n color: ${cssVar.colorTextSecondary};\n `,\n scoreRow: css`\n width: 100%;\n `,\n tooltipTrigger: css`\n width: 100%;\n min-width: 0;\n height: 100%;\n `,\n xAxis: css`\n position: relative;\n margin-top: 4px;\n padding-top: 0;\n `,\n xAxisLabel: css`\n margin-top: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 16px;\n color: ${cssVar.colorTextSecondary};\n text-align: center;\n `,\n xAxisLine: css`\n width: 100%;\n height: 0;\n border-top: 1px solid ${cssVar.colorBorder};\n `,\n xAxisTick: css`\n position: absolute;\n top: 6px;\n\n font-family: 'Geist Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;\n font-size: 12px;\n line-height: 16px;\n color: ${cssVar.colorTextDescription};\n white-space: nowrap;\n `,\n xAxisTicks: css`\n position: relative;\n height: 22px;\n `,\n yAxisLine: css`\n pointer-events: none;\n\n position: absolute;\n z-index: 2;\n top: 0;\n bottom: 0;\n left: 0;\n\n width: 0;\n border-left: 1px solid ${cssVar.colorBorder};\n `,\n}));\n"],"mappings":";;AAEA,MAAM,YAAY;AAElB,MAAa,SAAS,oBAAoB,EAAE,KAAK,cAAc;CAC7D,iBAAiB,GAAG;;;;CAIpB,KAAK,GAAG;;;;;;;;;4BASkB,OAAO,gBAAgB;;CAEjD,UAAU,GAAG;;SAEN,UAAU;;;;;CAKjB,UAAU,GAAG;;;;;;CAMb,WAAW,GAAG;;;;CAId,UAAU,GAAG;;;;;CAKb,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCb,UAAU,GAAG;;;;;;;;8BAQe,OAAO,qBAAqB;;CAExD,MAAM,GAAG;;;;;;;;;CAST,UAAU,GAAG;;;;;;;;CAQb,aAAa,GAAG;;;;;CAKhB,UAAU,GAAG;;;CAGb,YAAY,GAAG;;;;;;;;;CASf,MAAM,GAAG;;;;;;aAME,OAAO,UAAU;;;;CAI5B,UAAU,GAAG;;;;;;aAMF,OAAO,UAAU;;;;;eAKf,OAAO,eAAe;;;CAGnC,MAAM,GAAG;;;;;;CAMT,SAAS,GAAG;;;;;CAKZ,UAAU,GAAG;;;;;CAKb,UAAU,GAAG;;;;;aAKF,OAAO,qBAAqB;;;;CAIvC,MAAM,GAAG;;;;;;;;;;aAUE,OAAO,oBAAoB;;;CAGtC,OAAO,GAAG;;;;;;;;;;aAUC,OAAO,UAAU;;;CAG5B,aAAa,GAAG;;;;;CAKhB,YAAY,GAAG;;;;;;aAMJ,OAAO,mBAAmB;;CAErC,UAAU,GAAG;;;CAGb,gBAAgB,GAAG;;;;;CAKnB,OAAO,GAAG;;;;;CAKV,YAAY,GAAG;;;;;;aAMJ,OAAO,mBAAmB;;;CAGrC,WAAW,GAAG;;;4BAGY,OAAO,YAAY;;CAE7C,WAAW,GAAG;;;;;;;aAOH,OAAO,qBAAqB;;;CAGvC,YAAY,GAAG;;;;CAIf,WAAW,GAAG;;;;;;;;;;6BAUa,OAAO,YAAY;;AAEhD,EAAE"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { BenchmarkBaseProps } from "../common/benchmark/types.mjs";
|
|
2
|
+
import "../common/benchmark/index.mjs";
|
|
3
|
+
import { ScaleType } from "./utils.mjs";
|
|
4
|
+
//#region src/BenchmarkScatterChart/index.d.ts
|
|
5
|
+
export interface BenchmarkScatterMetric {
|
|
6
|
+
/**
|
|
7
|
+
* Axis title; falls back to `label`
|
|
8
|
+
*/
|
|
9
|
+
axisLabel?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Which direction is better on this axis (drives the Pareto frontier)
|
|
12
|
+
* @default 'lower'
|
|
13
|
+
*/
|
|
14
|
+
direction?: 'lower' | 'higher';
|
|
15
|
+
formatter?: (value: number) => string;
|
|
16
|
+
/**
|
|
17
|
+
* Record field holding this metric
|
|
18
|
+
*/
|
|
19
|
+
key: string;
|
|
20
|
+
/**
|
|
21
|
+
* Label shown in the metric switcher and tooltip
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
max?: number;
|
|
25
|
+
min?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @default 'linear'
|
|
28
|
+
*/
|
|
29
|
+
scale?: ScaleType;
|
|
30
|
+
}
|
|
31
|
+
export interface BenchmarkScatterChartProps extends Omit<BenchmarkBaseProps, 'sortOrder'> {
|
|
32
|
+
/**
|
|
33
|
+
* Initially selected metric key when `metrics` is provided (uncontrolled)
|
|
34
|
+
*/
|
|
35
|
+
defaultMetric?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Pareto frontier line color
|
|
38
|
+
* @default theme.orange
|
|
39
|
+
*/
|
|
40
|
+
frontierColor?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @default 2
|
|
43
|
+
*/
|
|
44
|
+
frontierWidth?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Size of consumer-provided icons; should match the size the icon renders at.
|
|
47
|
+
* Icons are scaled down from this size in the legend.
|
|
48
|
+
* @default 20
|
|
49
|
+
*/
|
|
50
|
+
iconSize?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Font size for the point name label
|
|
53
|
+
* @default 12
|
|
54
|
+
*/
|
|
55
|
+
labelFontSize?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Size of the fallback shape marker when an item has no icon
|
|
58
|
+
* @default 12
|
|
59
|
+
*/
|
|
60
|
+
markerSize?: number;
|
|
61
|
+
maxX?: number;
|
|
62
|
+
maxY?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Selected metric key (controlled)
|
|
65
|
+
*/
|
|
66
|
+
metric?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Switchable X metrics (e.g. Cost / Speed). Overrides `xKey`, `xScale`,
|
|
69
|
+
* `xFormatter`, `xAxisLabel` and `xDirection` for the active metric.
|
|
70
|
+
*/
|
|
71
|
+
metrics?: BenchmarkScatterMetric[];
|
|
72
|
+
minX?: number;
|
|
73
|
+
minY?: number;
|
|
74
|
+
onMetricChange?: (metric: string) => void;
|
|
75
|
+
/**
|
|
76
|
+
* On hover, shade the region the point dominates (worse X and lower Y)
|
|
77
|
+
* and gray out the points inside it. When off, all other points are dimmed instead.
|
|
78
|
+
* @default true
|
|
79
|
+
*/
|
|
80
|
+
showDominatedArea?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Draw vertical error bars when records have `error`
|
|
83
|
+
* @default true
|
|
84
|
+
*/
|
|
85
|
+
showErrorBars?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Connect non-dominated points with a Pareto frontier line
|
|
88
|
+
* @default true
|
|
89
|
+
*/
|
|
90
|
+
showFrontier?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* @default true
|
|
93
|
+
*/
|
|
94
|
+
showGridLines?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Show name labels next to points (placed automatically to avoid overlap)
|
|
97
|
+
* @default true
|
|
98
|
+
*/
|
|
99
|
+
showLabels?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* @default true
|
|
102
|
+
*/
|
|
103
|
+
showLegend?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* @default true
|
|
106
|
+
*/
|
|
107
|
+
showTooltip?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Show `y · x` values under each point label
|
|
110
|
+
* @default true
|
|
111
|
+
*/
|
|
112
|
+
showValueLabel?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* @default true
|
|
115
|
+
*/
|
|
116
|
+
showXAxis?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* @default true
|
|
119
|
+
*/
|
|
120
|
+
showYAxis?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Font size for the `y · x` value line
|
|
123
|
+
* @default 11
|
|
124
|
+
*/
|
|
125
|
+
valueLabelFontSize?: number;
|
|
126
|
+
xAxisLabel?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Which direction is better on X (drives the Pareto frontier)
|
|
129
|
+
* @default 'lower'
|
|
130
|
+
*/
|
|
131
|
+
xDirection?: 'lower' | 'higher';
|
|
132
|
+
xFormatter?: (value: number) => string;
|
|
133
|
+
/**
|
|
134
|
+
* Record field used for the X axis
|
|
135
|
+
* @default 'x'
|
|
136
|
+
*/
|
|
137
|
+
xKey?: string;
|
|
138
|
+
/**
|
|
139
|
+
* X axis scale
|
|
140
|
+
* @default 'linear'
|
|
141
|
+
*/
|
|
142
|
+
xScale?: ScaleType;
|
|
143
|
+
yAxisLabel?: string;
|
|
144
|
+
}
|
|
145
|
+
declare const BenchmarkScatterChart: import("react").ForwardRefExoticComponent<BenchmarkScatterChartProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
146
|
+
//#endregion
|
|
147
|
+
export { BenchmarkScatterChart as default };
|
|
148
|
+
//# sourceMappingURL=index.d.mts.map
|