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

Function Sa

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

Source from the content-addressed store, hash-verified

2438 return oa(e) ? e : Ko(e) ? e.condition : void 0;
2439 }
2440 function Sa(e, n, i) {
2441 let r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {};
2442 if (t.isString(e) || t.isNumber(e) || t.isBoolean(e)) {
2443 return (
2444 Si(
2445 (function (e, t, n) {
2446 return `Channel ${e} is a ${t}. Converted to {value: ${Q(n)}}.`;
2447 })(
2448 n,
2449 t.isString(e) ? "string" : t.isNumber(e) ? "number" : "boolean",
2450 e,
2451 ),
2452 ),
2453 { value: e }
2454 );
2455 }
2456 return oa(e)
2457 ? Da(e, n, i, r)
2458 : Ko(e)
2459 ? { ...e, condition: Da(e.condition, n, i, r) }
2460 : e;
2461 }
2462 function Da(e, n, i, r) {
2463 if (fa(e)) {
2464 const { format: t, formatType: o, ...a } = e;

Callers 2

XaFunction · 0.70
constructorMethod · 0.70

Calls 5

DaFunction · 0.85
SiFunction · 0.70
QFunction · 0.70
oaFunction · 0.70
KoFunction · 0.70

Tested by

no test coverage detected