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

Function Qu

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

Source from the content-addressed store, hash-verified

7619 },
7620 };
7621 function Qu(e, t, n, i, r) {
7622 const o = t.name,
7623 a = n.channel,
7624 s = Qc.defined(t),
7625 l = r.find((e) => e.name === n.signals[s ? "data" : "visual"]),
7626 c = e.getSizeSignalRef(i).signal,
7627 u = e.getScaleComponent(a),
7628 f = u && u.get("type"),
7629 d = s ? Jc(e, a) : l.name,
7630 m = o + Yu,
7631 p = `${s && u ? ("log" === f ? "zoomLog" : "symlog" === f ? "zoomSymlog" : "pow" === f ? "zoomPow" : "zoomLinear") : "zoomLinear"}(${d}, ${`${o}${Gu}.${a}`}, ${m}${s ? ("pow" === f ? `, ${u.get("exponent") ?? 1}` : "symlog" === f ? `, ${u.get("constant") ?? 1}` : "") : ""})`;
7632 l.on.push({
7633 events: { signal: m },
7634 update: s ? p : `clampRange(${p}, 0, ${c})`,
7635 });
7636 }
7637 const Ju = "_store",
7638 Ku = "_tuple",
7639 Zu = "_modify",

Callers 1

vega-lite.min.jsFile · 0.70

Calls 5

JcFunction · 0.85
findMethod · 0.80
getSizeSignalRefMethod · 0.80
getScaleComponentMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected