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

Function Go

resources/vega-lite.min.js:2207–2232  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2205 }
2206 }
2207 function Go(e) {
2208 let {
2209 channel: t,
2210 fieldDef: n,
2211 fieldDef2: i,
2212 markDef: r,
2213 config: o,
2214 scaleType: a,
2215 useVlSizeChannel: s,
2216 } = e;
2217 const l = st(t),
2218 c = En(s ? "size" : l, r, o, { vgChannel: l });
2219 if (void 0 !== c) return c;
2220 if (Zo(n)) {
2221 const { timeUnit: e, bin: t } = n;
2222 if (e && !i) return { band: Mn("timeUnitBandSize", r, o) };
2223 if (mn(t) && !kr(a)) return { band: 1 };
2224 }
2225 return eo(r.type)
2226 ? a
2227 ? kr(a)
2228 ? o[r.type]?.discreteBandSize || { band: 1 }
2229 : o[r.type]?.continuousBandSize
2230 : o[r.type]?.discreteBandSize
2231 : void 0;
2232 }
2233 function Yo(e, t, n, i) {
2234 return (
2235 !!(mn(e.bin) || (e.timeUnit && aa(e) && "temporal" === e.type)) &&

Callers 1

FuFunction · 0.70

Calls 7

EnFunction · 0.85
ZoFunction · 0.85
MnFunction · 0.85
krFunction · 0.85
stFunction · 0.70
mnFunction · 0.70
eoFunction · 0.70

Tested by

no test coverage detected