pdf-factory 0.8.22 → 1.1.0
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/__tests__/fixtureGuard.d.ts +1 -6
- package/dist/__tests__/fixtureGuard.d.ts.map +1 -1
- package/dist/composition/footerLayouts.d.ts.map +1 -1
- package/dist/composition/printDispatcher.d.ts.map +1 -1
- package/dist/config/types.d.ts +2 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/core/drawsDataToDrawData.d.ts.map +1 -1
- package/dist/core/extractCompassData.d.ts.map +1 -1
- package/dist/core/extractCourtCardData.d.ts.map +1 -1
- package/dist/core/extractDrawData.d.ts +10 -0
- package/dist/core/extractDrawData.d.ts.map +1 -1
- package/dist/core/extractScheduleData.d.ts.map +1 -1
- package/dist/core/seedingBasis.d.ts +45 -0
- package/dist/core/seedingBasis.d.ts.map +1 -0
- package/dist/core/sideByNumber.d.ts +11 -0
- package/dist/core/sideByNumber.d.ts.map +1 -0
- package/dist/core/winnerDrawPosition.d.ts +26 -0
- package/dist/core/winnerDrawPosition.d.ts.map +1 -0
- package/dist/generators/drawSheet.d.ts.map +1 -1
- package/dist/parser.cjs +16 -16
- package/dist/parser.cjs.map +1 -1
- package/dist/parser.js +8947 -7757
- package/dist/parser.js.map +1 -1
- package/dist/pdf-factory.cjs +4 -4
- package/dist/pdf-factory.cjs.map +1 -1
- package/dist/pdf-factory.js +898 -794
- package/dist/pdf-factory.js.map +1 -1
- package/dist/renderers/consolationDraw.d.ts.map +1 -1
- package/dist/renderers/drawSplitter.d.ts.map +1 -1
- package/dist/renderers/formatEntry.d.ts.map +1 -1
- package/dist/renderers/mirroredDraw.d.ts.map +1 -1
- package/dist/renderers/positionlessPlacement.d.ts +50 -0
- package/dist/renderers/positionlessPlacement.d.ts.map +1 -0
- package/package.json +8 -8
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
export declare const FIXTURES_DIR: string;
|
|
2
2
|
export declare const REFERENCE_DIR: string;
|
|
3
|
-
/**
|
|
4
|
-
* True when the local fixtures/ directory exists.
|
|
5
|
-
* Parser and fidelity tests depend on third-party PDFs that are
|
|
6
|
-
* gitignored (too large / redistribution concerns). These tests
|
|
7
|
-
* run locally but are skipped in CI where fixtures/ is absent.
|
|
8
|
-
*/
|
|
9
3
|
export declare const hasFixtures: boolean;
|
|
10
4
|
export declare const hasReferenceFixtures: boolean;
|
|
5
|
+
export declare const hasTodsFixture: boolean;
|
|
11
6
|
//# sourceMappingURL=fixtureGuard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fixtureGuard.d.ts","sourceRoot":"","sources":["../../src/__tests__/fixtureGuard.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,QAAuC,CAAC;AACjE,eAAO,MAAM,aAAa,QAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"fixtureGuard.d.ts","sourceRoot":"","sources":["../../src/__tests__/fixtureGuard.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,QAAuC,CAAC;AACjE,eAAO,MAAM,aAAa,QAAqC,CAAC;AA4BhE,eAAO,MAAM,WAAW,SAA2B,CAAC;AACpD,eAAO,MAAM,oBAAoB,SAAwB,CAAC;AAC1D,eAAO,MAAM,cAAc,SAAiD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footerLayouts.d.ts","sourceRoot":"","sources":["../../src/composition/footerLayouts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"footerLayouts.d.ts","sourceRoot":"","sources":["../../src/composition/footerLayouts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGhE,wBAAgB,YAAY,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAiBlH;AAOD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CA2BhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"printDispatcher.d.ts","sourceRoot":"","sources":["../../src/composition/printDispatcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EACV,YAAY,EAOb,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"printDispatcher.d.ts","sourceRoot":"","sources":["../../src/composition/printDispatcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EACV,YAAY,EAOb,MAAM,mBAAmB,CAAC;AAmC3B,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,6HAA6H;IAC7H,gBAAgB,EAAE,GAAG,CAAC;CACvB;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,GAAG,WAAW,CAmBtF"}
|
package/dist/config/types.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ export interface FooterConfig {
|
|
|
81
81
|
participantName: string;
|
|
82
82
|
nationality?: string;
|
|
83
83
|
ranking?: number;
|
|
84
|
+
/** Why the seed exists; marked with a footnote when it is not the ordinary basis. */
|
|
85
|
+
seedingBasis?: string;
|
|
84
86
|
}[];
|
|
85
87
|
prizeMoney?: {
|
|
86
88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,CAAC,EAAE,MAAM,CAAC;QACjB,qFAAqF;QACrF,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,EAAE,CAAC;IAEJ,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAEnE,cAAc,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACnD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAClD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawsDataToDrawData.d.ts","sourceRoot":"","sources":["../../src/core/drawsDataToDrawData.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAyB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"drawsDataToDrawData.d.ts","sourceRoot":"","sources":["../../src/core/drawsDataToDrawData.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAyB,MAAM,mBAAmB,CAAC;AAGzE,yDAAyD;AACzD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,GAAG,GAAG,QAAQ,CAiFzD;AAED,+CAA+C;AAC/C,wBAAgB,aAAa,CAAC,SAAS,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,CAElE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractCompassData.d.ts","sourceRoot":"","sources":["../../src/core/extractCompassData.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"extractCompassData.d.ts","sourceRoot":"","sources":["../../src/core/extractCompassData.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE/D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,gBAAgB,CAAC;CAClC;AAaD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IAAE,cAAc,EAAE,GAAG,CAAC;IAAC,YAAY,CAAC,EAAE,GAAG,EAAE,CAAA;CAAE,GAAG,eAAe,CA0DzG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractCourtCardData.d.ts","sourceRoot":"","sources":["../../src/core/extractCourtCardData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extractCourtCardData.d.ts","sourceRoot":"","sources":["../../src/core/extractCourtCardData.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAC3C,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,aAAa,EAAE,CA2DlB"}
|
|
@@ -10,6 +10,11 @@ export interface DrawMatchUp {
|
|
|
10
10
|
roundNumber: number;
|
|
11
11
|
roundPosition: number;
|
|
12
12
|
drawPositions: number[];
|
|
13
|
+
/**
|
|
14
|
+
* The winner's drawPosition, resolved at the boundary. Renderers MUST read this rather than
|
|
15
|
+
* index `drawPositions` by `winningSide`: see `resolveWinnerDrawPosition`.
|
|
16
|
+
*/
|
|
17
|
+
winnerDrawPosition?: number;
|
|
13
18
|
score?: string;
|
|
14
19
|
winningSide?: number;
|
|
15
20
|
matchUpStatus?: string;
|
|
@@ -21,10 +26,15 @@ export interface DrawData {
|
|
|
21
26
|
totalRounds: number;
|
|
22
27
|
slots: DrawSlot[];
|
|
23
28
|
matchUps: DrawMatchUp[];
|
|
29
|
+
/**
|
|
30
|
+
* `seedingBasis` is carried through from `SeedAssignment` (factory 7.1+) so the seedings table
|
|
31
|
+
* can say WHY a seed exists. Absent means the ordinary basis; see `core/seedingBasis`.
|
|
32
|
+
*/
|
|
24
33
|
seedAssignments: {
|
|
25
34
|
seedValue: number;
|
|
26
35
|
participantName: string;
|
|
27
36
|
nationality: string;
|
|
37
|
+
seedingBasis?: string;
|
|
28
38
|
}[];
|
|
29
39
|
roundLabelMap?: Record<number, string>;
|
|
30
40
|
noWinnerColumn?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractDrawData.d.ts","sourceRoot":"","sources":["../../src/core/extractDrawData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extractDrawData.d.ts","sourceRoot":"","sources":["../../src/core/extractDrawData.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,QAAQ;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB;;;OAGG;IACH,eAAe,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC9G,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE;IACtC,cAAc,EAAE,GAAG,CAAC;IACpB,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,GAAG,EAAE,CAAC;CAC3B,GAAG,QAAQ,CA6EX;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAE9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractScheduleData.d.ts","sourceRoot":"","sources":["../../src/core/extractScheduleData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"extractScheduleData.d.ts","sourceRoot":"","sources":["../../src/core/extractScheduleData.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC1C,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,YAAY,CA+Df"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a seed exists, annotated for print.
|
|
3
|
+
*
|
|
4
|
+
* `SeedAssignment.seedingBasis` (factory 7.1+) records the ground on which a seeding was awarded,
|
|
5
|
+
* as distinct from `seedValue`, which says only where it sits in the order. The distinction is
|
|
6
|
+
* load-bearing wherever a governing body permits seeds ABOVE the count its `seedsCountThresholds`
|
|
7
|
+
* allow — a protected ranking seeded ALONGSIDE the normal seeds rather than in place of one of
|
|
8
|
+
* them. Such a seed displaced nobody, is usually bounded per season, and is the one an appeal will
|
|
9
|
+
* ask about.
|
|
10
|
+
*
|
|
11
|
+
* **The printed sheet is where that question gets asked**, which is why this exists at all: "why is
|
|
12
|
+
* there a ninth seed" has to be answerable from the artefact, not from the operator's memory.
|
|
13
|
+
*
|
|
14
|
+
* ## Markers, not a column
|
|
15
|
+
*
|
|
16
|
+
* `RANKING` is the ordinary basis and is deliberately left ABSENT on ordinary seeds — the factory's
|
|
17
|
+
* rule is that an absent basis means "the usual one", not "unknown". A Basis column would therefore
|
|
18
|
+
* be empty for every normal seed and read as missing data. A marker puts the weight on the
|
|
19
|
+
* exception, which is what a reader is scanning for, and costs no column width in an already-tight
|
|
20
|
+
* two-column footer.
|
|
21
|
+
*
|
|
22
|
+
* One marker per DISTINCT basis, assigned in order of first appearance. With a single basis — the
|
|
23
|
+
* overwhelming case — that is one dagger and one footnote line. Two bases keep their identities
|
|
24
|
+
* rather than collapsing into a footnote that names both and tells you which seed has which.
|
|
25
|
+
*/
|
|
26
|
+
export type SeedingBasisAnnotations = {
|
|
27
|
+
/** One entry per input seed, parallel and same length. `''` where the seed is ordinary. */
|
|
28
|
+
markers: string[];
|
|
29
|
+
/** Footnote lines to print below the seed block, in marker order. Empty when nothing is marked. */
|
|
30
|
+
footnotes: string[];
|
|
31
|
+
/** Whether anything was marked — cheaper at call sites than checking both arrays. */
|
|
32
|
+
hasAnnotations: boolean;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Assign a marker to every seed carrying a non-ordinary basis, and build the footnote lines.
|
|
36
|
+
*
|
|
37
|
+
* Unknown basis values are passed through verbatim rather than dropped. The factory's
|
|
38
|
+
* `SeedingBasisEnum` can gain members, and a sheet that silently omits a basis it does not
|
|
39
|
+
* recognise is worse than one that prints an unfamiliar word — the second is a question, the first
|
|
40
|
+
* is a wrong answer.
|
|
41
|
+
*/
|
|
42
|
+
export declare function annotateSeedingBases(seeds: {
|
|
43
|
+
seedingBasis?: string;
|
|
44
|
+
}[]): SeedingBasisAnnotations;
|
|
45
|
+
//# sourceMappingURL=seedingBasis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seedingBasis.d.ts","sourceRoot":"","sources":["../../src/core/seedingBasis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAmBH,MAAM,MAAM,uBAAuB,GAAG;IACpC,2FAA2F;IAC3F,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,mGAAmG;IACnG,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,qFAAqF;IACrF,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,uBAAuB,CAsBhG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A side by its OWN `sideNumber`, falling back to array order only when no side names one.
|
|
3
|
+
*
|
|
4
|
+
* Array position is not `sideNumber` — the mistake `DRAWPOSITIONS_CONSUMER_REMEDIATION_PLAN.md`
|
|
5
|
+
* exists to remove. Hydrated matchUps (everything `competitionScheduleMatchUps` returns) carry it,
|
|
6
|
+
* so the lookup is exact there. This module is also exported publicly and may be handed sparser
|
|
7
|
+
* input, and these are DISPLAY paths — schedule rows and court cards, where no drawPosition is
|
|
8
|
+
* derived — so order remains an acceptable last resort rather than a silent guess at a position.
|
|
9
|
+
*/
|
|
10
|
+
export declare function sideByNumber(sides: any[], sideNumber: number): any;
|
|
11
|
+
//# sourceMappingURL=sideByNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sideByNumber.d.ts","sourceRoot":"","sources":["../../src/core/sideByNumber.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,MAAM,GAAG,GAAG,CAElE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The drawPosition of a decided matchUp's winner.
|
|
3
|
+
*
|
|
4
|
+
* `drawPositions[winningSide - 1]` is the idiom this replaces, and it is correct ONLY while the
|
|
5
|
+
* array holds both positions. A matchUp decided by a PROPAGATED EXIT — a WALKOVER or DEFAULTED
|
|
6
|
+
* produced upstream by a double exit — carries a `winningSide` before its second participant has
|
|
7
|
+
* arrived, and its `drawPositions` is COMPACTED to the one position present. `[4]` with
|
|
8
|
+
* `winningSide: 2` then indexes past the end and yields `undefined`, so the advancing participant
|
|
9
|
+
* renders as a blank line on the draw sheet.
|
|
10
|
+
*
|
|
11
|
+
* Measured 2026-09-18 over 9 draw types x 3 sizes x 6 double-exit placements: of 1,488 decided
|
|
12
|
+
* matchUps, 162 held a single drawPosition, and 81 of those — every one whose winner sat on side
|
|
13
|
+
* 2 — resolved to `undefined` by index. Reproduced end to end through `structureToDrawData` in
|
|
14
|
+
* `__tests__/renderers/propagatedExitWinner.test.ts`.
|
|
15
|
+
*
|
|
16
|
+
* `sides` is authoritative because the factory builds it from the ORDERED positions, preserving the
|
|
17
|
+
* empty slot (`[[1, undefined], [2, 4]]`) that `drawPositions` discards — see
|
|
18
|
+
* `addMatchUpContext.ts` in `tods-competition-factory`, which maps ordered positions with
|
|
19
|
+
* `sideNumber = index + 1`.
|
|
20
|
+
*
|
|
21
|
+
* When `sides` is absent — `extractDrawData` reads a raw `drawDefinition`, which carries none — a
|
|
22
|
+
* single remaining position is taken to be the winner's. In the same sweep the engine awarded to
|
|
23
|
+
* the side that is PRESENT in 162 of 162 cases; it does not decide in favour of an empty slot.
|
|
24
|
+
*/
|
|
25
|
+
export declare function resolveWinnerDrawPosition(matchUp: any): number | undefined;
|
|
26
|
+
//# sourceMappingURL=winnerDrawPosition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"winnerDrawPosition.d.ts","sourceRoot":"","sources":["../../src/core/winnerDrawPosition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAU1E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawSheet.d.ts","sourceRoot":"","sources":["../../src/generators/drawSheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAwC,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAWhG,OAAO,EAAiB,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"drawSheet.d.ts","sourceRoot":"","sources":["../../src/generators/drawSheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAwC,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAWhG,OAAO,EAAiB,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAGvE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,GAAE,gBAAqB,GAAG,KAAK,CA8B9F"}
|