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

Function normalizeSamplingThreshold

src/config/OptionResolver.ts:566–570  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

564};
565
566const normalizeSamplingThreshold = (value: unknown): number | undefined => {
567 if (typeof value !== 'number' || !Number.isFinite(value)) return undefined;
568 const t = Math.floor(value);
569 return t > 0 ? t : undefined;
570};
571
572const normalizeAxisAutoBounds = (value: unknown): AxisConfig['autoBounds'] | undefined => {
573 if (typeof value !== 'string') return undefined;

Callers 1

resolveOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected