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

Function Cc

resources/vega-lite.min.js:5733–5748  ·  view source on GitHub ↗
(e, t, n)

Source from the content-addressed store, hash-verified

5731 return `${o ? "utcOffset" : "timeOffset"}('${s}', ${j(n)}, ${i ? -l : l})`;
5732 }
5733 function Cc(e, t, n) {
5734 let [i, r] = e;
5735 if (void 0 !== t && 0.5 !== t) {
5736 const e = j(i),
5737 o = j(r);
5738 return [
5739 {
5740 type: "formula",
5741 expr: _c([zc({ timeUnit: n, field: i, reverse: !0 }), e], t + 0.5),
5742 as: `${i}_${Fc}`,
5743 },
5744 { type: "formula", expr: _c([e, o], t + 0.5), as: `${i}_${Oc}` },
5745 ];
5746 }
5747 return [];
5748 }
5749 function _c(e, t) {
5750 let [n, i] = e;
5751 return `${1 - t} * ${n} + ${t} * ${i}`;

Callers 1

assembleMethod · 0.70

Calls 3

zcFunction · 0.85
jFunction · 0.70
_cFunction · 0.70

Tested by

no test coverage detected