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

Function text

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

Source from the content-addressed store, hash-verified

15194 : __(e, "image-rendering", null);
15195 },
15196 text(t, e, n) {
15197 const r = By(n);
15198 let i, o, a, s;
15199 (k(r)
15200 ? ((o = r.map((t) => Ny(n, t))),
15201 (i = o.join("\n")),
15202 i !== m_.text &&
15203 (iv(e, 0),
15204 (a = e.ownerDocument),
15205 (s = Ty(n)),
15206 o.forEach((t, r) => {
15207 const i = ev(a, "tspan", l_);
15208 ((i.__data__ = n),
15209 (i.textContent = t),
15210 r && (i.setAttribute("x", 0), i.setAttribute("dy", s)),
15211 e.appendChild(i));
15212 }),
15213 (m_.text = i)))
15214 : ((o = Ny(n, r)),
15215 o !== m_.text && ((e.textContent = o), (m_.text = o))),
15216 b_(e, "font-family", Oy(n)),
15217 b_(e, "font-size", $y(n) + "px"),
15218 b_(e, "font-style", n.fontStyle),
15219 b_(e, "font-variant", n.fontVariant),
15220 b_(e, "font-weight", n.fontWeight));
15221 },
15222 };
15223 function v_(t, e, n) {
15224 e !== m_[t] &&

Callers

nothing calls this directly

Calls 10

ByFunction · 0.85
NyFunction · 0.85
ivFunction · 0.85
TyFunction · 0.85
evFunction · 0.85
b_Function · 0.85
OyFunction · 0.85
$yFunction · 0.85
kFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected