Sha256: c3dee499eb74c14461296daf7a0c448a4f402ff800063400b43f70b3e60c24d6
Contents?: true
Size: 278 Bytes
Versions: 35
Compression:
Stored size: 278 Bytes
Contents
function d3_uninterpolateNumber(a, b) { b = b - (a = +a) ? 1 / (b - a) : 0; return function(x) { return (x - a) * b; }; } function d3_uninterpolateClamp(a, b) { b = b - (a = +a) ? 1 / (b - a) : 0; return function(x) { return Math.max(0, Math.min(1, (x - a) * b)); }; }
Version data entries
35 entries across 35 versions & 4 rubygems