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

Method parseAllForSortIndex

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

Source from the content-addressed store, hash-verified

8165 (this._dependentFields = cf(this.transform.calculate)));
8166 }
8167 static parseAllForSortIndex(e, t) {
8168 return (
8169 t.forEachFieldDef((t, n) => {
8170 if (la(t) && qo(t.sort)) {
8171 const { field: i, timeUnit: r } = t,
8172 o = t.sort,
8173 a =
8174 o
8175 .map(
8176 (e, t) =>
8177 `${nr({ field: i, timeUnit: r, equal: e })} ? ${t} : `,
8178 )
8179 .join("") + o.length;
8180 e = new Df(e, { calculate: a, as: Ff(t, n, { forAs: !0 }) });
8181 }
8182 }),
8183 e
8184 );
8185 }
8186 producedFields() {
8187 return new Set([this.transform.as]);
8188 }

Callers 1

hpFunction · 0.80

Calls 6

qoFunction · 0.85
forEachFieldDefMethod · 0.80
laFunction · 0.70
nrFunction · 0.70
FfFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected