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

Method assemble

resources/vega-lite.min.js:5694–5722  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5692 return `TimeUnit ${d(this.timeUnits)}`;
5693 }
5694 assemble() {
5695 const e = [];
5696 for (const t of F(this.timeUnits)) {
5697 const { rectBandPosition: n } = t,
5698 i = Ii(t.timeUnit);
5699 if (kc(t)) {
5700 const { field: r, as: o } = t,
5701 { unit: a, utc: s, ...l } = i,
5702 c = [o, `${o}_end`];
5703 (e.push({
5704 field: M(r),
5705 type: "timeunit",
5706 ...(a ? { units: Ri(a) } : {}),
5707 ...(s ? { timezone: "utc" } : {}),
5708 ...l,
5709 as: c,
5710 }),
5711 e.push(...Cc(c, n, i)));
5712 } else if (t) {
5713 const { field: r } = t,
5714 o = r.replaceAll("\\.", "."),
5715 a = zc({ timeUnit: i, field: o }),
5716 s = Sc(o);
5717 (e.push({ type: "formula", expr: a, as: s }),
5718 e.push(...Cc([o, s], n, i)));
5719 }
5720 }
5721 return e;
5722 }
5723 }
5724 const Fc = "offsetted_rect_start",
5725 Oc = "offsetted_rect_end";

Callers 2

opFunction · 0.45
vega-lite.min.jsFile · 0.45

Calls 8

FFunction · 0.85
zcFunction · 0.85
IiFunction · 0.70
kcFunction · 0.70
MFunction · 0.70
RiFunction · 0.70
CcFunction · 0.70
ScFunction · 0.70

Tested by

no test coverage detected