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

Function JR

resources/vega.min.js:30987–31096  ·  view source on GitHub ↗
(t, e, n, r, i)

Source from the content-addressed store, hash-verified

30985 );
30986 }
30987 function JR(t, e, n, r, i) {
30988 const o = UR(t, e),
30989 a = n.entries,
30990 s = !(!a || !a.interactive),
30991 u = a ? a.name : void 0,
30992 l = o("clipHeight"),
30993 c = o("symbolOffset"),
30994 f = { data: "value" },
30995 h = `(${i}) ? datum.${yR} : datum.${CR}`,
30996 d = l ? uN(l) : { field: CR },
30997 p = `datum.${gR}`,
30998 g = `max(1, ${i})`;
30999 let m, y, v, _, x;
31000 ((d.mult = 0.5),
31001 (m = {
31002 enter: (y = {
31003 opacity: $R,
31004 x: { signal: h, mult: 0.5, offset: c },
31005 y: d,
31006 }),
31007 update: (v = { opacity: TR, x: y.x, y: y.y }),
31008 exit: { opacity: $R },
31009 }));
31010 let b = null,
31011 w = null;
31012 (t.fill || ((b = e.symbolBaseFillColor), (w = e.symbolBaseStrokeColor)),
31013 cN(
31014 m,
31015 {
31016 fill: o("symbolFillColor", b),
31017 shape: o("symbolType"),
31018 size: o("symbolSize"),
31019 stroke: o("symbolStrokeColor", w),
31020 strokeDash: o("symbolDash"),
31021 strokeDashOffset: o("symbolDashOffset"),
31022 strokeWidth: o("symbolStrokeWidth"),
31023 },
31024 { opacity: o("symbolOpacity") },
31025 ),
31026 FR.forEach((e) => {
31027 t[e] && (v[e] = y[e] = { scale: t[e], field: xR });
31028 }));
31029 const k = WR(
31030 {
31031 type: OR,
31032 role: DN,
31033 key: xR,
31034 from: f,
31035 clip: !!l || void 0,
31036 encode: m,
31037 },
31038 n.symbols,
31039 ),
31040 A = uN(c);
31041 ((A.offset = o("labelOffset")),
31042 (m = {
31043 enter: (y = { opacity: $R, x: { signal: h, offset: A }, y: d }),
31044 update: (v = { opacity: TR, text: { field: mR }, x: y.x, y: y.y }),

Callers 1

FLFunction · 0.85

Calls 7

URFunction · 0.85
uNFunction · 0.85
cNFunction · 0.85
WRFunction · 0.85
LRFunction · 0.85
fNFunction · 0.85
oFunction · 0.70

Tested by

no test coverage detected