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

Method parseAll

resources/vega-lite.min.js:12330–12354  ·  view source on GitHub ↗
(e, t)

Source from the content-addressed store, hash-verified

12328 (super(e), (this.projection = t), (this.fields = n), (this.as = i));
12329 }
12330 static parseAll(e, t) {
12331 if (!t.projectionName()) return e;
12332 for (const n of [
12333 [de, fe],
12334 [pe, me],
12335 ]) {
12336 const i = n.map((e) => {
12337 const n = ka(t.encoding[e]);
12338 return Zo(n)
12339 ? n.field
12340 : ta(n)
12341 ? { expr: `${n.datum}` }
12342 : sa(n)
12343 ? { expr: `${n.value}` }
12344 : void 0;
12345 }),
12346 r = n[0] === pe ? "2" : "";
12347 (i[0] || i[1]) &&
12348 (e = new Jm(e, t.projectionName(), i, [
12349 t.getName(`x${r}`),
12350 t.getName(`y${r}`),
12351 ]));
12352 }
12353 return e;
12354 }
12355 dependentFields() {
12356 return new Set(this.fields.filter(t.isString));
12357 }

Callers

nothing calls this directly

Calls 7

ZoFunction · 0.85
projectionNameMethod · 0.80
getNameMethod · 0.80
kaFunction · 0.70
taFunction · 0.70
saFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected