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

Function Yp

resources/vega.min.js:11568–11595  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

11566 );
11567 }
11568 function Yp(t, e, n) {
11569 n = n || {};
11570 const r = Math.max(3, n.maxlen || 7),
11571 i = Hp(t, e, n.format, n.formatType);
11572 if (fp(e.type)) {
11573 const t = Rp(e).slice(1).map(i),
11574 n = t.length;
11575 return `${n} boundar${1 === n ? "y" : "ies"}: ${t.join(", ")}`;
11576 }
11577 if (cp(e.type)) {
11578 const t = e.domain(),
11579 n = t.length;
11580 return `${n} value${1 === n ? "" : "s"}: ${
11581 n > r
11582 ? t
11583 .slice(0, r - 2)
11584 .map(i)
11585 .join(", ") +
11586 ", ending with " +
11587 t.slice(-1).map(i)
11588 : t.map(i).join(", ")
11589 }`;
11590 }
11591 {
11592 const t = e.domain();
11593 return `values from ${i(t[0])} to ${i(F(t))}`;
11594 }
11595 }
11596 let Gp = 0;
11597 const Vp = "p_";
11598 function Xp(t) {

Callers 1

vega.min.jsFile · 0.85

Calls 7

HpFunction · 0.85
FFunction · 0.85
fpFunction · 0.70
RpFunction · 0.70
cpFunction · 0.70
iFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected