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

Method make

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

Source from the content-addressed store, hash-verified

10190 (super(e), (this.filter = t));
10191 }
10192 static make(e, t, n) {
10193 const { config: i, markDef: r } = t,
10194 { marks: o, scales: a } = n;
10195 if ("include-invalid-values" === o && "include-invalid-values" === a)
10196 return null;
10197 const s = t.reduceFieldDef((e, n, o) => {
10198 const a = Qt(o) && t.getScaleComponent(o);
10199 if (a) {
10200 const t = a.get("type"),
10201 { aggregate: s } = n,
10202 l = go({
10203 scaleChannel: o,
10204 markDef: r,
10205 config: i,
10206 scaleType: t,
10207 isCountAggregate: cn(s),
10208 });
10209 "show" !== l && "always-valid" !== l && (e[n.field] = n);
10210 }
10211 return e;
10212 }, {});
10213 return D(s).length ? new Qd(e, s) : null;
10214 }
10215 dependentFields() {
10216 return new Set(D(this.filter));
10217 }

Callers 1

hpFunction · 0.45

Calls 7

DFunction · 0.85
reduceFieldDefMethod · 0.80
getScaleComponentMethod · 0.80
QtFunction · 0.70
goFunction · 0.70
cnFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected