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

Function hasSliderDataZoom

src/ChartGPU.ts:169–169  ·  view source on GitHub ↗
(options: ChartGPUOptions)

Source from the content-addressed store, hash-verified

167const getOHLCClose = (p: OHLCDataPoint): number => (isTupleOHLCDataPoint(p) ? p[2] : p.close);
168
169const hasSliderDataZoom = (options: ChartGPUOptions): boolean => options.dataZoom?.some((z) => z?.type === 'slider') ?? false;
170
171const clamp = (v: number, lo: number, hi: number): number => Math.min(hi, Math.max(lo, v));
172

Callers 1

syncDataZoomUiFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected