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

Function Er

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

Source from the content-addressed store, hash-verified

1571 },
1572 jr = D(Tr);
1573 function Er(e, t) {
1574 switch (t) {
1575 case "type":
1576 case "domain":
1577 case "reverse":
1578 case "range":
1579 return !0;
1580 case "scheme":
1581 case "interpolate":
1582 return !["point", "band", "identity"].includes(e);
1583 case "bins":
1584 return !["point", "band", "identity", "ordinal"].includes(e);
1585 case "round":
1586 return Dr(e) || "band" === e || "point" === e;
1587 case "padding":
1588 case "rangeMin":
1589 case "rangeMax":
1590 return Dr(e) || ["point", "band"].includes(e);
1591 case "paddingOuter":
1592 case "align":
1593 return ["point", "band"].includes(e);
1594 case "paddingInner":
1595 return "band" === e;
1596 case "domainMax":
1597 case "domainMid":
1598 case "domainMin":
1599 case "domainRaw":
1600 case "clamp":
1601 return Dr(e);
1602 case "nice":
1603 return Dr(e) || "quantize" === e || "threshold" === e;
1604 case "exponent":
1605 return "pow" === e;
1606 case "base":
1607 return "log" === e;
1608 case "constant":
1609 return "symlog" === e;
1610 case "zero":
1611 return Sr(e) && !p(["log", "time", "utc", "threshold", "quantile"], e);
1612 }
1613 }
1614 function Mr(e, t) {
1615 switch (t) {
1616 case "interpolate":

Callers 2

SmFunction · 0.85
NmFunction · 0.85

Calls 3

DrFunction · 0.70
SrFunction · 0.70
pFunction · 0.70

Tested by

no test coverage detected