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

Method constructor

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

Source from the content-addressed store, hash-verified

9485 }
9486 class Dd extends $c {
9487 constructor(e, n, i, r) {
9488 (super(e), (this.model = n), (this.name = i), (this.data = r));
9489 for (const e of Be) {
9490 const i = n.facet[e];
9491 if (i) {
9492 const { bin: r, sort: o } = i;
9493 this[e] = {
9494 name: n.getName(`${e}_domain`),
9495 fields: [ma(i), ...(mn(r) ? [ma(i, { binSuffix: "end" })] : [])],
9496 ...(Lo(o)
9497 ? { sortField: o }
9498 : t.isArray(o)
9499 ? { sortIndexField: Ff(i, e) }
9500 : {}),
9501 };
9502 }
9503 }
9504 this.childModel = n.child;
9505 }
9506 hash() {
9507 let e = "Facet";
9508 for (const t of Be) this[t] && (e += ` ${t.charAt(0)}:${d(this[t])}`);

Callers

nothing calls this directly

Calls 5

LoFunction · 0.85
getNameMethod · 0.80
maFunction · 0.70
mnFunction · 0.70
FfFunction · 0.70

Tested by

no test coverage detected