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

Function oR

resources/vega.min.js:30741–30766  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

30739 return XN(e.add($O({ extents: r })));
30740 }
30741 function oR(t, e, n) {
30742 const r = e.config.range;
30743 let i = t.range;
30744 if (i.signal) return e.signalRef(i.signal);
30745 if (_t(i)) {
30746 if (r && ut(r, i)) return oR((t = ot({}, t, { range: r[i] })), e, n);
30747 "width" === i
30748 ? (i = [0, { signal: "width" }])
30749 : "height" === i
30750 ? (i = cp(t.type)
30751 ? [0, { signal: "height" }]
30752 : [{ signal: "height" }, 0])
30753 : s("Unrecognized scale range value: " + Dt(i));
30754 } else {
30755 if (i.scheme)
30756 return (
30757 (n.scheme = k(i.scheme) ? XO(i.scheme, e) : VO(i.scheme, e)),
30758 i.extent && (n.schemeExtent = XO(i.extent, e)),
30759 void (i.count && (n.schemeCount = VO(i.count, e)))
30760 );
30761 if (i.step) return void (n.rangeStep = VO(i.step, e));
30762 if (cp(t.type) && !k(i)) return ZO(i, t, e);
30763 k(i) || s("Unsupported range type: " + Dt(i));
30764 }
30765 return i.map((t) => (k(t) ? XO : VO)(t, e));
30766 }
30767 function aR(t, e, n) {
30768 return k(t)
30769 ? t.map((t) => aR(t, e, n))

Callers 1

GOFunction · 0.85

Calls 11

DtFunction · 0.85
XOFunction · 0.85
VOFunction · 0.85
ZOFunction · 0.85
_tFunction · 0.70
utFunction · 0.70
otFunction · 0.70
cpFunction · 0.70
sFunction · 0.70
kFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected