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

Function kf

resources/vega-lite.min.js:8130–8147  ·  view source on GitHub ↗
(e, t, n)

Source from the content-addressed store, hash-verified

8128 }
8129 }
8130 function kf(e, t, n) {
8131 if (void 0 === e) return;
8132 const i = "x" === n,
8133 r = i ? 0 : 90,
8134 o = i ? "bottom" : "left";
8135 if (wn(e)) {
8136 const n = $f(e);
8137 return {
8138 signal: `(${r ? `(${n} + 90)` : n} % 180 === 0) ? ${i ? null : '"center"'} :(${r} < ${n} && ${n} < ${180 + r}) === ${wn(t) ? `(${t.signal} === "${o}")` : t === o} ? "left" : "right"`,
8139 };
8140 }
8141 if ((e + r) % 180 == 0) return i ? null : "center";
8142 if (wn(t)) {
8143 const n = r < e && e < 180 + r ? "===" : "!==";
8144 return { signal: `${`${t.signal} ${n} "${o}"`} ? "left" : "right"` };
8145 }
8146 return (r < e && e < 180 + r) == (t === o) ? "left" : "right";
8147 }
8148 function Sf(e, t) {
8149 const n = "x" === t ? "x2" : "y2",
8150 i = e.fieldDef(t),

Callers 2

vega-lite.min.jsFile · 0.85
AfFunction · 0.85

Calls 2

wnFunction · 0.70
$fFunction · 0.70

Tested by

no test coverage detected