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

Function resolveOptionsForChart

src/config/OptionResolver.ts:1001–1011  ·  view source on GitHub ↗
(userOptions: ChartGPUOptions = {})

Source from the content-addressed store, hash-verified

999 * @returns Resolved options with slider bottom-space applied if needed
1000 */
1001export function resolveOptionsForChart(userOptions: ChartGPUOptions = {}): ResolvedChartGPUOptions {
1002 const base: ResolvedChartGPUOptions = { ...resolveOptions(userOptions), tooltip: userOptions.tooltip };
1003 if (!hasSliderDataZoom(userOptions)) return base;
1004 return {
1005 ...base,
1006 grid: {
1007 ...base.grid,
1008 bottom: base.grid.bottom + DATA_ZOOM_SLIDER_RESERVE_CSS_PX,
1009 },
1010 };
1011}
1012
1013export const OptionResolver = { resolve: resolveOptions } as const;
1014

Callers 4

createChartGPUFunction · 0.90
setOptionFunction · 0.90
initChartMethod · 0.90
handleSetOptionMethod · 0.90

Calls 2

resolveOptionsFunction · 0.85
hasSliderDataZoomFunction · 0.70

Tested by

no test coverage detected