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

Function zu

resources/vega-lite.min.js:7147–7167  ·  view source on GitHub ↗
(e, t, n, i, r, o, a)

Source from the content-addressed store, hash-verified

7145 return { value: Ws(r.view, e) - 2 };
7146 }
7147 function zu(e, t, n, i, r, o, a) {
7148 if (Ee(e)) return 0;
7149 const s = "x" === e || "y2" === e,
7150 l = s ? -t / 2 : t / 2;
7151 if (wn(n) || wn(r) || wn(i) || o) {
7152 const e = An(n),
7153 t = An(r),
7154 c = An(i),
7155 u = An(o),
7156 f = o
7157 ? `(${a} < ${u} ? ${s ? "" : "-"}0.5 * (${u} - (${a})) : ${l})`
7158 : l;
7159 return {
7160 signal:
7161 (c ? `${c} + ` : "") +
7162 (e ? `(${e} ? -1 : 1) * ` : "") +
7163 (t ? `(${t} + ${f})` : f),
7164 };
7165 }
7166 return ((r = r || 0), i + (n ? -r - l : +r + l));
7167 }
7168 function Cu(e) {
7169 let {
7170 fieldDef: t,

Callers 1

FuFunction · 0.85

Calls 3

EeFunction · 0.70
wnFunction · 0.70
AnFunction · 0.70

Tested by

no test coverage detected