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

Function Ly

resources/vega.min.js:13795–13811  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

13793 );
13794 }
13795 function Ly(t) {
13796 var e = t.baseline,
13797 n = $y(t);
13798 return Math.round(
13799 "top" === e
13800 ? 0.79 * n
13801 : "middle" === e
13802 ? 0.3 * n
13803 : "bottom" === e
13804 ? -0.21 * n
13805 : "line-top" === e
13806 ? 0.29 * n + 0.5 * Ty(t)
13807 : "line-bottom" === e
13808 ? 0.29 * n - 0.5 * Ty(t)
13809 : 0,
13810 );
13811 }
13812 Ey(!0);
13813 const Uy = { left: "start", center: "middle", right: "end" },
13814 qy = new Vg();

Callers 2

jyFunction · 0.85
vega.min.jsFile · 0.85

Calls 2

$yFunction · 0.85
TyFunction · 0.85

Tested by

no test coverage detected