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

Function sU

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

Source from the content-addressed store, hash-verified

32048 };
32049 }
32050 function sU(t, e, n, r) {
32051 const i = UR(t, e),
32052 o = t.orient,
32053 a = UL(o, -1, 1);
32054 let s, u;
32055 const l = {
32056 enter: (s = {
32057 opacity: $R,
32058 anchor: uN(i("titleAnchor", null)),
32059 align: { signal: jR },
32060 }),
32061 update: (u = ot({}, s, { opacity: TR, text: uN(t.title) })),
32062 exit: { opacity: $R },
32063 },
32064 c = { signal: `lerp(range("${t.scale}"), ${PR(0, 1, 0.5)})` };
32065 return (
32066 (u.x = qL(o, c)),
32067 (u.y = PL(o, c)),
32068 (s.angle = qL(o, $R, tU(a, 90))),
32069 (s.baseline = qL(o, jL(o, cR, sR), { value: cR })),
32070 (u.angle = s.angle),
32071 (u.baseline = s.baseline),
32072 cN(
32073 l,
32074 {
32075 fill: i("titleColor"),
32076 fillOpacity: i("titleOpacity"),
32077 font: i("titleFont"),
32078 fontSize: i("titleFontSize"),
32079 fontStyle: i("titleFontStyle"),
32080 fontWeight: i("titleFontWeight"),
32081 limit: i("titleLimit"),
32082 lineHeight: i("titleLineHeight"),
32083 },
32084 {
32085 align: i("titleAlign"),
32086 angle: i("titleAngle"),
32087 baseline: i("titleBaseline"),
32088 },
32089 ),
32090 (function (t, e, n, r) {
32091 const i = (t, e) =>
32092 null != t
32093 ? ((n.update[e] = eU(uN(t), n.update[e])), !1)
32094 : !hN(e, r),
32095 o = i(t("titleX"), "x"),
32096 a = i(t("titleY"), "y");
32097 n.enter.auto = a === o ? uN(a) : qL(e, uN(a), uN(o));
32098 })(i, o, l, n),
32099 (l.update.align = eU(l.update.align, s.align)),
32100 (l.update.angle = eU(l.update.angle, s.angle)),
32101 (l.update.baseline = eU(l.update.baseline, s.baseline)),
32102 WR({ type: RR, role: bN, style: wR, from: r, encode: l }, n)
32103 );
32104 }
32105 function uU(t, e) {
32106 const n = (function (t, e) {
32107 var n,

Callers 1

uUFunction · 0.85

Calls 14

URFunction · 0.85
ULFunction · 0.85
uNFunction · 0.85
PRFunction · 0.85
qLFunction · 0.85
PLFunction · 0.85
tUFunction · 0.85
jLFunction · 0.85
cNFunction · 0.85
eUFunction · 0.85
WRFunction · 0.85
iFunction · 0.70

Tested by

no test coverage detected