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

Method assemble

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

Source from the content-addressed store, hash-verified

9609 );
9610 }
9611 assemble() {
9612 const e = [];
9613 let t = null;
9614 const n = this.getChildIndependentFieldsWithStep(),
9615 { column: i, row: r, facet: o } = this;
9616 if (i && r && (n.x || n.y)) {
9617 t = `cross_${this.column.name}_${this.row.name}`;
9618 const i = [].concat(n.x ?? [], n.y ?? []),
9619 r = i.map(() => "distinct");
9620 e.push({
9621 name: t,
9622 source: this.data,
9623 transform: [
9624 { type: "aggregate", groupby: this.fields, fields: i, ops: r },
9625 ],
9626 });
9627 }
9628 for (const i of [Z, K])
9629 this[i] && e.push(this.assembleRowColumnHeaderData(i, t, n));
9630 if (o) {
9631 const t = this.assembleFacetHeaderData(n);
9632 t && e.push(...t);
9633 }
9634 return e;
9635 }
9636 }
9637 function Fd(e) {
9638 return (e.startsWith("'") && e.endsWith("'")) ||

Callers

nothing calls this directly

Calls 4

mapMethod · 0.45

Tested by

no test coverage detected