MCPcopy Create free account
hub / github.com/ChartGPU/ChartGPU / normalizeDensityBinSize

Function normalizeDensityBinSize

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

Source from the content-addressed store, hash-verified

521};
522
523const normalizeDensityBinSize = (value: unknown): number | undefined => {
524 if (typeof value !== 'number' || !Number.isFinite(value)) return undefined;
525 const v = Math.floor(value);
526 return v > 0 ? Math.max(1, v) : undefined;
527};
528
529const normalizeDensityColormap = (
530 value: unknown

Callers 1

resolveOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected