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

Method getHeaderLayoutMixins

resources/vega-lite.min.js:12950–12976  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12948 return this.child.assembleSelectionData(e);
12949 }
12950 getHeaderLayoutMixins() {
12951 const e = {};
12952 for (const t of Be)
12953 for (const n of Pf) {
12954 const i = this.component.layoutHeaders[t],
12955 r = i[n],
12956 { facetFieldDef: o } = i;
12957 if (o) {
12958 const n = zf("titleOrient", o.header, this.config, t);
12959 if (["right", "bottom"].includes(n)) {
12960 const i = Of(t, n);
12961 ((e.titleAnchor ??= {}), (e.titleAnchor[i] = "end"));
12962 }
12963 }
12964 if (r?.[0]) {
12965 const r = "row" === t ? "height" : "width",
12966 o = "header" === n ? "headerBand" : "footerBand";
12967 ("facet" === t ||
12968 this.child.component.layoutSize.get(r) ||
12969 ((e[o] ??= {}), (e[o][t] = 0.5)),
12970 i.title &&
12971 ((e.offset ??= {}),
12972 (e.offset["row" === t ? "rowTitle" : "columnTitle"] = 10)));
12973 }
12974 }
12975 return e;
12976 }
12977 assembleDefaultLayout() {
12978 const { column: e, row: t } = this.facet,
12979 n = e ? this.columnDistinctSignal() : t ? 1 : void 0;

Callers 1

assembleDefaultLayoutMethod · 0.95

Calls 3

zfFunction · 0.70
OfFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected