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

Function Ka

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

Source from the content-addressed store, hash-verified

3148 }, []);
3149 }
3150 function Ka(e, n, i) {
3151 let r = !(arguments.length > 3 && void 0 !== arguments[3]) || arguments[3];
3152 if ("tooltip" in i) return { tooltip: i.tooltip };
3153 return {
3154 tooltip: [
3155 ...e.map((e) => {
3156 let { fieldPrefix: t, titlePrefix: i } = e;
3157 const o = r ? ` of ${Za(n)}` : "";
3158 return {
3159 field: t + n.field,
3160 type: n.type,
3161 title: wn(i) ? { signal: `${i}"${escape(o)}"` } : i + o,
3162 };
3163 }),
3164 ...b(
3165 (function (e) {
3166 const n = [];
3167 for (const i of D(e))
3168 if (Ia(e, i)) {
3169 const r = e[i],
3170 o = t.array(r);
3171 for (const e of o)
3172 Zo(e) ? n.push(e) : Jo(e) && n.push(e.condition);
3173 }
3174 return n;
3175 })(i).map(da),
3176 d,
3177 ),
3178 ],
3179 };
3180 }
3181 function Za(e) {
3182 const { title: t, field: n } = e;
3183 return U(t, n);

Callers 2

lsFunction · 0.70
psFunction · 0.70

Calls 8

DFunction · 0.85
ZoFunction · 0.85
JoFunction · 0.85
ZaFunction · 0.70
wnFunction · 0.70
bFunction · 0.70
IaFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected