MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / resolveOptionsForBenchmark

Function resolveOptionsForBenchmark

examples/million-points/main.ts:50–60  ·  view source on GitHub ↗
(options: ChartGPUOptions)

Source from the content-addressed store, hash-verified

48 * - Reserves bottom space for slider UI to avoid overlap
49 */
50const 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.

Callers 1

mainFunction · 0.85

Calls 2

resolveOptionsFunction · 0.85
hasSliderDataZoomFunction · 0.70

Tested by

no test coverage detected