@courthive/scoring-visualizations 0.2.19 → 0.2.20
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/README.md
CHANGED
|
@@ -24,7 +24,7 @@ import { gameTree, buildEpisodes } from '@courthive/scoring-visualizations';
|
|
|
24
24
|
|
|
25
25
|
const chart = gameTree();
|
|
26
26
|
chart.options({ display: { sizeToFit: true } });
|
|
27
|
-
chart.players(['
|
|
27
|
+
chart.players(['Lindqvist', 'Okafor']);
|
|
28
28
|
chart.data(buildEpisodes(matchUp)); // or chart.matchUp(matchUp)
|
|
29
29
|
|
|
30
30
|
select(container).call(chart);
|
|
@@ -109,7 +109,7 @@ import { coronaChartFromMatchUp, momentumChart, buildEpisodes } from '@courthive
|
|
|
109
109
|
|
|
110
110
|
// Direct one-call render
|
|
111
111
|
coronaChartFromMatchUp(document.getElementById('corona'), matchUp, {
|
|
112
|
-
players: ['
|
|
112
|
+
players: ['Lindqvist', 'Okafor'],
|
|
113
113
|
});
|
|
114
114
|
|
|
115
115
|
// Reusable-chart pattern
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Feed
|
|
2
|
+
* Feed the bundled demo matches into the factory ScoringEngine
|
|
3
3
|
*
|
|
4
4
|
* Thin wrapper: iterates points, calls addPoint(), returns getState().
|
|
5
5
|
* No scoring logic lives here — the ScoringEngine is the single source of truth.
|
|
6
|
+
*
|
|
7
|
+
* The demo matches are SYNTHETIC: `scripts/generateSyntheticMatches.mjs` plays them through the
|
|
8
|
+
* ScoringEngine from fixed seeds, with fictional players. They replaced real Match Charting Project
|
|
9
|
+
* matches (CC BY-NC-SA 4.0), whose non-commercial and share-alike terms cannot ride inside this MIT
|
|
10
|
+
* package. The shape — and the `Mcp*` names below, kept so the API is unchanged — is the MCP one.
|
|
6
11
|
*/
|
|
7
12
|
interface McpPoint {
|
|
8
13
|
index: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedMatchUp.d.ts","sourceRoot":"","sources":["../../src/engine/feedMatchUp.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"feedMatchUp.d.ts","sourceRoot":"","sources":["../../src/engine/feedMatchUp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,UAAU;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,UAAU,EAAE;QACV,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,KAAK,EAAE;QACL,IAAI,CAAC,EAAE,KAAK,CAAC;YAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAE,CAAC,CAAC;QAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,MAAM,CAAC,EAAE,MAAM,CA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