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

Function kd

resources/vega-lite.min.js:9345–9368  ·  view source on GitHub ↗
(e, n, i, r)

Source from the content-addressed store, hash-verified

9343 }
9344 }
9345 function kd(e, n, i, r) {
9346 const o = qm(r) ? r.encoding[at(n)] : void 0;
9347 if (aa(i) && qm(r) && Yo(i, o, r.markDef, r.config)) {
9348 (e.add(ma(i, {})), e.add(ma(i, { suffix: "end" })));
9349 const { mark: t, markDef: o, config: a } = r,
9350 s = Ho({ fieldDef: i, markDef: o, config: a });
9351 (eo(t) &&
9352 0.5 !== s &&
9353 _t(n) &&
9354 (e.add(ma(i, { suffix: Fc })), e.add(ma(i, { suffix: Oc }))),
9355 i.bin && Na(i, n) && e.add(ma(i, { binSuffix: "range" })));
9356 } else if (Le(n)) {
9357 const t = Re(n);
9358 e.add(r.getName(t));
9359 } else e.add(ma(i));
9360 return (
9361 la(i) &&
9362 (function (e) {
9363 return t.isObject(e) && "field" in e;
9364 })(i.scale?.range) &&
9365 e.add(i.scale.range.field),
9366 e
9367 );
9368 }
9369 class Sd extends $c {
9370 clone() {
9371 return new Sd(null, new Set(this.dimensions), l(this.measures));

Callers 1

makeFromEncodingMethod · 0.85

Calls 14

aaFunction · 0.85
getNameMethod · 0.80
qmFunction · 0.70
atFunction · 0.70
YoFunction · 0.70
maFunction · 0.70
HoFunction · 0.70
eoFunction · 0.70
_tFunction · 0.70
NaFunction · 0.70
LeFunction · 0.70
ReFunction · 0.70

Tested by

no test coverage detected