MCPcopy Create free account
hub / github.com/alignoth/alignoth / dd

Function dd

resources/vega.min.js:10477–10535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10475 );
10476 }
10477 function dd() {
10478 var t,
10479 e,
10480 n,
10481 r,
10482 i,
10483 o = 0,
10484 a = 1,
10485 s = Uh,
10486 u = !1;
10487 function l(e) {
10488 return null == e || isNaN((e = +e))
10489 ? i
10490 : s(
10491 0 === n
10492 ? 0.5
10493 : ((e = (r(e) - t) * n), u ? Math.max(0, Math.min(1, e)) : e),
10494 );
10495 }
10496 function c(t) {
10497 return function (e) {
10498 var n, r;
10499 return arguments.length
10500 ? (([n, r] = e), (s = t(n, r)), l)
10501 : [s(0), s(1)];
10502 };
10503 }
10504 return (
10505 (l.domain = function (i) {
10506 return arguments.length
10507 ? (([o, a] = i),
10508 (t = r((o = +o))),
10509 (e = r((a = +a))),
10510 (n = t === e ? 0 : 1 / (e - t)),
10511 l)
10512 : [o, a];
10513 }),
10514 (l.clamp = function (t) {
10515 return arguments.length ? ((u = !!t), l) : u;
10516 }),
10517 (l.interpolator = function (t) {
10518 return arguments.length ? ((s = t), l) : s;
10519 }),
10520 (l.range = c(gh)),
10521 (l.rangeRound = c(mh)),
10522 (l.unknown = function (t) {
10523 return arguments.length ? ((i = t), l) : i;
10524 }),
10525 function (i) {
10526 return (
10527 (r = i),
10528 (t = i(o)),
10529 (e = i(a)),
10530 (n = t === e ? 0 : 1 / (e - t)),
10531 l
10532 );
10533 }
10534 );

Callers 3

gdFunction · 0.70
mdFunction · 0.70
vega.min.jsFile · 0.70

Calls 3

rFunction · 0.70
cFunction · 0.70
iFunction · 0.70

Tested by

no test coverage detected