pdf-factory 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/parser.cjs +1 -1
- package/dist/parser.cjs.map +1 -1
- package/dist/parser.js +89 -83
- package/dist/parser.js.map +1 -1
- package/dist/pdf-factory.cjs +1 -1
- package/dist/pdf-factory.cjs.map +1 -1
- package/dist/pdf-factory.js +170 -170
- package/dist/pdf-factory.js.map +1 -1
- package/dist/src/generators/report.d.ts.map +1 -1
- package/package.json +10 -10
package/dist/pdf-factory.js
CHANGED
|
@@ -1378,10 +1378,10 @@ function mt(e) {
|
|
|
1378
1378
|
function ht(e, t) {
|
|
1379
1379
|
if (e.isBye) return "Bye";
|
|
1380
1380
|
if (!e.participantName) return "";
|
|
1381
|
-
let n =
|
|
1381
|
+
let n = gt(e.participantName, t), r = _t(e.nationality, t), i = e.seedValue ? vt(e.seedValue, t) : "", a = e.entryStatus ? bt(e.entryStatus, t) : "", o = [];
|
|
1382
1382
|
return t.seedPosition === "before-position" && i && o.push(i), o.push(n), t.seedPosition === "after-name" && i && o.push(i), r && o.push(r), t.seedPosition === "after-country" && i && o.push(i), a && o.push(a), o.join(" ");
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1384
|
+
function U(e, t) {
|
|
1385
1385
|
if (e.isBye) return {
|
|
1386
1386
|
name: "Bye",
|
|
1387
1387
|
nationality: ""
|
|
@@ -1390,13 +1390,13 @@ function gt(e, t) {
|
|
|
1390
1390
|
name: "",
|
|
1391
1391
|
nationality: ""
|
|
1392
1392
|
};
|
|
1393
|
-
let n =
|
|
1393
|
+
let n = gt(e.participantName, t), r = e.seedValue ? vt(e.seedValue, t) : "", i = e.entryStatus ? bt(e.entryStatus, t) : "", a = [];
|
|
1394
1394
|
return t.seedPosition === "before-position" && r && a.push(r), a.push(n), t.seedPosition === "after-name" && r && a.push(r), t.seedPosition === "after-country" && r && a.push(r), i && a.push(i), {
|
|
1395
1395
|
name: a.join(" "),
|
|
1396
1396
|
nationality: e.nationality || ""
|
|
1397
1397
|
};
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function gt(e, t) {
|
|
1400
1400
|
if (t.nameFormat === "LAST First") return e.replace(",", "");
|
|
1401
1401
|
if (t.nameFormat === "F. LAST") {
|
|
1402
1402
|
let t = e.match(/^([^,]+),\s*(.+)/);
|
|
@@ -1404,7 +1404,7 @@ function _t(e, t) {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
return e;
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function _t(e, t) {
|
|
1408
1408
|
if (!e) return "";
|
|
1409
1409
|
switch (t.nationalityFormat) {
|
|
1410
1410
|
case "parens": return `(${e})`;
|
|
@@ -1412,10 +1412,10 @@ function vt(e, t) {
|
|
|
1412
1412
|
default: return e;
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function vt(e, t) {
|
|
1416
1416
|
return t.seedFormat === "parens" ? `(${e})` : `[${e}]`;
|
|
1417
1417
|
}
|
|
1418
|
-
var
|
|
1418
|
+
var yt = {
|
|
1419
1419
|
DIRECT_ACCEPTANCE: "",
|
|
1420
1420
|
WILDCARD: "WC",
|
|
1421
1421
|
QUALIFIER: "Q",
|
|
@@ -1426,9 +1426,9 @@ var bt = {
|
|
|
1426
1426
|
JUNIOR_EXEMPT: "JE",
|
|
1427
1427
|
ORGANISER_ACCEPTANCE: "OA"
|
|
1428
1428
|
};
|
|
1429
|
-
function
|
|
1429
|
+
function bt(e, t) {
|
|
1430
1430
|
if (!e) return "";
|
|
1431
|
-
let n =
|
|
1431
|
+
let n = yt[e];
|
|
1432
1432
|
if (n === void 0) return e;
|
|
1433
1433
|
if (!n) return "";
|
|
1434
1434
|
switch (t.entryFormat) {
|
|
@@ -1437,12 +1437,12 @@ function xt(e, t) {
|
|
|
1437
1437
|
default: return n;
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function W(e, t) {
|
|
1441
1441
|
return e ? t.gameScoreSeparator === "/" ? e.replace(/(\d)-(\d)/g, "$1/$2") : e : "";
|
|
1442
1442
|
}
|
|
1443
1443
|
//#endregion
|
|
1444
1444
|
//#region src/renderers/traditionalDraw.ts
|
|
1445
|
-
function
|
|
1445
|
+
function xt(e, t, n) {
|
|
1446
1446
|
let r = n || Math.log2(e), i = (t.contentHeight - 9) / e, a = i < 3.5, o = a ? .8 : 1.5, s = r, c = o * (s + 1), l = i < 2, u = a ? .18 : .3, d = Math.min(a ? 38 : 65, t.contentWidth * u), f = t.contentWidth - d - c, p = l ? 8 : 0, m = f - p, h = Math.min(65, Math.max(8, m / Math.max(1, s))), g = h + p, _ = I.SMALL;
|
|
1447
1447
|
return i < 2.5 ? _ = 5 : i < 3.5 && (_ = I.TINY), {
|
|
1448
1448
|
lineHeight: i,
|
|
@@ -1454,10 +1454,10 @@ function St(e, t, n) {
|
|
|
1454
1454
|
scoreFontSize: a ? 5 : I.TINY
|
|
1455
1455
|
};
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1458
|
-
|
|
1457
|
+
function G(e, t, n, r, i = 0, a) {
|
|
1458
|
+
St(t.matchUps) ? Ct(e, t, n, r) : Ft(e, t, n, r, i, a);
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function St(e) {
|
|
1461
1461
|
let t = /* @__PURE__ */ new Map();
|
|
1462
1462
|
for (let n of e) t.set(n.roundNumber, (t.get(n.roundNumber) || 0) + 1);
|
|
1463
1463
|
let n = [...t.keys()].sort((e, t) => e - t);
|
|
@@ -1467,19 +1467,19 @@ function Ct(e) {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
return !1;
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1471
|
-
let i = n.page.margins, a = r.contentY + 9, o = r.contentHeight - 9, s =
|
|
1472
|
-
|
|
1473
|
-
let y =
|
|
1474
|
-
|
|
1470
|
+
function Ct(e, t, n, r) {
|
|
1471
|
+
let i = n.page.margins, a = r.contentY + 9, o = r.contentHeight - 9, s = wt(t.matchUps), c = [...s.keys()].sort((e, t) => e - t), l = c.length, u = new Map(t.slots.map((e) => [e.drawPosition, e])), d = Tt(c, s), { feedConfig: f, connectorGap: p, firstRoundWidth: m, roundColumnWidth: h, fontSize: g, scoreFontSize: _ } = Et(o, s, c, l, r), v = (e) => e === 0 ? i.left : i.left + m + p + (e - 1) * (h + p);
|
|
1472
|
+
Pt(e, c, t, f, n, r, v, l, h);
|
|
1473
|
+
let y = Dt(c, l, s, d, a, o, f.lineHeight);
|
|
1474
|
+
Ot(e, c, l, s, y, d, u, f, n, v, m, h, p, _), Nt(e, t, c, l, s, y, u, v, a, o, h, g, _, n);
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function wt(e) {
|
|
1477
1477
|
let t = /* @__PURE__ */ new Map();
|
|
1478
1478
|
for (let n of e) t.has(n.roundNumber) || t.set(n.roundNumber, []), t.get(n.roundNumber).push(n);
|
|
1479
1479
|
for (let [, e] of t) e.sort((e, t) => e.roundPosition - t.roundPosition);
|
|
1480
1480
|
return t;
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1482
|
+
function Tt(e, t) {
|
|
1483
1483
|
let n = /* @__PURE__ */ new Set();
|
|
1484
1484
|
for (let r = 1; r < e.length; r++) {
|
|
1485
1485
|
let i = t.get(e[r - 1])?.length || 0;
|
|
@@ -1487,7 +1487,7 @@ function Et(e, t) {
|
|
|
1487
1487
|
}
|
|
1488
1488
|
return n;
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function Et(e, t, n, r, i) {
|
|
1491
1491
|
let a = 1.5, o = e / ((t.get(n[0])?.length || 1) * 2), s = o < 3.5, c = Math.min(s ? 50 : 60, i.contentWidth * .25), l = i.contentWidth - c - a * (r + 1), u = Math.max(8, l / Math.max(1, r)), d = I.SMALL;
|
|
1492
1492
|
o < 2.5 ? d = 5 : o < 3.5 && (d = I.TINY);
|
|
1493
1493
|
let f = s ? 5 : I.TINY;
|
|
@@ -1508,7 +1508,7 @@ function Dt(e, t, n, r, i) {
|
|
|
1508
1508
|
scoreFontSize: f
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function Dt(e, t, n, r, i, a, o) {
|
|
1512
1512
|
let s = /* @__PURE__ */ new Map();
|
|
1513
1513
|
for (let c = 0; c < t; c++) {
|
|
1514
1514
|
let t = e[c], l = n.get(t)?.length || 0;
|
|
@@ -1552,18 +1552,18 @@ function Ot(e, t, n, r, i, a, o) {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
return s;
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function Ot(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
1556
1556
|
for (let m = 0; m < n; m++) {
|
|
1557
1557
|
let h = t[m], g = r.get(h) || [], _ = i.get(h) || [], v = l(m), y = m === 0 ? u : d, b = a.has(h), x = v + y, S = m < n - 1 && a.has(t[m + 1]);
|
|
1558
1558
|
for (let i = 0; i < g.length; i++) {
|
|
1559
1559
|
let a = g[i], h = _[i];
|
|
1560
1560
|
if (h) {
|
|
1561
|
-
if (e.setDrawColor(40), e.setLineWidth(.25), m === 0 ?
|
|
1561
|
+
if (e.setDrawColor(40), e.setLineWidth(.25), m === 0 ? kt(e, a, h, o, c, s, v, u, x, f, S) : b ? At(e, a, h, o, r, t, m, c, s, v, d, x, f, S) : jt(e, a, h, o, c, s, v, d, x, f, S), m < n - 1) {
|
|
1562
1562
|
let t = l(m + 1);
|
|
1563
1563
|
S ? e.line(x, h.midY, t, h.midY) : e.line(x + f, h.midY, t, h.midY);
|
|
1564
1564
|
}
|
|
1565
1565
|
if (a.score) {
|
|
1566
|
-
let t =
|
|
1566
|
+
let t = W(a.score, c);
|
|
1567
1567
|
L(e, p, F.NORMAL), e.setTextColor(60, 60, 160);
|
|
1568
1568
|
let n = h.midY + p * .12;
|
|
1569
1569
|
e.text(t, x - 1, n, { align: "right" }), e.setTextColor(0);
|
|
@@ -1572,34 +1572,34 @@ function kt(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
1575
|
-
function
|
|
1576
|
-
t.drawPositions[0] &&
|
|
1575
|
+
function kt(e, t, n, r, i, a, o, s, c, l, u) {
|
|
1576
|
+
t.drawPositions[0] && Vt(e, r.get(t.drawPositions[0]), t.drawPositions[0], i, a, o, n.topY, s), t.drawPositions[1] && Vt(e, r.get(t.drawPositions[1]), t.drawPositions[1], i, a, o, n.bottomY, s), Mt(e, n, c, l, u);
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1578
|
+
function At(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
1579
1579
|
let m = a[o - 1], h = i.get(m) || [], g = /* @__PURE__ */ new Set();
|
|
1580
1580
|
for (let e of h) e.winningSide && g.add(e.drawPositions[e.winningSide - 1]);
|
|
1581
1581
|
let _ = t.drawPositions.find((e) => e && g.has(e)), v = t.drawPositions.find((e) => e && e !== _);
|
|
1582
|
-
if (e.line(l, n.midY, l, n.bottomY), v ?
|
|
1582
|
+
if (e.line(l, n.midY, l, n.bottomY), v ? Vt(e, r.get(v), v, s, c, l, n.topY, u) : e.line(l, n.topY, l + u, n.topY), e.line(l, n.bottomY, l + u, n.bottomY), _) {
|
|
1583
1583
|
let t = r.get(_);
|
|
1584
|
-
t?.participantName &&
|
|
1584
|
+
t?.participantName && Ht(e, t, s, c, l, n.bottomY);
|
|
1585
1585
|
}
|
|
1586
|
-
|
|
1586
|
+
Mt(e, n, d, f, p);
|
|
1587
1587
|
}
|
|
1588
|
-
function
|
|
1588
|
+
function jt(e, t, n, r, i, a, o, s, c, l, u) {
|
|
1589
1589
|
if (e.line(o, n.topY, o + s, n.topY), e.line(o, n.bottomY, o + s, n.bottomY), t.drawPositions[0]) {
|
|
1590
1590
|
let s = r.get(t.drawPositions[0]);
|
|
1591
|
-
s?.participantName &&
|
|
1591
|
+
s?.participantName && Ht(e, s, i, a, o, n.topY);
|
|
1592
1592
|
}
|
|
1593
1593
|
if (t.drawPositions[1]) {
|
|
1594
1594
|
let s = r.get(t.drawPositions[1]);
|
|
1595
|
-
s?.participantName &&
|
|
1595
|
+
s?.participantName && Ht(e, s, i, a, o, n.bottomY);
|
|
1596
1596
|
}
|
|
1597
|
-
|
|
1597
|
+
Mt(e, n, c, l, u);
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function Mt(e, t, n, r, i) {
|
|
1600
1600
|
i ? e.line(n, t.topY, n, t.bottomY) : (e.line(n + r, t.topY, n + r, t.bottomY), e.line(n, t.topY, n + r, t.topY), e.line(n, t.bottomY, n + r, t.bottomY));
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1602
|
+
function Nt(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
1603
1603
|
if (t.noWinnerColumn) return;
|
|
1604
1604
|
let m = s(r), h = n.at(-1), g = (a.get(h) || [])[0]?.midY || c + l / 2;
|
|
1605
1605
|
e.setDrawColor(40), e.setLineWidth(.25), e.line(m, g, m + Math.min(65, u), g);
|
|
@@ -1608,15 +1608,15 @@ function Pt(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
|
1608
1608
|
let t = _.drawPositions[_.winningSide - 1], n = o.get(t);
|
|
1609
1609
|
if (n) {
|
|
1610
1610
|
L(e, d + 1, F.BOLD);
|
|
1611
|
-
let { name: t } =
|
|
1611
|
+
let { name: t } = U(n, p);
|
|
1612
1612
|
if (e.text(t, m + 1, g - .5), _.score) {
|
|
1613
|
-
let t =
|
|
1613
|
+
let t = W(_.score, p);
|
|
1614
1614
|
L(e, f, F.NORMAL), e.setTextColor(60, 60, 160), e.text(t, m + 1, g + f * .4), e.setTextColor(0);
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function Pt(e, t, n, r, i, a, o, s, c) {
|
|
1620
1620
|
L(e, r.fontSize <= I.TINY ? 5.5 : I.SMALL, F.BOLD), e.setTextColor(40);
|
|
1621
1621
|
for (let l = 0; l < s; l++) {
|
|
1622
1622
|
let s = t[l], u = H(s, n.totalRounds), d = n.roundLabelMap?.[s] || i.roundLabels[u] || u, f = o(l), p = l === 0 ? r.firstRoundWidth : c;
|
|
@@ -1625,45 +1625,45 @@ function Ft(e, t, n, r, i, a, o, s, c) {
|
|
|
1625
1625
|
let l = o(s);
|
|
1626
1626
|
e.text("Winner", l + c / 2, a.contentY + 2, { align: "center" }), e.setDrawColor(160), e.line(l + 2, a.contentY + 3.5, l + c - 2, a.contentY + 3.5), e.setTextColor(0);
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1629
|
-
let o = a || t.drawSize, s = t.totalRounds || Math.ceil(Math.log2(o)), c = Math.log2(o), l = Number.isInteger(c) ? Math.min(c, s) : s, u =
|
|
1630
|
-
|
|
1631
|
-
for (let r = 0; r < l; r++)
|
|
1632
|
-
t.noWinnerColumn ||
|
|
1628
|
+
function Ft(e, t, n, r, i = 0, a) {
|
|
1629
|
+
let o = a || t.drawSize, s = t.totalRounds || Math.ceil(Math.log2(o)), c = Math.log2(o), l = Number.isInteger(c) ? Math.min(c, s) : s, u = xt(o, r, l), d = n.page.margins.left, f = r.contentY + 9;
|
|
1630
|
+
zt(e, l, t.totalRounds, u, n, d, r.contentY + 2, t.roundLabelMap, t.noWinnerColumn);
|
|
1631
|
+
for (let r = 0; r < l; r++) It(e, t, n, u, o, r, l, d, f, i);
|
|
1632
|
+
t.noWinnerColumn || Rt(e, t, n, u, l, d, f);
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1635
|
-
let u = i / 2 ** (a + 1), d = r.lineHeight * 2 ** a, f =
|
|
1634
|
+
function It(e, t, n, r, i, a, o, s, c, l) {
|
|
1635
|
+
let u = i / 2 ** (a + 1), d = r.lineHeight * 2 ** a, f = K(a, r, s), p = (2 ** a - 1) * r.lineHeight / 2, m = 2 ** (a + 1) * r.lineHeight;
|
|
1636
1636
|
for (let i = 0; i < u; i++) {
|
|
1637
1637
|
let u = c + p + i * m, h = u + d, g = (u + h) / 2;
|
|
1638
1638
|
if (a === 0) {
|
|
1639
1639
|
let a = l + i * 2 + 1, o = l + i * 2 + 2;
|
|
1640
|
-
|
|
1640
|
+
Vt(e, Wt(t.slots, a), a, n, r, f, u), Vt(e, Wt(t.slots, o), o, n, r, f, h);
|
|
1641
1641
|
} else {
|
|
1642
|
-
let t =
|
|
1642
|
+
let t = Bt(a, r);
|
|
1643
1643
|
e.setDrawColor(40), e.setLineWidth(.25), e.line(f, u, f + t, u), e.line(f, h, f + t, h);
|
|
1644
1644
|
}
|
|
1645
|
-
let _ = a === o - 1, v = f +
|
|
1645
|
+
let _ = a === o - 1, v = f + Bt(a, r);
|
|
1646
1646
|
if (e.setDrawColor(40), e.setLineWidth(.25), e.line(v + r.connectorGap, u, v + r.connectorGap, h), e.line(v, u, v + r.connectorGap, u), e.line(v, h, v + r.connectorGap, h), !_ || !t.noWinnerColumn) {
|
|
1647
|
-
let t =
|
|
1647
|
+
let t = K(a + 1, r, s);
|
|
1648
1648
|
e.line(v + r.connectorGap, g, t, g);
|
|
1649
1649
|
}
|
|
1650
|
-
let y =
|
|
1650
|
+
let y = Gt(t.matchUps, a + 1, i + 1);
|
|
1651
1651
|
if (_ && t.noWinnerColumn) {
|
|
1652
|
-
let i =
|
|
1653
|
-
i && (e.setDrawColor(40), e.setLineWidth(.25), e.line(v + r.connectorGap, g, v + r.connectorGap + r.roundColumnWidth, g),
|
|
1652
|
+
let i = Kt(y, t.slots);
|
|
1653
|
+
i && (e.setDrawColor(40), e.setLineWidth(.25), e.line(v + r.connectorGap, g, v + r.connectorGap + r.roundColumnWidth, g), Ht(e, i, n, r, v + r.connectorGap, g), y?.score && Lt(e, y, n, r, d, v + r.connectorGap, a, g));
|
|
1654
1654
|
} else if (!_) {
|
|
1655
|
-
let i =
|
|
1655
|
+
let i = Kt(y, t.slots);
|
|
1656
1656
|
if (i) {
|
|
1657
|
-
let t =
|
|
1658
|
-
|
|
1657
|
+
let t = K(a + 1, r, s);
|
|
1658
|
+
Ht(e, i, n, r, t, g), y?.score && Lt(e, y, n, r, d, t, a, g);
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1664
|
-
let c =
|
|
1663
|
+
function Lt(e, t, n, r, i, a, o, s) {
|
|
1664
|
+
let c = W(t.score, n);
|
|
1665
1665
|
if (L(e, r.scoreFontSize, F.NORMAL), e.setTextColor(60, 60, 160), i * 2 < r.scoreFontSize * 1.2) {
|
|
1666
|
-
let t = a +
|
|
1666
|
+
let t = a + Bt(o + 1, r) - 1;
|
|
1667
1667
|
e.text(c, t, s - .5, { align: "right" });
|
|
1668
1668
|
} else {
|
|
1669
1669
|
let t = r.scoreFontSize * .4;
|
|
@@ -1671,106 +1671,106 @@ function Rt(e, t, n, r, i, a, o, s) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
e.setTextColor(0);
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1675
|
-
let s =
|
|
1674
|
+
function Rt(e, t, n, r, i, a, o) {
|
|
1675
|
+
let s = K(i, r, a), c = (2 ** (i - 1) - 1) * r.lineHeight / 2, l = r.lineHeight * 2 ** (i - 1), u = o + c + l / 2;
|
|
1676
1676
|
e.setDrawColor(40), e.setLineWidth(.25), e.line(s, u, s + r.roundColumnWidth, u);
|
|
1677
|
-
let d =
|
|
1677
|
+
let d = Gt(t.matchUps, i, 1);
|
|
1678
1678
|
if (d?.winningSide) {
|
|
1679
|
-
let i = d.drawPositions[d.winningSide - 1], a =
|
|
1679
|
+
let i = d.drawPositions[d.winningSide - 1], a = Wt(t.slots, i);
|
|
1680
1680
|
if (a) {
|
|
1681
1681
|
L(e, r.fontSize + 1, F.BOLD);
|
|
1682
|
-
let { name: t } =
|
|
1682
|
+
let { name: t } = U(a, n);
|
|
1683
1683
|
if (e.text(t, s + 1, u - .5), d.score) {
|
|
1684
|
-
let t =
|
|
1684
|
+
let t = W(d.score, n);
|
|
1685
1685
|
L(e, r.scoreFontSize, F.NORMAL), e.setTextColor(60, 60, 160), e.text(t, s + 1, u + r.scoreFontSize * .4), e.setTextColor(0);
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1690
|
+
function zt(e, t, n, r, i, a, o, s, c) {
|
|
1691
1691
|
L(e, r.fontSize <= I.TINY ? 5.5 : I.SMALL, F.BOLD), e.setTextColor(40);
|
|
1692
1692
|
for (let c = 0; c < t; c++) {
|
|
1693
|
-
let l = n - t + c + 1, u = H(l, n), d = s?.[l] || i.roundLabels[u] || u, f =
|
|
1693
|
+
let l = n - t + c + 1, u = H(l, n), d = s?.[l] || i.roundLabels[u] || u, f = K(c, r, a), p = Bt(c, r), m = f + p / 2;
|
|
1694
1694
|
e.text(d, m, o, { align: "center" }), e.setDrawColor(160), e.setLineWidth(.15), e.line(f + 2, o + 1.5, f + p - 2, o + 1.5);
|
|
1695
1695
|
}
|
|
1696
1696
|
if (!c) {
|
|
1697
|
-
let n =
|
|
1697
|
+
let n = K(t, r, a);
|
|
1698
1698
|
e.text("Winner", n + r.roundColumnWidth / 2, o, { align: "center" }), e.setDrawColor(160), e.setLineWidth(.15), e.line(n + 2, o + 1.5, n + r.roundColumnWidth - 2, o + 1.5);
|
|
1699
1699
|
}
|
|
1700
1700
|
e.setTextColor(0);
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1702
|
+
function Bt(e, t) {
|
|
1703
1703
|
return e === 0 ? t.firstRoundWidth : e === 1 ? t.secondRoundWidth : t.roundColumnWidth;
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1705
|
+
function K(e, t, n) {
|
|
1706
1706
|
if (e === 0) return n;
|
|
1707
1707
|
let r = n + t.firstRoundWidth + t.connectorGap;
|
|
1708
|
-
for (let n = 1; n < e; n++) r +=
|
|
1708
|
+
for (let n = 1; n < e; n++) r += Bt(n, t) + t.connectorGap;
|
|
1709
1709
|
return r;
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Vt(e, t, n, r, i, a, o, s) {
|
|
1712
1712
|
let c = i.fontSize <= 5 ? 4 : 5, l = i.fontSize <= 5 ? 5 : 6, u = s || i.firstRoundWidth, d = i.lineHeight < 2 ? .15 : .3;
|
|
1713
1713
|
L(e, i.scoreFontSize, F.NORMAL), e.setTextColor(120), e.text(`${n}`, a, o - d, { align: "left" }), e.setTextColor(0), t?.nationality && (L(e, i.scoreFontSize, F.NORMAL), e.setTextColor(100), e.text(t.nationality, a + c + l - 1, o - d, { align: "right" }), e.setTextColor(0));
|
|
1714
1714
|
let f = a + c + l, p = a + u;
|
|
1715
1715
|
if (e.setDrawColor(40), e.setLineWidth(.25), e.line(f, o, p, o), !t) return;
|
|
1716
|
-
let { name: m } =
|
|
1716
|
+
let { name: m } = U(t, r);
|
|
1717
1717
|
if (!m) return;
|
|
1718
1718
|
L(e, i.fontSize, t.isBye ? F.ITALIC : F.NORMAL), t.isBye && e.setTextColor(150);
|
|
1719
1719
|
let h = p - f - 2, g = m;
|
|
1720
|
-
e.getTextWidth(m) > h && (g =
|
|
1720
|
+
e.getTextWidth(m) > h && (g = Ut(t.participantName));
|
|
1721
1721
|
let _ = i.lineHeight < 2 ? .2 : .5;
|
|
1722
1722
|
e.text(g, f + 1, o - _), t.isBye && e.setTextColor(0);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1725
|
-
let o =
|
|
1724
|
+
function Ht(e, t, n, r, i, a) {
|
|
1725
|
+
let o = Ut(t.participantName), s = "";
|
|
1726
1726
|
t.seedValue && (s = n.seedFormat === "parens" ? `(${t.seedValue})` : `[${t.seedValue}]`);
|
|
1727
1727
|
let c = s ? `${o} ${s}` : o;
|
|
1728
1728
|
L(e, r.fontSize, F.BOLD), e.text(c, i + 1, a - .5);
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1730
|
+
function Ut(e) {
|
|
1731
1731
|
let t = e.match(/^([^,]+),\s*(.+)/);
|
|
1732
1732
|
if (t) return `${t[2][0]}. ${t[1]}`;
|
|
1733
1733
|
let n = e.match(/^(\S+)\s+(.+)/);
|
|
1734
1734
|
return n ? `${n[1][0]}. ${n[2]}` : e;
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1736
|
+
function Wt(e, t) {
|
|
1737
1737
|
return e.find((e) => e.drawPosition === t);
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function Gt(e, t, n) {
|
|
1740
1740
|
return e.find((e) => e.roundNumber === t && e.roundPosition === n);
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function Kt(e, t) {
|
|
1743
1743
|
if (e) {
|
|
1744
1744
|
if (e.winningSide) {
|
|
1745
1745
|
let n = e.drawPositions[e.winningSide - 1];
|
|
1746
|
-
return
|
|
1746
|
+
return Wt(t, n);
|
|
1747
1747
|
}
|
|
1748
1748
|
if (e.matchUpStatus === "BYE") for (let n of e.drawPositions) {
|
|
1749
|
-
let e =
|
|
1749
|
+
let e = Wt(t, n);
|
|
1750
1750
|
if (e && !e.isBye && e.participantName) return e;
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
1754
1754
|
//#endregion
|
|
1755
1755
|
//#region src/renderers/roundRobinDraw.ts
|
|
1756
|
-
var
|
|
1756
|
+
var qt = [
|
|
1757
1757
|
200,
|
|
1758
1758
|
200,
|
|
1759
1759
|
200
|
|
1760
|
-
],
|
|
1760
|
+
], Jt = [
|
|
1761
1761
|
20,
|
|
1762
1762
|
80,
|
|
1763
1763
|
20
|
|
1764
|
-
],
|
|
1764
|
+
], Yt = [
|
|
1765
1765
|
160,
|
|
1766
1766
|
40,
|
|
1767
1767
|
40
|
|
1768
|
-
],
|
|
1768
|
+
], Xt = [
|
|
1769
1769
|
50,
|
|
1770
1770
|
50,
|
|
1771
1771
|
50
|
|
1772
1772
|
];
|
|
1773
|
-
function
|
|
1773
|
+
function Zt(e, n, r, i, a) {
|
|
1774
1774
|
let o = r.page.margins, s = n.participants.length;
|
|
1775
1775
|
L(e, I.HEADING, F.BOLD), e.text(n.groupName, o.left, a), a += 5;
|
|
1776
1776
|
let c = [
|
|
@@ -1780,7 +1780,7 @@ function Qt(e, n, r, i, a) {
|
|
|
1780
1780
|
];
|
|
1781
1781
|
for (let e = 0; e < s; e++) c.push(`${e + 1}`);
|
|
1782
1782
|
c.push("W", "L");
|
|
1783
|
-
let l =
|
|
1783
|
+
let l = Qt(n, r), u = n.participants.map((e, t) => {
|
|
1784
1784
|
let n = [
|
|
1785
1785
|
{
|
|
1786
1786
|
content: `${t + 1}`,
|
|
@@ -1800,12 +1800,12 @@ function Qt(e, n, r, i, a) {
|
|
|
1800
1800
|
];
|
|
1801
1801
|
for (let e = 0; e < s; e++) if (t === e) n.push({
|
|
1802
1802
|
content: "",
|
|
1803
|
-
styles: { fillColor:
|
|
1803
|
+
styles: { fillColor: qt }
|
|
1804
1804
|
});
|
|
1805
1805
|
else {
|
|
1806
1806
|
let r = l[t]?.[e];
|
|
1807
1807
|
if (r) {
|
|
1808
|
-
let e = r.isWin ?
|
|
1808
|
+
let e = r.isWin ? Jt : Yt;
|
|
1809
1809
|
n.push({
|
|
1810
1810
|
content: r.score,
|
|
1811
1811
|
styles: {
|
|
@@ -1845,7 +1845,7 @@ function Qt(e, n, r, i, a) {
|
|
|
1845
1845
|
]
|
|
1846
1846
|
},
|
|
1847
1847
|
headStyles: {
|
|
1848
|
-
fillColor:
|
|
1848
|
+
fillColor: Xt,
|
|
1849
1849
|
textColor: [
|
|
1850
1850
|
255,
|
|
1851
1851
|
255,
|
|
@@ -1866,24 +1866,24 @@ function Qt(e, n, r, i, a) {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
}), e.lastAutoTable?.finalY || a + 40;
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function Qt(e, t) {
|
|
1870
1870
|
let n = e.participants.length, r = Array.from({ length: n }, () => Array(n).fill(null)), i = /* @__PURE__ */ new Map();
|
|
1871
1871
|
e.participants.forEach((e, t) => i.set(e.groupPosition, t));
|
|
1872
1872
|
for (let n of e.results) {
|
|
1873
1873
|
let e = i.get(n.rowPosition), a = i.get(n.colPosition);
|
|
1874
1874
|
if (e === void 0 || a === void 0) continue;
|
|
1875
|
-
let o =
|
|
1875
|
+
let o = W(n.score, t), s = n.winningSide === 1;
|
|
1876
1876
|
r[e][a] = {
|
|
1877
1877
|
score: o,
|
|
1878
1878
|
isWin: s
|
|
1879
1879
|
}, r[a][e] = {
|
|
1880
|
-
score:
|
|
1880
|
+
score: $t(o),
|
|
1881
1881
|
isWin: !s
|
|
1882
1882
|
};
|
|
1883
1883
|
}
|
|
1884
1884
|
return r;
|
|
1885
1885
|
}
|
|
1886
|
-
function
|
|
1886
|
+
function $t(e) {
|
|
1887
1887
|
return e.split(/\s+/).map((e) => {
|
|
1888
1888
|
let t = e.match(/^(\d+)([/-])(\d+)(\(\d+\))?$/);
|
|
1889
1889
|
return t ? `${t[3]}${t[2]}${t[1]}${t[4] || ""}` : e;
|
|
@@ -1891,11 +1891,11 @@ function en(e) {
|
|
|
1891
1891
|
}
|
|
1892
1892
|
//#endregion
|
|
1893
1893
|
//#region src/renderers/luckyDraw.ts
|
|
1894
|
-
var
|
|
1895
|
-
function
|
|
1894
|
+
var en = 1, tn = 16, nn = 1;
|
|
1895
|
+
function rn(e, t, n, r) {
|
|
1896
1896
|
let i = n.page.margins, a = /* @__PURE__ */ new Map();
|
|
1897
1897
|
for (let e of t.matchUps) a.has(e.roundNumber) || a.set(e.roundNumber, []), a.get(e.roundNumber).push(e);
|
|
1898
|
-
let o = new Map(t.slots.map((e) => [e.drawPosition, e])), s = [...a.keys()].sort((e, t) => e - t), c = s.length, l = r.contentY + 7, u = r.contentHeight - 7, d = Math.min(55, (r.contentWidth - (c - 1) * 6) / c), f = a.get(s[0])?.length || 1, p = Math.min(
|
|
1898
|
+
let o = new Map(t.slots.map((e) => [e.drawPosition, e])), s = [...a.keys()].sort((e, t) => e - t), c = s.length, l = r.contentY + 7, u = r.contentHeight - 7, d = Math.min(55, (r.contentWidth - (c - 1) * 6) / c), f = a.get(s[0])?.length || 1, p = Math.min(tn, (u - (f + 1) * nn) / f);
|
|
1899
1899
|
L(e, I.SMALL, F.BOLD), e.setTextColor(30, 60, 120);
|
|
1900
1900
|
for (let a = 0; a < c; a++) {
|
|
1901
1901
|
let o = s[a], c = n.roundLabels[H(o, t.totalRounds)] || H(o, t.totalRounds), l = i.left + a * (d + 6);
|
|
@@ -1906,11 +1906,11 @@ function an(e, t, n, r) {
|
|
|
1906
1906
|
let r = s[t], c = a.get(r) || [], f = c.length, m = i.left + t * (d + 6), h = f * p, g = f > 1 ? (u - h) / (f + 1) : (u - p) / 2;
|
|
1907
1907
|
for (let t = 0; t < f; t++) {
|
|
1908
1908
|
let r = l + g + t * (p + g);
|
|
1909
|
-
|
|
1909
|
+
an(e, c[t], o, n, m, r, d, p);
|
|
1910
1910
|
}
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1913
|
+
function an(e, t, n, r, i, a, o, s) {
|
|
1914
1914
|
let c = s < 10 ? 5 : I.TINY;
|
|
1915
1915
|
e.setDrawColor(100), e.setLineWidth(.3), e.rect(i, a, o, s);
|
|
1916
1916
|
let l = a + s / 2;
|
|
@@ -1918,26 +1918,26 @@ function on(e, t, n, r, i, a, o, s) {
|
|
|
1918
1918
|
let u = t.drawPositions[0] ? n.get(t.drawPositions[0]) : void 0;
|
|
1919
1919
|
if (u) {
|
|
1920
1920
|
let n = ht(u, r);
|
|
1921
|
-
L(e, c, t.winningSide === 1 ? F.BOLD : F.NORMAL), e.text(n, i +
|
|
1921
|
+
L(e, c, t.winningSide === 1 ? F.BOLD : F.NORMAL), e.text(n, i + en, l - c * .15, { maxWidth: o - 2 * en });
|
|
1922
1922
|
}
|
|
1923
1923
|
let d = t.drawPositions[1] ? n.get(t.drawPositions[1]) : void 0;
|
|
1924
1924
|
if (d) {
|
|
1925
1925
|
let n = ht(d, r);
|
|
1926
|
-
L(e, c, t.winningSide === 2 ? F.BOLD : F.NORMAL), e.text(n, i +
|
|
1926
|
+
L(e, c, t.winningSide === 2 ? F.BOLD : F.NORMAL), e.text(n, i + en, l + c * .55, { maxWidth: o - 2 * en });
|
|
1927
1927
|
}
|
|
1928
1928
|
if (t.score) {
|
|
1929
|
-
let n =
|
|
1930
|
-
L(e, c, F.NORMAL), e.setTextColor(60, 60, 160), e.text(n, i + o -
|
|
1929
|
+
let n = W(t.score, r);
|
|
1930
|
+
L(e, c, F.NORMAL), e.setTextColor(60, 60, 160), e.text(n, i + o - en, a + c * .5, { align: "right" }), e.setTextColor(0);
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
1933
1933
|
//#endregion
|
|
1934
1934
|
//#region src/renderers/drawSplitter.ts
|
|
1935
|
-
var
|
|
1935
|
+
var on = {
|
|
1936
1936
|
maxPositionsPerPage: 64,
|
|
1937
1937
|
includeOverlapRounds: !0,
|
|
1938
1938
|
summaryPage: !0
|
|
1939
1939
|
};
|
|
1940
|
-
function
|
|
1940
|
+
function sn(e, t = on) {
|
|
1941
1941
|
let { drawSize: n, slots: r, matchUps: i, totalRounds: a } = e;
|
|
1942
1942
|
if (n <= t.maxPositionsPerPage) return [{
|
|
1943
1943
|
label: "Full Draw",
|
|
@@ -1948,13 +1948,13 @@ function cn(e, t = sn) {
|
|
|
1948
1948
|
segmentRounds: a
|
|
1949
1949
|
}];
|
|
1950
1950
|
let o = t.maxPositionsPerPage, s = Math.ceil(n / o), c = Math.log2(o), l = [];
|
|
1951
|
-
for (let e = 0; e < s; e++) l.push(
|
|
1952
|
-
return t.summaryPage && s > 1 && l.push(
|
|
1951
|
+
for (let e = 0; e < s; e++) l.push(cn(e, o, s, c, n, r, i));
|
|
1952
|
+
return t.summaryPage && s > 1 && l.push(ln(e)), l;
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function cn(e, t, n, r, i, a, o) {
|
|
1955
1955
|
let s = e * t + 1, c = Math.min((e + 1) * t, i), l = `Section ${e + 1}`;
|
|
1956
1956
|
n === 2 && (l = e === 0 ? "Top Half" : "Bottom Half");
|
|
1957
|
-
let u = a.filter((e) => e.drawPosition >= s && e.drawPosition <= c), d =
|
|
1957
|
+
let u = a.filter((e) => e.drawPosition >= s && e.drawPosition <= c), d = un(o.filter((e) => e.roundNumber > r ? !1 : e.drawPositions.every((e) => e >= s && e <= c)));
|
|
1958
1958
|
return {
|
|
1959
1959
|
label: l,
|
|
1960
1960
|
startPosition: s,
|
|
@@ -1965,8 +1965,8 @@ function ln(e, t, n, r, i, a, o) {
|
|
|
1965
1965
|
noWinnerColumn: !0
|
|
1966
1966
|
};
|
|
1967
1967
|
}
|
|
1968
|
-
function
|
|
1969
|
-
let { slots: t, matchUps: n, totalRounds: r, roundLabelMap: i } = e, a = Math.max(1, r - 5 + 1), o = r - a + 1, s = a - 1, c = n.filter((e) => e.roundNumber === a).sort((e, t) => e.roundPosition - t.roundPosition), l = c.length * 2, u =
|
|
1968
|
+
function ln(e) {
|
|
1969
|
+
let { slots: t, matchUps: n, totalRounds: r, roundLabelMap: i } = e, a = Math.max(1, r - 5 + 1), o = r - a + 1, s = a - 1, c = n.filter((e) => e.roundNumber === a).sort((e, t) => e.roundPosition - t.roundPosition), l = c.length * 2, u = dn(c), d = un(n.filter((e) => e.roundNumber >= a).map((e) => ({
|
|
1970
1970
|
...e,
|
|
1971
1971
|
roundNumber: e.roundNumber - s,
|
|
1972
1972
|
roundPosition: e.roundNumber === a ? c.findIndex((t) => t.roundPosition === e.roundPosition) + 1 : e.roundPosition,
|
|
@@ -1989,7 +1989,7 @@ function un(e) {
|
|
|
1989
1989
|
roundLabelMap: i ? Object.fromEntries(Object.entries(i).filter(([e]) => Number(e) >= a).map(([e, t]) => [Number(e) - s, t])) : void 0
|
|
1990
1990
|
};
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1992
|
+
function un(e) {
|
|
1993
1993
|
let t = /* @__PURE__ */ new Map();
|
|
1994
1994
|
for (let n of e) t.has(n.roundNumber) || t.set(n.roundNumber, []), t.get(n.roundNumber).push(n);
|
|
1995
1995
|
let n = [];
|
|
@@ -2001,14 +2001,14 @@ function dn(e) {
|
|
|
2001
2001
|
});
|
|
2002
2002
|
return n;
|
|
2003
2003
|
}
|
|
2004
|
-
function
|
|
2004
|
+
function dn(e) {
|
|
2005
2005
|
let t = /* @__PURE__ */ new Map(), n = 1;
|
|
2006
2006
|
for (let r of e) for (let e of r.drawPositions) e && !t.has(e) && t.set(e, n++);
|
|
2007
2007
|
return t;
|
|
2008
2008
|
}
|
|
2009
2009
|
//#endregion
|
|
2010
2010
|
//#region src/renderers/compassDraw.ts
|
|
2011
|
-
var
|
|
2011
|
+
var fn = [
|
|
2012
2012
|
"E",
|
|
2013
2013
|
"W",
|
|
2014
2014
|
"N",
|
|
@@ -2018,11 +2018,11 @@ var pn = [
|
|
|
2018
2018
|
"SE",
|
|
2019
2019
|
"SW"
|
|
2020
2020
|
];
|
|
2021
|
-
function
|
|
2022
|
-
let i = n.page.margins, a = [...t.structures].sort((e, t) =>
|
|
2021
|
+
function pn(e, t, n, r) {
|
|
2022
|
+
let i = n.page.margins, a = [...t.structures].sort((e, t) => fn.indexOf(e.abbreviation) - fn.indexOf(t.abbreviation)), o = r.contentY + 3;
|
|
2023
2023
|
for (let s of a) {
|
|
2024
2024
|
if (s.drawSize === 0) continue;
|
|
2025
|
-
let a =
|
|
2025
|
+
let a = mn(s, r);
|
|
2026
2026
|
o + a > r.contentY + r.contentHeight && (e.addPage(), o = r.contentY);
|
|
2027
2027
|
let c = s.abbreviation === "E";
|
|
2028
2028
|
L(e, c ? I.HEADING : I.BODY, F.BOLD), c || e.setTextColor(30, 60, 120);
|
|
@@ -2033,14 +2033,14 @@ function mn(e, t, n, r) {
|
|
|
2033
2033
|
contentY: o,
|
|
2034
2034
|
contentHeight: a - 6
|
|
2035
2035
|
};
|
|
2036
|
-
|
|
2036
|
+
G(e, hn(s, t.drawName), n, u), o += a + 3;
|
|
2037
2037
|
}
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2039
|
+
function mn(e, t) {
|
|
2040
2040
|
let n = t.contentHeight * .7, r = Math.max(5, Math.min(8, n / e.drawSize));
|
|
2041
2041
|
return e.drawSize * r + 10;
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function hn(e, t) {
|
|
2044
2044
|
return {
|
|
2045
2045
|
drawName: `${t} - ${e.name}`,
|
|
2046
2046
|
drawSize: e.drawSize,
|
|
@@ -2053,7 +2053,7 @@ function gn(e, t) {
|
|
|
2053
2053
|
}
|
|
2054
2054
|
//#endregion
|
|
2055
2055
|
//#region src/renderers/consolationDraw.ts
|
|
2056
|
-
function
|
|
2056
|
+
function gn(e) {
|
|
2057
2057
|
let { drawDefinition: t, participants: n = [] } = e;
|
|
2058
2058
|
if (!t?.structures) return [];
|
|
2059
2059
|
let r = /* @__PURE__ */ new Map();
|
|
@@ -2102,7 +2102,7 @@ function _n(e) {
|
|
|
2102
2102
|
};
|
|
2103
2103
|
});
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2105
|
+
function _n(e, t, n, r) {
|
|
2106
2106
|
let i = n.page.margins, a = r.contentY, o = {
|
|
2107
2107
|
MAIN: 0,
|
|
2108
2108
|
CONSOLATION: 1,
|
|
@@ -2116,14 +2116,14 @@ function vn(e, t, n, r) {
|
|
|
2116
2116
|
contentY: a,
|
|
2117
2117
|
contentHeight: Math.min(s, r.contentY + r.contentHeight - a)
|
|
2118
2118
|
};
|
|
2119
|
-
|
|
2119
|
+
G(e, t.drawData, n, c), a += s + 4;
|
|
2120
2120
|
}
|
|
2121
2121
|
}
|
|
2122
2122
|
//#endregion
|
|
2123
2123
|
//#region src/renderers/doubleEliminationDraw.ts
|
|
2124
|
-
function
|
|
2125
|
-
let i = n.page.margins, a = r.contentHeight, o = a * .44, s = a * .44, c = r.contentWidth - 30 - 8, l =
|
|
2126
|
-
L(e, I.BODY, F.BOLD), e.setTextColor(30, 80, 30), e.text("Winner's Bracket", i.left, u), e.setTextColor(0), u += 3,
|
|
2124
|
+
function vn(e, t, n, r) {
|
|
2125
|
+
let i = n.page.margins, a = r.contentHeight, o = a * .44, s = a * .44, c = r.contentWidth - 30 - 8, l = yn(t.winnersBracket), u = r.contentY + 3;
|
|
2126
|
+
L(e, I.BODY, F.BOLD), e.setTextColor(30, 80, 30), e.text("Winner's Bracket", i.left, u), e.setTextColor(0), u += 3, G(e, l, n, {
|
|
2127
2127
|
...r,
|
|
2128
2128
|
contentY: u,
|
|
2129
2129
|
contentHeight: o - 6,
|
|
@@ -2135,7 +2135,7 @@ function yn(e, t, n, r) {
|
|
|
2135
2135
|
contentHeight: s - 6,
|
|
2136
2136
|
contentWidth: c
|
|
2137
2137
|
};
|
|
2138
|
-
|
|
2138
|
+
G(e, t.losersBracket, n, d);
|
|
2139
2139
|
let f = i.left + c + 8, p = r.contentY + a / 2;
|
|
2140
2140
|
if (L(e, I.SMALL, F.BOLD), e.text("Decider", f + 28 / 2, p - 14 - 4, { align: "center" }), e.setDrawColor(60), e.setLineWidth(.5), e.rect(f, p - 14 - 1, 28, 14), e.setLineWidth(.2), e.line(f, p - 14 / 2 - 1, f + 28, p - 14 / 2 - 1), t.deciderMatch?.matchUps?.length) {
|
|
2141
2141
|
let n = t.deciderMatch.matchUps[0], r = new Map(t.deciderMatch.slots.map((e) => [e.drawPosition, e]));
|
|
@@ -2156,7 +2156,7 @@ function yn(e, t, n, r) {
|
|
|
2156
2156
|
n.score && (L(e, I.TINY, F.NORMAL), e.setTextColor(60, 60, 160), e.text(n.score, f + 28 - 1, p - 14 + 2, { align: "right" }), e.setTextColor(0));
|
|
2157
2157
|
}
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2159
|
+
function yn(e) {
|
|
2160
2160
|
let t = { ...e.roundLabelMap || {} };
|
|
2161
2161
|
for (let e of Object.keys(t)) t[Number(e)] === "F-Q" && (t[Number(e)] = "SF");
|
|
2162
2162
|
return {
|
|
@@ -2166,7 +2166,7 @@ function bn(e) {
|
|
|
2166
2166
|
}
|
|
2167
2167
|
//#endregion
|
|
2168
2168
|
//#region src/core/extractCompassData.ts
|
|
2169
|
-
var
|
|
2169
|
+
var bn = {
|
|
2170
2170
|
East: {
|
|
2171
2171
|
name: "East",
|
|
2172
2172
|
abbreviation: "E"
|
|
@@ -2200,7 +2200,7 @@ var xn = {
|
|
|
2200
2200
|
abbreviation: "SW"
|
|
2201
2201
|
}
|
|
2202
2202
|
};
|
|
2203
|
-
function
|
|
2203
|
+
function xn(e) {
|
|
2204
2204
|
let { drawDefinition: t, participants: n = [] } = e;
|
|
2205
2205
|
if (!t) return {
|
|
2206
2206
|
drawName: "",
|
|
@@ -2210,7 +2210,7 @@ function Sn(e) {
|
|
|
2210
2210
|
n.forEach((e) => r.set(e.participantId, e));
|
|
2211
2211
|
let i = [];
|
|
2212
2212
|
for (let e of t.structures || []) {
|
|
2213
|
-
let t = e.structureName || "", n =
|
|
2213
|
+
let t = e.structureName || "", n = bn[t] || {
|
|
2214
2214
|
name: t,
|
|
2215
2215
|
abbreviation: t
|
|
2216
2216
|
}, a = e.positionAssignments || [], o = e.seedAssignments || [], s = a.length || 0, c = a.map((e) => {
|
|
@@ -2248,7 +2248,7 @@ function Sn(e) {
|
|
|
2248
2248
|
}
|
|
2249
2249
|
//#endregion
|
|
2250
2250
|
//#region src/layout/headers.ts
|
|
2251
|
-
function
|
|
2251
|
+
function q(e, t, n = 15) {
|
|
2252
2252
|
let r = e.internal.pageSize.getWidth(), i = n;
|
|
2253
2253
|
L(e, I.TITLE, F.BOLD), e.text(t.tournamentName, 15, i), i += 7, t.subtitle && (L(e, I.SUBTITLE, F.BOLD), e.text(t.subtitle, 15, i), i += 6), L(e, I.BODY, F.NORMAL);
|
|
2254
2254
|
let a = [];
|
|
@@ -2260,13 +2260,13 @@ function K(e, t, n = 15) {
|
|
|
2260
2260
|
e.text(t, r - 15, n + i * 4, { align: "right" });
|
|
2261
2261
|
}), i += 2, e.setDrawColor(0), e.setLineWidth(.5), e.line(15, i, r - 15, i), i += 5, i;
|
|
2262
2262
|
}
|
|
2263
|
-
function
|
|
2263
|
+
function J(e, t, n) {
|
|
2264
2264
|
let r = e.internal.pageSize.getWidth(), i = e.internal.pageSize.getHeight();
|
|
2265
2265
|
L(e, I.SMALL, F.ITALIC), e.setTextColor(120), e.text(t, 15, i - 10), n !== void 0 && e.text(`Page ${n}`, r - 15, i - 10, { align: "right" }), e.setTextColor(0);
|
|
2266
2266
|
}
|
|
2267
2267
|
//#endregion
|
|
2268
2268
|
//#region src/layout/tables.ts
|
|
2269
|
-
var
|
|
2269
|
+
var Sn = {
|
|
2270
2270
|
compact: {
|
|
2271
2271
|
styles: {
|
|
2272
2272
|
fontSize: 7,
|
|
@@ -2483,12 +2483,12 @@ function On(t, n = {}) {
|
|
|
2483
2483
|
}), s = 15;
|
|
2484
2484
|
if (r) {
|
|
2485
2485
|
let e = `${t.drawName} - ${t.drawType.replace(/_/g, " ")} (${t.drawSize})`;
|
|
2486
|
-
s =
|
|
2486
|
+
s = q(o, {
|
|
2487
2487
|
...r,
|
|
2488
2488
|
subtitle: e
|
|
2489
2489
|
});
|
|
2490
2490
|
}
|
|
2491
|
-
return s = t.drawSize <= 64 && t.drawSize > 0 ? kn(o, t, s, a) : An(o, t, s), i && t.seedAssignments.length > 0 && jn(o, t, s + 8),
|
|
2491
|
+
return s = t.drawSize <= 64 && t.drawSize > 0 ? kn(o, t, s, a) : An(o, t, s), i && t.seedAssignments.length > 0 && jn(o, t, s + 8), J(o, `Generated ${(/* @__PURE__ */ new Date()).toLocaleDateString()}`), o;
|
|
2492
2492
|
}
|
|
2493
2493
|
function kn(e, t, n, r) {
|
|
2494
2494
|
let i = e.internal.pageSize.getWidth(), a = e.internal.pageSize.getHeight(), o = i - 30, s = a - n - 30, c = t.totalRounds, l = Math.min(90, (o - c * 10) / c), u = Math.min(14, s / t.drawSize), d = {
|
|
@@ -2554,7 +2554,7 @@ function An(e, n, r) {
|
|
|
2554
2554
|
entry: e.entryStatus || ""
|
|
2555
2555
|
}));
|
|
2556
2556
|
return t(e, {
|
|
2557
|
-
...
|
|
2557
|
+
...Sn.compact,
|
|
2558
2558
|
startY: r,
|
|
2559
2559
|
columns: i,
|
|
2560
2560
|
body: a,
|
|
@@ -2600,7 +2600,7 @@ function jn(e, n, r) {
|
|
|
2600
2600
|
nat: e.nationality
|
|
2601
2601
|
}));
|
|
2602
2602
|
return t(e, {
|
|
2603
|
-
...
|
|
2603
|
+
...Sn.compact,
|
|
2604
2604
|
startY: r,
|
|
2605
2605
|
columns: i,
|
|
2606
2606
|
body: a,
|
|
@@ -2628,7 +2628,7 @@ function Mn(n, r = {}) {
|
|
|
2628
2628
|
}), c = 15;
|
|
2629
2629
|
if (i) {
|
|
2630
2630
|
let e = n.scheduledDate ? `Order of Play - ${n.scheduledDate}` : "Order of Play";
|
|
2631
|
-
c =
|
|
2631
|
+
c = q(s, {
|
|
2632
2632
|
...i,
|
|
2633
2633
|
subtitle: e
|
|
2634
2634
|
});
|
|
@@ -2654,13 +2654,13 @@ function Mn(n, r = {}) {
|
|
|
2654
2654
|
}), d.push(t);
|
|
2655
2655
|
}
|
|
2656
2656
|
t(s, {
|
|
2657
|
-
...
|
|
2657
|
+
...Sn.schedule,
|
|
2658
2658
|
startY: c,
|
|
2659
2659
|
columns: n,
|
|
2660
2660
|
body: d,
|
|
2661
2661
|
tableWidth: "auto",
|
|
2662
2662
|
didDrawPage: (e) => {
|
|
2663
|
-
|
|
2663
|
+
J(s, i?.tournamentName || "", e.pageNumber);
|
|
2664
2664
|
}
|
|
2665
2665
|
}), c = s.lastAutoTable?.finalY + 6 || c + 20;
|
|
2666
2666
|
}
|
|
@@ -2685,7 +2685,7 @@ function Fn(n, r = {}) {
|
|
|
2685
2685
|
orientation: "portrait",
|
|
2686
2686
|
format: "a4"
|
|
2687
2687
|
}), c = 15;
|
|
2688
|
-
i && (c =
|
|
2688
|
+
i && (c = q(s, {
|
|
2689
2689
|
...i,
|
|
2690
2690
|
subtitle: i.subtitle || "Player List"
|
|
2691
2691
|
}));
|
|
@@ -2726,7 +2726,7 @@ function Fn(n, r = {}) {
|
|
|
2726
2726
|
events: e.events.join(", ")
|
|
2727
2727
|
}));
|
|
2728
2728
|
return t(s, {
|
|
2729
|
-
...
|
|
2729
|
+
...Sn.playerList,
|
|
2730
2730
|
startY: c,
|
|
2731
2731
|
columns: l,
|
|
2732
2732
|
body: u,
|
|
@@ -2758,7 +2758,7 @@ function Fn(n, r = {}) {
|
|
|
2758
2758
|
events: { cellWidth: "auto" }
|
|
2759
2759
|
},
|
|
2760
2760
|
didDrawPage: (e) => {
|
|
2761
|
-
|
|
2761
|
+
J(s, `Generated ${(/* @__PURE__ */ new Date()).toLocaleDateString()}`, e.pageNumber);
|
|
2762
2762
|
}
|
|
2763
2763
|
}), s;
|
|
2764
2764
|
}
|
|
@@ -2821,7 +2821,7 @@ function Rn(n, r = {}) {
|
|
|
2821
2821
|
orientation: "portrait",
|
|
2822
2822
|
format: "a4"
|
|
2823
2823
|
}), l = 15;
|
|
2824
|
-
if (i && (l =
|
|
2824
|
+
if (i && (l = q(c, {
|
|
2825
2825
|
...i,
|
|
2826
2826
|
subtitle: i.subtitle || "Player Sign-In Sheet"
|
|
2827
2827
|
})), a || o) {
|
|
@@ -3193,10 +3193,10 @@ function rr(n, r, i = {}) {
|
|
|
3193
3193
|
orientation: i.orientation || "portrait",
|
|
3194
3194
|
format: "a4"
|
|
3195
3195
|
}), o = 15;
|
|
3196
|
-
i.header ? o =
|
|
3196
|
+
if (i.header ? o = q(a, {
|
|
3197
3197
|
...i.header,
|
|
3198
3198
|
subtitle: i.header.subtitle || i.title
|
|
3199
|
-
}) : i.title && (L(a, I.SUBTITLE, F.BOLD), a.text(i.title, 15, o), o += 8);
|
|
3199
|
+
}) : i.title && (L(a, I.SUBTITLE, F.BOLD), a.text(i.title, 15, o), o += 8), n.length === 0) return L(a, I.BODY, F.ITALIC), a.text("No columns defined", 15, o), J(a, `Generated ${(/* @__PURE__ */ new Date()).toLocaleDateString()}`, 1), a;
|
|
3200
3200
|
let s = n.map((e) => ({
|
|
3201
3201
|
header: e.title,
|
|
3202
3202
|
dataKey: e.key
|
|
@@ -3213,13 +3213,13 @@ function rr(n, r, i = {}) {
|
|
|
3213
3213
|
cellWidth: e.width
|
|
3214
3214
|
});
|
|
3215
3215
|
return t(a, {
|
|
3216
|
-
...
|
|
3216
|
+
...Sn.report,
|
|
3217
3217
|
startY: o,
|
|
3218
3218
|
columns: s,
|
|
3219
3219
|
body: c,
|
|
3220
3220
|
columnStyles: l,
|
|
3221
3221
|
didDrawPage: (e) => {
|
|
3222
|
-
|
|
3222
|
+
J(a, `Generated ${(/* @__PURE__ */ new Date()).toLocaleDateString()}`, e.pageNumber);
|
|
3223
3223
|
}
|
|
3224
3224
|
}), a;
|
|
3225
3225
|
}
|
|
@@ -3547,7 +3547,7 @@ function yr(t, n = {}) {
|
|
|
3547
3547
|
n && (s = n(o, t, s));
|
|
3548
3548
|
}
|
|
3549
3549
|
let c = o.getNumberOfPages();
|
|
3550
|
-
for (let e = 1; e <= c; e++) o.setPage(e),
|
|
3550
|
+
for (let e = 1; e <= c; e++) o.setPage(e), J(o, "Generated " + (/* @__PURE__ */ new Date()).toLocaleDateString(), e);
|
|
3551
3551
|
return o;
|
|
3552
3552
|
}
|
|
3553
3553
|
//#endregion
|
|
@@ -3591,11 +3591,11 @@ function br(e, t, n, r) {
|
|
|
3591
3591
|
if (e.setDrawColor(40), e.setLineWidth(.25), e.line(f + 2, r, f + u - 2, r), j.winningSide) {
|
|
3592
3592
|
let i = j.drawPositions[j.winningSide - 1], a = t.slots.find((e) => e.drawPosition === i);
|
|
3593
3593
|
if (a) {
|
|
3594
|
-
let { name: t } =
|
|
3594
|
+
let { name: t } = U(a, n);
|
|
3595
3595
|
L(e, b + 1, F.BOLD), e.text(t, f + u / 2, r - 1, { align: "center" });
|
|
3596
3596
|
}
|
|
3597
3597
|
}
|
|
3598
|
-
j.score && (L(e, x, F.NORMAL), e.setTextColor(60, 60, 160), e.text(
|
|
3598
|
+
j.score && (L(e, x, F.NORMAL), e.setTextColor(60, 60, 160), e.text(W(j.score, n), f + u / 2, r + x * .4, { align: "center" }), e.setTextColor(0));
|
|
3599
3599
|
}
|
|
3600
3600
|
}
|
|
3601
3601
|
function xr(e, t, n, r, i, a, o, s, c) {
|
|
@@ -3619,7 +3619,7 @@ function xr(e, t, n, r, i, a, o, s, c) {
|
|
|
3619
3619
|
e.getTextWidth(t) > i.roundColumnWidth - 2 && (t = Dr(t)), e.text(t, y + 1, _ - .5);
|
|
3620
3620
|
}
|
|
3621
3621
|
}
|
|
3622
|
-
b?.score && t < r - 1 && (L(e, i.scoreFontSize, F.NORMAL), e.setTextColor(60, 60, 160), e.text(
|
|
3622
|
+
b?.score && t < r - 1 && (L(e, i.scoreFontSize, F.NORMAL), e.setTextColor(60, 60, 160), e.text(W(b.score, a), y + 1, _ - .5 + i.scoreFontSize * .4), e.setTextColor(0));
|
|
3623
3623
|
}
|
|
3624
3624
|
}
|
|
3625
3625
|
}
|
|
@@ -3648,7 +3648,7 @@ function Sr(e, t, n, r, i, a, o, s, c) {
|
|
|
3648
3648
|
}
|
|
3649
3649
|
if (b?.score && t < r - 1) {
|
|
3650
3650
|
let t = y;
|
|
3651
|
-
L(e, i.scoreFontSize, F.NORMAL), e.setTextColor(60, 60, 160), e.text(
|
|
3651
|
+
L(e, i.scoreFontSize, F.NORMAL), e.setTextColor(60, 60, 160), e.text(W(b.score, a), t + i.roundColumnWidth - 1, _ - .5 + i.scoreFontSize * .4, { align: "right" }), e.setTextColor(0);
|
|
3652
3652
|
}
|
|
3653
3653
|
}
|
|
3654
3654
|
}
|
|
@@ -3719,7 +3719,7 @@ function Mr(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
|
3719
3719
|
let t = _ + o;
|
|
3720
3720
|
e.line(t + s, p, t + s, v), e.line(t, p, t + s, p), e.line(t, v, t + s, v), e.line(t + s, y, _ + o + s + o + s > 0 ? a + (i + 1) * (o + s) : t + s + 5, y);
|
|
3721
3721
|
}
|
|
3722
|
-
l.score && (L(e, d, F.NORMAL), e.setTextColor(60, 60, 160), e.text(
|
|
3722
|
+
l.score && (L(e, d, F.NORMAL), e.setTextColor(60, 60, 160), e.text(W(l.score, f), _ + o - 1, y + d * .12, { align: "right" }), e.setTextColor(0));
|
|
3723
3723
|
}
|
|
3724
3724
|
}
|
|
3725
3725
|
let m = a + (r - 2) * (o + s) + o + s, h = c + (2 ** (r - 1) - 1) * l / 2 + l * 2 ** (r - 2);
|
|
@@ -3728,7 +3728,7 @@ function Mr(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
|
|
|
3728
3728
|
if (g?.winningSide) {
|
|
3729
3729
|
let t = n.get(g.drawPositions[g.winningSide - 1]);
|
|
3730
3730
|
if (t) {
|
|
3731
|
-
let { name: n } =
|
|
3731
|
+
let { name: n } = U(t, f);
|
|
3732
3732
|
L(e, u + 1, F.BOLD), e.text(n, m + 1, h - .5);
|
|
3733
3733
|
}
|
|
3734
3734
|
}
|
|
@@ -3746,7 +3746,7 @@ function Pr(e, t, n, r, i, a, o, s, c, l, u, d, f) {
|
|
|
3746
3746
|
let t = a - (r + 2) * (o + s);
|
|
3747
3747
|
e.line(_ - s, y, t + o, y);
|
|
3748
3748
|
}
|
|
3749
|
-
l.score && (L(e, d, F.NORMAL), e.setTextColor(60, 60, 160), e.text(
|
|
3749
|
+
l.score && (L(e, d, F.NORMAL), e.setTextColor(60, 60, 160), e.text(W(l.score, f), _ + 1, y + d * .12), e.setTextColor(0));
|
|
3750
3750
|
}
|
|
3751
3751
|
}
|
|
3752
3752
|
function Fr(e, t, n, r, i, a, o) {
|
|
@@ -3765,7 +3765,7 @@ function Ir(e, t, n, r, i, a, o, s, c, l, u) {
|
|
|
3765
3765
|
if (p?.winningSide) {
|
|
3766
3766
|
let t = n.get(p.drawPositions[p.winningSide - 1]);
|
|
3767
3767
|
if (t) {
|
|
3768
|
-
let { name: n } =
|
|
3768
|
+
let { name: n } = U(t, u);
|
|
3769
3769
|
L(e, l + 1, F.BOLD), e.text(n, d + a - 1, f - .5, { align: "right" });
|
|
3770
3770
|
}
|
|
3771
3771
|
}
|
|
@@ -3829,10 +3829,10 @@ function Hr(e, t = {}) {
|
|
|
3829
3829
|
maxPositionsPerPage: 64
|
|
3830
3830
|
});
|
|
3831
3831
|
let n = Q(e.drawSize, t), r = P(n.doc, n.pageConfig, n.headerH, n.footerH);
|
|
3832
|
-
return
|
|
3832
|
+
return G(n.doc, e, n.format, r), $(n), n.doc;
|
|
3833
3833
|
}
|
|
3834
3834
|
function Ur(e, t = {}) {
|
|
3835
|
-
let n = Q(e.drawSize, t), r =
|
|
3835
|
+
let n = Q(e.drawSize, t), r = sn(e, {
|
|
3836
3836
|
maxPositionsPerPage: t.maxPositionsPerPage || 32,
|
|
3837
3837
|
includeOverlapRounds: !0,
|
|
3838
3838
|
summaryPage: !0
|
|
@@ -3853,22 +3853,22 @@ function Ur(e, t = {}) {
|
|
|
3853
3853
|
drawSize: o,
|
|
3854
3854
|
totalRounds: i.segmentRounds
|
|
3855
3855
|
};
|
|
3856
|
-
|
|
3856
|
+
G(n.doc, s, n.format, a, i.startPosition - 1, o);
|
|
3857
3857
|
}
|
|
3858
3858
|
}
|
|
3859
3859
|
return $(n), n.doc;
|
|
3860
3860
|
}
|
|
3861
3861
|
function Wr(e, t = {}) {
|
|
3862
3862
|
let n = e.totalRounds >= 5 || e.slots.length >= 12, r = Q(e.drawSize, t, n), i = P(r.doc, r.pageConfig, r.headerH, r.footerH);
|
|
3863
|
-
return
|
|
3863
|
+
return G(r.doc, e, r.format, i), $(r), r.doc;
|
|
3864
3864
|
}
|
|
3865
3865
|
function Gr(e, t = {}) {
|
|
3866
3866
|
let n = Q(Math.max(...e.map((e) => e.drawData.drawSize), 8), t), r = P(n.doc, n.pageConfig, n.headerH, n.footerH);
|
|
3867
|
-
return
|
|
3867
|
+
return _n(n.doc, e, n.format, r), Zr(n, 1), $(n), n.doc;
|
|
3868
3868
|
}
|
|
3869
3869
|
function Kr(e, t = {}) {
|
|
3870
3870
|
let n = Q(e.mainStructure?.drawSize || 8, t), r = P(n.doc, n.pageConfig, n.headerH, n.footerH);
|
|
3871
|
-
return
|
|
3871
|
+
return pn(n.doc, e, n.format, r), Zr(n, 1), $(n), n.doc;
|
|
3872
3872
|
}
|
|
3873
3873
|
function qr(e, t = {}) {
|
|
3874
3874
|
let n = Q(e.drawSize, t, !0), r = P(n.doc, n.pageConfig, n.headerH, n.footerH);
|
|
@@ -3880,11 +3880,11 @@ function Jr(e, t = {}) {
|
|
|
3880
3880
|
}
|
|
3881
3881
|
function Yr(e, t = {}) {
|
|
3882
3882
|
let n = Q(Math.max(e.winnersBracket.drawSize, e.losersBracket.drawSize, 8), t, !0), r = P(n.doc, n.pageConfig, n.headerH, n.footerH);
|
|
3883
|
-
return
|
|
3883
|
+
return vn(n.doc, e, n.format, r), $(n), n.doc;
|
|
3884
3884
|
}
|
|
3885
3885
|
function Xr(e, t = {}) {
|
|
3886
3886
|
let n = Q(e.drawSize, t), r = P(n.doc, n.pageConfig, n.headerH, n.footerH);
|
|
3887
|
-
return
|
|
3887
|
+
return rn(n.doc, e, n.format, r), $(n), n.doc;
|
|
3888
3888
|
}
|
|
3889
3889
|
function Q(e, t, n) {
|
|
3890
3890
|
let r = t.format || m(t.preset || "itfJunior"), i = {
|
|
@@ -3983,6 +3983,6 @@ function $r() {
|
|
|
3983
3983
|
};
|
|
3984
3984
|
}
|
|
3985
3985
|
//#endregion
|
|
3986
|
-
export { b as COMPOSITION_CATALOG, Xe as DRAW_MODAL_TABS, se as FACT_SHEET_CATALOG, me as FONT, Ke as FOOTER_LAYOUT_OPTIONS, Ge as HEADER_LAYOUT_OPTIONS, Je as ORIENTATION_OPTIONS, qe as PAGE_SIZE_OPTIONS, p as PRESETS, Ze as SCHEDULE_MODAL_TABS, I as SIZE, Ye as SPLIT_STRATEGY_OPTIONS, F as STYLE,
|
|
3986
|
+
export { b as COMPOSITION_CATALOG, Xe as DRAW_MODAL_TABS, se as FACT_SHEET_CATALOG, me as FONT, Ke as FOOTER_LAYOUT_OPTIONS, Ge as HEADER_LAYOUT_OPTIONS, Je as ORIENTATION_OPTIONS, qe as PAGE_SIZE_OPTIONS, p as PRESETS, Ze as SCHEDULE_MODAL_TABS, I as SIZE, Ye as SPLIT_STRATEGY_OPTIONS, F as STYLE, Sn as TABLE_STYLES, Ae as buildFooterFromTournament, ke as buildHeaderFromTournament, wn as calculateBracketPositions, fe as createDoc, En as drawBracketConnectors, Tn as drawBracketSlot, J as drawPageFooter, q as drawTournamentHeader, $e as entryStatusDisplay, rt as eventAbbreviation, Ue as executePrint, xn as extractCompassData, gn as extractConsolationStructures, dt as extractCourtCardData, at as extractDrawData, ut as extractParticipantData, mt as extractRoundRobinData, ct as extractScheduleData, de as findStructure, tt as formatDate, W as formatMatchScore, ht as formatPlayerEntry, et as formatScore, nt as formatTime, Jr as generateBackdrawPDF, Kr as generateCompassDrawPDF, Gr as generateConsolationDrawPDF, In as generateCourtCardPDF, Yr as generateDoubleEliminationPDF, Br as generateDrawPDF, On as generateDrawSheetPDF, yr as generateFactSheet, Wr as generateFeedInDrawPDF, Qr as generateFromEventData, Xr as generateLuckyDrawPDF, er as generateMatchCardPDF, qr as generateMirroredDrawPDF, Fn as generatePlayerListPDF, rr as generateReportPDF, Mn as generateSchedulePDF, zn as generateScheduleV2PDF, qn as generateSequentialOOP, Rn as generateSignInSheetPDF, Ur as generateSplitDrawPDF, Hr as generateTraditionalDrawPDF, x as getCatalogPreset, pe as getDefaultPageConfig, ce as getFactSheetTemplate, P as getPageRegions, m as getPreset, H as getRoundLabel, S as listCatalogPresets, le as listFactSheetTemplates, z as measureFooterHeight, He as measureSeedingsHeight, C as mergeCatalogPreset, h as mergePreset, V as nationality, B as participantName, pn as renderCompassDraw, _n as renderConsolationDraw, vn as renderDoubleEliminationDraw, je as renderFooter, R as renderHeader, rn as renderLuckyDraw, Zt as renderRoundRobinGroup, Be as renderSeedingsFooter, G as renderTraditionalDraw, it as roundName, Qe as seedDisplay, L as setFont, sn as splitDraw, ue as structureToDrawData };
|
|
3987
3987
|
|
|
3988
3988
|
//# sourceMappingURL=pdf-factory.js.map
|