pdf-factory 1.1.0 → 1.1.1
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/core/drawsDataToDrawData.d.ts.map +1 -1
- package/dist/core/extractDrawData.d.ts +2 -1
- package/dist/core/extractDrawData.d.ts.map +1 -1
- package/dist/core/sideOrderedDrawPositions.d.ts +15 -0
- package/dist/core/sideOrderedDrawPositions.d.ts.map +1 -0
- package/dist/parser.cjs.map +1 -1
- 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 +697 -688
- package/dist/pdf-factory.js.map +1 -1
- package/dist/renderers/positionlessPlacement.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -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;AAIzE,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"}
|
|
@@ -9,7 +9,8 @@ export interface DrawSlot {
|
|
|
9
9
|
export interface DrawMatchUp {
|
|
10
10
|
roundNumber: number;
|
|
11
11
|
roundPosition: number;
|
|
12
|
-
|
|
12
|
+
/** in SIDE order, `[side 1, side 2]`, with a hole where a side holds none: see `sideOrderedDrawPositions` */
|
|
13
|
+
drawPositions: (number | undefined)[];
|
|
13
14
|
/**
|
|
14
15
|
* The winner's drawPosition, resolved at the boundary. Renderers MUST read this rather than
|
|
15
16
|
* index `drawPositions` by `winningSide`: see `resolveWinnerDrawPosition`.
|
|
@@ -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":"AAKA,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,6GAA6G;IAC7G,aAAa,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IACtC;;;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,CA+EX;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAE9E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A matchUp's drawPositions in SIDE order, `[side 1, side 2]`, with a hole where a side holds none.
|
|
3
|
+
*
|
|
4
|
+
* The renderers read `drawPositions[0]` as side 1 and `[1]` as side 2. That holds only while the array is stored in
|
|
5
|
+
* side order, and the factory is removing the leading hole that put a lone side-2 survivor at index 1
|
|
6
|
+
* (`[undefined, 5]` becomes `[5]`; Mentat `LEADING_HOLE_REMOVAL_DESIGN.md`, CA 2026-10-06). Stored compacted, a lone
|
|
7
|
+
* side-2 survivor would print in the side-1 slot. So the side order is resolved here, once, at the boundary:
|
|
8
|
+
*
|
|
9
|
+
* 1. hydrated `sides`, each naming its `sideNumber` and `drawPosition` (the `drawsData` path);
|
|
10
|
+
* 2. otherwise the round profile's `pairedDrawPositions` for this matchUp, which the factory derives structurally
|
|
11
|
+
* (a fed position takes side 1; an advanced one is ordered by the prior-round matchUp it came from);
|
|
12
|
+
* 3. otherwise the array as stored.
|
|
13
|
+
*/
|
|
14
|
+
export declare function sideOrderedDrawPositions(matchUp: any, roundProfile?: any): (number | undefined)[];
|
|
15
|
+
//# sourceMappingURL=sideOrderedDrawPositions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sideOrderedDrawPositions.d.ts","sourceRoot":"","sources":["../../src/core/sideOrderedDrawPositions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,GAAG,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAWjG"}
|