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

Function Ye

resources/vega.min.js:1498–1650  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

1496 "Y",
1497 ];
1498 function Ye(t) {
1499 var e,
1500 n,
1501 r =
1502 void 0 === t.grouping || void 0 === t.thousands
1503 ? qe
1504 : ((e = We.call(t.grouping, Number)),
1505 (n = t.thousands + ""),
1506 function (t, r) {
1507 for (
1508 var i = t.length, o = [], a = 0, s = e[0], u = 0;
1509 i > 0 &&
1510 s > 0 &&
1511 (u + s + 1 > r && (s = Math.max(1, r - u)),
1512 o.push(t.substring((i -= s), i + s)),
1513 !((u += s + 1) > r));
1514
1515 )
1516 s = e[(a = (a + 1) % e.length)];
1517 return o.reverse().join(n);
1518 }),
1519 i = void 0 === t.currency ? "" : t.currency[0] + "",
1520 o = void 0 === t.currency ? "" : t.currency[1] + "",
1521 a = void 0 === t.decimal ? "." : t.decimal + "",
1522 s =
1523 void 0 === t.numerals
1524 ? qe
1525 : (function (t) {
1526 return function (e) {
1527 return e.replace(/[0-9]/g, function (e) {
1528 return t[+e];
1529 });
1530 };
1531 })(We.call(t.numerals, String)),
1532 u = void 0 === t.percent ? "%" : t.percent + "",
1533 l = void 0 === t.minus ? "−" : t.minus + "",
1534 c = void 0 === t.nan ? "NaN" : t.nan + "";
1535 function f(t) {
1536 var e = (t = Oe(t)).fill,
1537 n = t.align,
1538 f = t.sign,
1539 h = t.symbol,
1540 d = t.zero,
1541 p = t.width,
1542 g = t.comma,
1543 m = t.precision,
1544 y = t.trim,
1545 v = t.type;
1546 ("n" === v
1547 ? ((g = !0), (v = "g"))
1548 : Ue[v] || (void 0 === m && (m = 12), (y = !0), (v = "g")),
1549 (d || ("0" === e && "=" === n)) && ((d = !0), (e = "0"), (n = "=")));
1550 var _ =
1551 "$" === h
1552 ? i
1553 : "#" === h && /[boxX]/.test(v)
1554 ? "0" + v.toLowerCase()
1555 : "",

Callers 2

vega.min.jsFile · 0.85
CoFunction · 0.85

Calls 4

BeFunction · 0.85
fFunction · 0.70
OeFunction · 0.70
nFunction · 0.70

Tested by

no test coverage detected