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

Function d3_ease_clamp

explainshell/web/static/js/d3.v3.js:4898–4902  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

4896 return d3_ease_clamp(m(t.apply(null, Array.prototype.slice.call(arguments, 1))));
4897 };
4898 function d3_ease_clamp(f) {
4899 return function(t) {
4900 return t <= 0 ? 0 : t >= 1 ? 1 : f(t);
4901 };
4902 }
4903 function d3_ease_reverse(f) {
4904 return function(t) {
4905 return 1 - f(1 - t);

Callers 1

d3.v3.jsFile · 0.85

Calls 1

fFunction · 0.70

Tested by

no test coverage detected