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

Function YR

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

Source from the content-addressed store, hash-verified

30892 );
30893 }
30894 function YR(t, e, n, r, i) {
30895 const o = UR(t, n),
30896 a = o.isVertical(),
30897 s = o.gradientThickness(),
30898 u = o.gradientLength();
30899 let l,
30900 c,
30901 f,
30902 h,
30903 d = "";
30904 a
30905 ? ((l = "y"), (f = "y2"), (c = "x"), (h = "width"), (d = "1-"))
30906 : ((l = "x"), (f = "x2"), (c = "y"), (h = "height"));
30907 const p = { opacity: $R, fill: { scale: e, field: xR } };
30908 ((p[l] = { signal: d + "datum." + vR, mult: u }),
30909 (p[c] = $R),
30910 (p[f] = { signal: d + "datum." + _R, mult: u }),
30911 (p[h] = uN(s)));
30912 const g = {
30913 enter: p,
30914 update: ot({}, p, { opacity: TR }),
30915 exit: { opacity: $R },
30916 };
30917 return (
30918 cN(
30919 g,
30920 {
30921 stroke: o("gradientStrokeColor"),
30922 strokeWidth: o("gradientStrokeWidth"),
30923 },
30924 { opacity: o("gradientOpacity") },
30925 ),
30926 WR({ type: zR, role: kN, key: xR, from: i, encode: g }, r)
30927 );
30928 }
30929 const GR = `datum.${vR}<=0?"${uR}":datum.${vR}>=1?"${lR}":"${fR}"`,
30930 VR = `datum.${vR}<=0?"${cR}":datum.${vR}>=1?"${sR}":"middle"`;
30931 function XR(t, e, n, r) {

Callers 1

FLFunction · 0.85

Calls 6

URFunction · 0.85
uNFunction · 0.85
cNFunction · 0.85
WRFunction · 0.85
otFunction · 0.70
oFunction · 0.70

Tested by

no test coverage detected