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

Function yd

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

Source from the content-addressed store, hash-verified

10559 );
10560 }
10561 function yd() {
10562 var t,
10563 e,
10564 n,
10565 r,
10566 i,
10567 o,
10568 a,
10569 s = 0,
10570 u = 0.5,
10571 l = 1,
10572 c = 1,
10573 f = Uh,
10574 h = !1;
10575 function d(t) {
10576 return isNaN((t = +t))
10577 ? a
10578 : ((t = 0.5 + ((t = +o(t)) - e) * (c * t < c * e ? r : i)),
10579 f(h ? Math.max(0, Math.min(1, t)) : t));
10580 }
10581 function p(t) {
10582 return function (e) {
10583 var n, r, i;
10584 return arguments.length
10585 ? (([n, r, i] = e), (f = Nh(t, [n, r, i])), d)
10586 : [f(0), f(0.5), f(1)];
10587 };
10588 }
10589 return (
10590 (d.domain = function (a) {
10591 return arguments.length
10592 ? (([s, u, l] = a),
10593 (t = o((s = +s))),
10594 (e = o((u = +u))),
10595 (n = o((l = +l))),
10596 (r = t === e ? 0 : 0.5 / (e - t)),
10597 (i = e === n ? 0 : 0.5 / (n - e)),
10598 (c = e < t ? -1 : 1),
10599 d)
10600 : [s, u, l];
10601 }),
10602 (d.clamp = function (t) {
10603 return arguments.length ? ((h = !!t), d) : h;
10604 }),
10605 (d.interpolator = function (t) {
10606 return arguments.length ? ((f = t), d) : f;
10607 }),
10608 (d.range = p(gh)),
10609 (d.rangeRound = p(mh)),
10610 (d.unknown = function (t) {
10611 return arguments.length ? ((a = t), d) : a;
10612 }),
10613 function (a) {
10614 return (
10615 (o = a),
10616 (t = a(s)),
10617 (e = a(u)),
10618 (n = a(l)),

Callers 2

vdFunction · 0.70
vega.min.jsFile · 0.70

Calls 3

oFunction · 0.70
pFunction · 0.70
aFunction · 0.70

Tested by

no test coverage detected