@courthive/scoring-visualizations 0.2.20 → 0.2.21
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/episodes/buildEpisodes.d.ts +11 -0
- package/dist/episodes/buildEpisodes.d.ts.map +1 -1
- package/dist/scoring-visualizations.es.js +474 -479
- package/dist/scoring-visualizations.umd.js +2 -2
- package/dist/visualizations/matchUpDashboard.d.ts +1 -0
- package/dist/visualizations/matchUpDashboard.d.ts.map +1 -1
- package/dist/visualizations/rallyTree.d.ts +1 -0
- package/dist/visualizations/rallyTree.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
import { Episode } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Transforms a ScoringEngine MatchUp into an Episode array
|
|
4
|
+
* suitable for visualization components (GameTree, Momentum, PTS, GameFish, Corona).
|
|
5
|
+
*
|
|
6
|
+
* Games and sets are read from the engine's unified timeline (`history.entries`),
|
|
7
|
+
* so games awarded with addGame/addSet count, and a game they interrupted is not
|
|
8
|
+
* credited to its last tracked point.
|
|
9
|
+
*
|
|
10
|
+
* @param matchUp - A MatchUp object from ScoringEngine.getState()
|
|
11
|
+
* @returns Episode[] - Array of episodes, one per point played
|
|
12
|
+
*/
|
|
2
13
|
export declare function buildEpisodes(matchUp: any): Episode[];
|
|
3
14
|
//# sourceMappingURL=buildEpisodes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildEpisodes.d.ts","sourceRoot":"","sources":["../../src/episodes/buildEpisodes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"buildEpisodes.d.ts","sourceRoot":"","sources":["../../src/episodes/buildEpisodes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAmBvC;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,EAAE,CA6BrD"}
|