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

Function hasSliderDataZoom

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

Source from the content-addressed store, hash-verified

41const clamp = (v: number, lo: number, hi: number): number => Math.min(hi, Math.max(lo, v));
42
43const hasSliderDataZoom = (options: ChartGPUOptions): boolean => options.dataZoom?.some((z) => z?.type === 'slider') ?? false;
44
45/**
46 * Mimics ChartGPU's option resolution when using coordinator directly.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected