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

Function Sy

resources/vega.min.js:13718–13726  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

13716 return $y(t) <= 0 || !(e = Ny(t, e)) ? 0 : Sy(e, Ry(t));
13717 }
13718 function Sy(t, e) {
13719 const n = `(${e}) ${t}`;
13720 let r = Ay.get(n);
13721 return (
13722 void 0 === r &&
13723 ((km.font = e), (r = km.measureText(t).width), Ay.set(n, r)),
13724 r
13725 );
13726 }
13727 function $y(t) {
13728 return null != t.fontSize ? +t.fontSize || 0 : 11;
13729 }

Callers 2

FyFunction · 0.85
NyFunction · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected