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

Method assembleSelectionData

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

Source from the content-addressed store, hash-verified

14475 return [...hf(this), ...Hc(this, [])];
14476 }
14477 assembleSelectionData(e) {
14478 return (function (e, t) {
14479 const n = [],
14480 i = [],
14481 r = nf(e, { escape: !1 });
14482 for (const o of F(e.component.selection ?? {})) {
14483 const a = { name: o.name + Ju };
14484 if (
14485 (o.project.hasSelectionId &&
14486 (a.transform = [{ type: "collect", sort: { field: zs } }]),
14487 o.init)
14488 ) {
14489 const e = o.project.items.map(Bc);
14490 a.values = o.project.hasSelectionId
14491 ? o.init.map((e) => ({ unit: r, [zs]: Vc(e, !1)[0] }))
14492 : o.init.map((t) => ({ unit: r, fields: e, values: Vc(t, !1) }));
14493 }
14494 if (
14495 ([...n, ...t].filter((e) => e.name === o.name + Ju).length ||
14496 n.push(a),
14497 af(o) && t.length)
14498 ) {
14499 const n = e.lookupDataSource(e.getDataName(bc.Main)),
14500 r = t.find((e) => e.name === n),
14501 o = r.transform.find(
14502 (e) =>
14503 "filter" === e.type && e.expr.includes("vlSelectionTest"),
14504 );
14505 if (o) {
14506 r.transform = r.transform.filter((e) => e !== o);
14507 const e = { name: r.name + Tc, source: r.name, transform: [o] };
14508 i.push(e);
14509 }
14510 }
14511 }
14512 return n.concat(t, i);
14513 })(this, e);
14514 }
14515 assembleLayout() {
14516 return null;
14517 }

Callers

nothing calls this directly

Calls 8

FFunction · 0.85
VcFunction · 0.85
lookupDataSourceMethod · 0.80
getDataNameMethod · 0.80
findMethod · 0.80
nfFunction · 0.70
afFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected