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

Function Rf

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

Source from the content-addressed store, hash-verified

8335 };
8336 }
8337 function Rf(e, t, n, i, r) {
8338 if (r) {
8339 let o = null;
8340 const { facetFieldDef: a } = i,
8341 s = e.config ? e.config : void 0;
8342 if (a && r.labels) {
8343 const { labelOrient: e } = Cf(["labelOrient"], a.header, s, t);
8344 (("row" === t && !p(["top", "bottom"], e)) ||
8345 ("column" === t && !p(["left", "right"], e))) &&
8346 (o = Mf(a, t, s));
8347 }
8348 const l = Um(e) && !Uo(e.facet),
8349 c = r.axes,
8350 u = c?.length > 0;
8351 if (o || u) {
8352 const s = "row" === t ? "height" : "width";
8353 return {
8354 name: e.getName(`${t}_${n}`),
8355 type: "group",
8356 role: `${t}-${n}`,
8357 ...(i.facetFieldDef
8358 ? { from: { data: e.getName(`${t}_domain`) }, sort: Ef(a, t) }
8359 : {}),
8360 ...(u && l ? { from: { data: e.getName(`facet_domain_${t}`) } } : {}),
8361 ...(o ? { title: o } : {}),
8362 ...(r.sizeSignal
8363 ? { encode: { update: { [s]: r.sizeSignal } } }
8364 : {}),
8365 ...(u ? { axes: c } : {}),
8366 };
8367 }
8368 }
8369 return null;
8370 }
8371 const Lf = { column: { start: 0, end: 1 }, row: { start: 1, end: 0 } };
8372 function qf(e, t) {
8373 return Lf[t][e];

Callers 1

jfFunction · 0.70

Calls 7

MfFunction · 0.85
UoFunction · 0.85
EfFunction · 0.85
getNameMethod · 0.80
CfFunction · 0.70
pFunction · 0.70
UmFunction · 0.70

Tested by

no test coverage detected