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

Method constructor

resources/vega-lite.min.js:11815–11876  ·  view source on GitHub ↗
(e, n, i, r, o, a, c)

Source from the content-addressed store, hash-verified

11813 }
11814 class Bm {
11815 constructor(e, n, i, r, o, a, c) {
11816 ((this.type = n),
11817 (this.parent = i),
11818 (this.config = o),
11819 (this.parent = i),
11820 (this.config = o),
11821 (this.view = bn(c)),
11822 (this.name = e.name ?? r),
11823 (this.title = $n(e.title)
11824 ? { text: e.title }
11825 : e.title
11826 ? bn(e.title)
11827 : void 0),
11828 (this.scaleNameMap = i ? i.scaleNameMap : new Lm()),
11829 (this.projectionNameMap = i ? i.projectionNameMap : new Lm()),
11830 (this.signalNameMap = i ? i.signalNameMap : new Lm()),
11831 (this.data = e.data),
11832 (this.description = e.description),
11833 (this.transforms = (e.transform ?? []).map((e) =>
11834 Ol(e) ? { filter: s(e.filter, rr) } : e,
11835 )),
11836 (this.layout =
11837 "layer" === n || "unit" === n
11838 ? {}
11839 : (function (e, n, i) {
11840 const r = i[n],
11841 o = {},
11842 { spacing: a, columns: s } = r;
11843 (void 0 !== a && (o.spacing = a),
11844 void 0 !== s &&
11845 ((Io(e) && !Uo(e.facet)) || Ts(e)) &&
11846 (o.columns = s),
11847 js(e) && (o.columns = 1));
11848 for (const n of qs)
11849 if (void 0 !== e[n])
11850 if ("spacing" === n) {
11851 const i = e[n];
11852 o[n] = t.isNumber(i)
11853 ? i
11854 : { row: i.row ?? a, column: i.column ?? a };
11855 } else o[n] = e[n];
11856 return o;
11857 })(e, n, o)),
11858 (this.component = {
11859 data: {
11860 sources: i ? i.component.data.sources : [],
11861 outputNodes: i ? i.component.data.outputNodes : {},
11862 outputNodeRefCounts: i ? i.component.data.outputNodeRefCounts : {},
11863 isFaceted:
11864 Io(e) || (i?.component.data.isFaceted && void 0 === e.data),
11865 },
11866 layoutSize: new oc(),
11867 layoutHeaders: { row: {}, column: {}, facet: {} },
11868 mark: null,
11869 resolve: { scale: {}, axis: {}, legend: {}, ...(a ? l(a) : {}) },
11870 selection: null,
11871 scales: null,
11872 projection: null,

Callers

nothing calls this directly

Calls 10

bnFunction · 0.85
$nFunction · 0.85
UoFunction · 0.85
OlFunction · 0.70
sFunction · 0.70
IoFunction · 0.70
TsFunction · 0.70
jsFunction · 0.70
lFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected