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

Function rs

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

Source from the content-addressed store, hash-verified

3261 return e;
3262 }
3263 function rs(e, t) {
3264 const { mark: n, encoding: i } = e,
3265 { x: r, y: o } = i;
3266 if (no(n) && n.orient) return n.orient;
3267 if (na(r)) {
3268 if (na(o)) {
3269 const e = Zo(r) && r.aggregate,
3270 n = Zo(o) && o.aggregate;
3271 if (e || n !== t) {
3272 if (n || e !== t) {
3273 if (e === t && n === t)
3274 throw new Error("Both x and y cannot have aggregate");
3275 return Ca(o) && !Ca(r) ? "horizontal" : "vertical";
3276 }
3277 return "horizontal";
3278 }
3279 return "vertical";
3280 }
3281 return "horizontal";
3282 }
3283 if (na(o)) return "vertical";
3284 throw new Error(`Need a valid continuous axis for ${t}s`);
3285 }
3286 const os = "boxplot",
3287 as = new Wa(os, ls);
3288 function ss(e) {

Callers 2

lsFunction · 0.70
msFunction · 0.70

Calls 4

ZoFunction · 0.85
CaFunction · 0.85
noFunction · 0.70
naFunction · 0.70

Tested by

no test coverage detected