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

Method initFacet

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

Source from the content-addressed store, hash-verified

12885 (this.facet = this.initFacet(e.facet)));
12886 }
12887 initFacet(e) {
12888 if (!Uo(e)) return { facet: this.initFacetFieldDef(e, "facet") };
12889 const t = D(e),
12890 n = {};
12891 for (const i of t) {
12892 if (![K, Z].includes(i)) {
12893 Si(li(i, "facet"));
12894 break;
12895 }
12896 const t = e[i];
12897 if (void 0 === t.field) {
12898 Si(si(t, i));
12899 break;
12900 }
12901 n[i] = this.initFacetFieldDef(t, i);
12902 }
12903 return n;
12904 }
12905 initFacetFieldDef(e, t) {
12906 const n = Fa(e, t);
12907 return (

Callers 1

constructorMethod · 0.95

Calls 6

initFacetFieldDefMethod · 0.95
UoFunction · 0.85
DFunction · 0.85
siFunction · 0.85
SiFunction · 0.70
liFunction · 0.70

Tested by

no test coverage detected