(options: ChartGPUOptions)
| 48 | * - Reserves bottom space for slider UI to avoid overlap |
| 49 | */ |
| 50 | const resolveOptionsForBenchmark = (options: ChartGPUOptions) => { |
| 51 | const base = { ...resolveOptions(options), tooltip: options.tooltip }; |
| 52 | if (!hasSliderDataZoom(options)) return base; |
| 53 | return { |
| 54 | ...base, |
| 55 | grid: { |
| 56 | ...base.grid, |
| 57 | bottom: base.grid.bottom + DATA_ZOOM_SLIDER_RESERVE_CSS_PX, |
| 58 | }, |
| 59 | }; |
| 60 | }; |
| 61 | |
| 62 | /** |
| 63 | * Generates 1M synthetic data points with deterministic PRNG. |
no test coverage detected