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

Method makeFromEncoding

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

Source from the content-addressed store, hash-verified

9269 (super(e), (this.bins = t));
9270 }
9271 static makeFromEncoding(e, t) {
9272 const n = t.reduceFieldDef((e, n, i) => {
9273 if (aa(n) && mn(n.bin)) {
9274 const { key: r, binComponent: o } = $d(n, n.bin, t);
9275 e[r] = { ...o, ...e[r], ...vd(t, n, i, t.config) };
9276 }
9277 return e;
9278 }, {});
9279 return S(n) ? null : new wd(e, n);
9280 }
9281 static makeFromTransform(e, t, n) {
9282 const { key: i, binComponent: r } = $d(t, t.bin, n);
9283 return new wd(e, { [i]: r });

Callers

nothing calls this directly

Calls 6

aaFunction · 0.85
$dFunction · 0.85
reduceFieldDefMethod · 0.80
mnFunction · 0.70
vdFunction · 0.70
SFunction · 0.70

Tested by

no test coverage detected