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

Function XR

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

Source from the content-addressed store, hash-verified

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) {
30932 const i = UR(t, e),
30933 o = i.isVertical(),
30934 a = uN(i.gradientThickness()),
30935 s = i.gradientLength();
30936 let u,
30937 l,
30938 c,
30939 f,
30940 h = i("labelOverlap"),
30941 d = "";
30942 const p = {
30943 enter: (u = { opacity: $R }),
30944 update: (l = { opacity: TR, text: { field: mR } }),
30945 exit: { opacity: $R },
30946 };
30947 return (
30948 cN(p, {
30949 fill: i("labelColor"),
30950 fillOpacity: i("labelOpacity"),
30951 font: i("labelFont"),
30952 fontSize: i("labelFontSize"),
30953 fontStyle: i("labelFontStyle"),
30954 fontWeight: i("labelFontWeight"),
30955 limit: oO(t.labelLimit, e.gradientLabelLimit),
30956 }),
30957 o
30958 ? ((u.align = { value: "left" }),
30959 (u.baseline = l.baseline = { signal: VR }),
30960 (c = "y"),
30961 (f = "x"),
30962 (d = "1-"))
30963 : ((u.align = l.align = { signal: GR }),
30964 (u.baseline = { value: "top" }),
30965 (c = "x"),
30966 (f = "y")),
30967 (u[c] = l[c] = { signal: d + "datum." + vR, mult: s }),
30968 (u[f] = l[f] = a),
30969 (a.offset = oO(t.labelOffset, e.gradientLabelOffset) || 0),
30970 (h = h
30971 ? { separation: i("labelSeparation"), method: h, order: "datum." + gR }
30972 : void 0),
30973 WR(
30974 {
30975 type: RR,
30976 role: EN,
30977 style: bR,
30978 key: xR,
30979 from: r,
30980 encode: p,
30981 overlap: h,
30982 },
30983 n,
30984 )
30985 );
30986 }
30987 function JR(t, e, n, r, i) {
30988 const o = UR(t, e),

Callers 1

FLFunction · 0.85

Calls 6

URFunction · 0.85
uNFunction · 0.85
cNFunction · 0.85
oOFunction · 0.85
WRFunction · 0.85
iFunction · 0.70

Tested by

no test coverage detected