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

Function wu

resources/vega-lite.min.js:6794–6812  ·  view source on GitHub ↗
(e, t, n)

Source from the content-addressed store, hash-verified

6792 const xu = { left: "x", center: "xc", right: "x2" },
6793 $u = { top: "y", middle: "yc", bottom: "y2" };
6794 function wu(e, t, n) {
6795 let i =
6796 arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "middle";
6797 if ("radius" === e || "theta" === e) return ot(e);
6798 const r = "x" === e ? "align" : "baseline",
6799 o = En(r, t, n);
6800 let a;
6801 return (
6802 wn(o)
6803 ? (Si(
6804 (function (e) {
6805 return `The ${e} for range marks cannot be an expression`;
6806 })(r),
6807 ),
6808 (a = void 0))
6809 : (a = o),
6810 "x" === e ? xu[a || ("top" === i ? "left" : "center")] : $u[a || i]
6811 );
6812 }
6813 function ku(e, t, n) {
6814 let { defaultPos: i, defaultPos2: r, range: o } = n;
6815 return o

Callers 2

SuFunction · 0.70
FuFunction · 0.70

Calls 4

EnFunction · 0.85
otFunction · 0.70
wnFunction · 0.70
SiFunction · 0.70

Tested by

no test coverage detected