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

Function normalizeZero

src/interaction/createZoomState.ts:76–76  ·  view source on GitHub ↗
(v: number)

Source from the content-addressed store, hash-verified

74const clamp01 = (v: number): number => clamp(v, 0, 1);
75
76const normalizeZero = (v: number): number => (Object.is(v, -0) ? 0 : v);
77
78const copyRange = (r: ZoomRange): ZoomRange => ({ start: r.start, end: r.end });
79

Callers 1

applyNextRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected