Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/breck7/scroll
/ normalize
Function
normalize
external/.d3.js:14957–14961 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
14955
}
14956
14957
function
normalize(a, b) {
14958
return
(b -= (a = +a))
14959
?
function
(x) {
return
(x - a) / b; }
14960
: constants(isNaN(b) ? NaN : 0.5);
14961
}
14962
14963
function
clamper(a, b) {
14964
var
t;
Callers
2
bimap
Function · 0.85
polymap
Function · 0.85
Calls
1
constants
Function · 0.85
Tested by
no test coverage detected