MCPcopy Create free account
hub / github.com/idank/explainshell / d3_interpolateRound

Function d3_interpolateRound

explainshell/web/static/js/d3.v3.js:4986–4991  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

4984 }
4985 d3.interpolateRound = d3_interpolateRound;
4986 function d3_interpolateRound(a, b) {
4987 b -= a;
4988 return function(t) {
4989 return Math.round(a + b * t);
4990 };
4991 }
4992 function d3_uninterpolateNumber(a, b) {
4993 b = b - (a = +a) ? 1 / (b - a) : 0;
4994 return function(x) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected