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

Method parseAll

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

Source from the content-addressed store, hash-verified

12268 return new Qm(null, l(this.fields), this.geojson, this.signal);
12269 }
12270 static parseAll(e, t) {
12271 if (t.component.projection && !t.component.projection.isFit) return e;
12272 let n = 0;
12273 for (const i of [
12274 [de, fe],
12275 [pe, me],
12276 ]) {
12277 const r = i.map((e) => {
12278 const n = ka(t.encoding[e]);
12279 return Zo(n)
12280 ? n.field
12281 : ta(n)
12282 ? { expr: `${n.datum}` }
12283 : sa(n)
12284 ? { expr: `${n.value}` }
12285 : void 0;
12286 });
12287 (r[0] || r[1]) && (e = new Qm(e, r, null, t.getName("geojson_" + n++)));
12288 }
12289 if (t.channelHasField(be)) {
12290 const i = t.typedFieldDef(be);
12291 i.type === fr &&
12292 (e = new Qm(e, null, i.field, t.getName("geojson_" + n++)));
12293 }
12294 return e;
12295 }
12296 constructor(e, t, n, i) {
12297 (super(e), (this.fields = t), (this.geojson = n), (this.signal = i));
12298 }

Callers 1

hpFunction · 0.45

Calls 8

ZoFunction · 0.85
getNameMethod · 0.80
typedFieldDefMethod · 0.80
kaFunction · 0.70
taFunction · 0.70
saFunction · 0.70
mapMethod · 0.45
channelHasFieldMethod · 0.45

Tested by

no test coverage detected