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

Function Da

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

Source from the content-addressed store, hash-verified

2460 : e;
2461 }
2462 function Da(e, n, i, r) {
2463 if (fa(e)) {
2464 const { format: t, formatType: o, ...a } = e;
2465 if (So(o) && !i.customFormatTypes) return (Si(ii(n)), Da(a, n, i, r));
2466 } else {
2467 const t = ca(e) ? "axis" : ua(e) ? "legend" : Wo(e) ? "header" : null;
2468 if (t && e[t]) {
2469 const { format: o, formatType: a, ...s } = e[t];
2470 if (So(a) && !i.customFormatTypes)
2471 return (Si(ii(n)), Da({ ...e, [t]: s }, n, i, r));
2472 }
2473 }
2474 return Zo(e)
2475 ? Fa(e, n, r)
2476 : (function (e) {
2477 let n = e.type;
2478 if (n) return e;
2479 const { datum: i } = e;
2480 return (
2481 (n = t.isNumber(i)
2482 ? "quantitative"
2483 : t.isString(i)
2484 ? "nominal"
2485 : Di(i)
2486 ? "temporal"
2487 : void 0),
2488 { ...e, type: n }
2489 );
2490 })(e);
2491 }
2492 function Fa(e, n) {
2493 let { compositeMark: i = !1 } =
2494 arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};

Callers 1

SaFunction · 0.85

Calls 10

iiFunction · 0.85
caFunction · 0.85
ZoFunction · 0.85
faFunction · 0.70
SoFunction · 0.70
SiFunction · 0.70
uaFunction · 0.70
WoFunction · 0.70
FaFunction · 0.70
DiFunction · 0.70

Tested by

no test coverage detected