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

Method constructor

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

Source from the content-addressed store, hash-verified

14560 }
14561 class qp extends Bm {
14562 constructor(e, t, n, i, r) {
14563 super(e, "layer", t, n, r, e.resolve, e.view);
14564 const o = {
14565 ...i,
14566 ...(e.width ? { width: e.width } : {}),
14567 ...(e.height ? { height: e.height } : {}),
14568 };
14569 this.children = e.layer.map((e, t) => {
14570 if (il(e)) return new qp(e, this, this.getName(`layer_${t}`), o, r);
14571 if (Ua(e)) return new Lp(e, this, this.getName(`layer_${t}`), o, r);
14572 throw new Error(Bn(e));
14573 });
14574 }
14575 parseData() {
14576 this.component.data = hp(this);
14577 for (const e of this.children) e.parseData();

Callers

nothing calls this directly

Calls 5

BnFunction · 0.85
getNameMethod · 0.80
ilFunction · 0.70
UaFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected