Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
74
const
clamp01 = (v: number): number => clamp(v, 0, 1);
75
76
const
normalizeZero = (v: number): number => (Object.is(v, -0) ? 0 : v);
77
78
const
copyRange = (r: ZoomRange): ZoomRange => ({ start: r.start, end: r.end });
79
Callers
1
applyNextRange
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected