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

Function sp

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

Source from the content-addressed store, hash-verified

12776 return "top" === e || "left" === e || wn(e) ? "header" : "footer";
12777 }
12778 function sp(e, n) {
12779 const { facet: i, config: r, child: o, component: a } = e;
12780 if (e.channelHasField(n)) {
12781 const s = i[n],
12782 l = zf("title", null, r, n);
12783 let c = va(s, r, {
12784 allowDisabling: !0,
12785 includeDefault: void 0 === l || !!l,
12786 });
12787 o.component.layoutHeaders[n].title &&
12788 ((c = t.isArray(c) ? c.join(", ") : c),
12789 (c += ` / ${o.component.layoutHeaders[n].title}`),
12790 (o.component.layoutHeaders[n].title = null));
12791 const u = zf("labelOrient", s.header, r, n),
12792 f = null !== s.header && U(s.header?.labels, r.header.labels, !0),
12793 d = p(["bottom", "right"], u) ? "footer" : "header";
12794 a.layoutHeaders[n] = {
12795 title: null !== s.header ? c : null,
12796 facetFieldDef: s,
12797 [d]: "facet" === n ? [] : [lp(e, n, f)],
12798 };
12799 }
12800 }
12801 function lp(e, t, n) {
12802 const i = "row" === t ? "height" : "width";
12803 return {

Callers 1

parseAxesAndHeadersMethod · 0.70

Calls 6

zfFunction · 0.70
vaFunction · 0.70
UFunction · 0.70
pFunction · 0.70
lpFunction · 0.70
channelHasFieldMethod · 0.45

Tested by

no test coverage detected