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

Function Ui

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

Source from the content-addressed store, hash-verified

1268 );
1269 }
1270 function Ui(e, t) {
1271 let { end: n } =
1272 arguments.length > 2 && void 0 !== arguments[2]
1273 ? arguments[2]
1274 : { end: !1 };
1275 const i = A(t),
1276 r = Ei(e) ? "utc" : "";
1277 let o;
1278 const a = {};
1279 for (const t of Ai)
1280 qi(e, t) &&
1281 ((a[t] =
1282 "quarter" === (s = t) ? `(${r}quarter(${i})-1)` : `${r}${s}(${i})`),
1283 (o = t));
1284 var s;
1285 return (
1286 n && (a[o] += "+1"),
1287 (function (e) {
1288 const t = _i(e, !1).join(", ");
1289 return e.utc ? `utc(${t})` : `datetime(${t})`;
1290 })(a)
1291 );
1292 }
1293 function Wi(e) {
1294 if (!e) return;
1295 return `timeUnitSpecifier(${Q(Ri(e))}, ${Q(Mi)})`;

Callers 1

nrFunction · 0.70

Calls 4

AFunction · 0.70
EiFunction · 0.70
qiFunction · 0.70
_iFunction · 0.70

Tested by

no test coverage detected