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

Function su

resources/vega-lite.min.js:6438–6470  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

6436 }
6437 }
6438 function su(e) {
6439 let n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
6440 const { encoding: i, markDef: r, config: o, stack: a } = e,
6441 s = i.tooltip;
6442 if (t.isArray(s)) return { tooltip: cu({ tooltip: s }, a, o, n) };
6443 {
6444 const l = n.reactiveGeom ? "datum.datum" : "datum";
6445 return ru({
6446 model: e,
6447 channelDef: s,
6448 vgChannel: "tooltip",
6449 mainRefFn: (e) => {
6450 const s = au(e, o, l);
6451 if (s) return s;
6452 if (null === e) return;
6453 let c = En("tooltip", r, o);
6454 return (
6455 !0 === c && (c = { content: "encoding" }),
6456 t.isString(c)
6457 ? { value: c }
6458 : t.isObject(c)
6459 ? wn(c)
6460 ? c
6461 : "encoding" === c.content
6462 ? cu(i, a, o, n)
6463 : { signal: l }
6464 : void 0
6465 );
6466 },
6467 invalidValueRef: void 0,
6468 });
6469 }
6470 }
6471 function lu(e, n, i) {
6472 let { reactiveGeom: r } =
6473 arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {};

Callers 2

PuFunction · 0.70
vega-lite.min.jsFile · 0.70

Calls 5

EnFunction · 0.85
cuFunction · 0.70
ruFunction · 0.70
auFunction · 0.70
wnFunction · 0.70

Tested by

no test coverage detected