@courthive/scoring-visualizations 0.2.2
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 +5 -0
- package/dist/engine/LiveEngine.d.ts +42 -0
- package/dist/engine/LiveEngine.d.ts.map +1 -0
- package/dist/engine/buildSetMap.d.ts +14 -0
- package/dist/engine/buildSetMap.d.ts.map +1 -0
- package/dist/engine/createPlaybackEngine.d.ts +23 -0
- package/dist/engine/createPlaybackEngine.d.ts.map +1 -0
- package/dist/engine/feedMatchUp.d.ts +82 -0
- package/dist/engine/feedMatchUp.d.ts.map +1 -0
- package/dist/episodes/buildEpisodes.d.ts +10 -0
- package/dist/episodes/buildEpisodes.d.ts.map +1 -0
- package/dist/episodes/types.d.ts +45 -0
- package/dist/episodes/types.d.ts.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/parsers/index.d.ts +10 -0
- package/dist/parsers/index.d.ts.map +1 -0
- package/dist/parsers/ionSportParser.d.ts +187 -0
- package/dist/parsers/ionSportParser.d.ts.map +1 -0
- package/dist/parsers/ionSportValidator.d.ts +33 -0
- package/dist/parsers/ionSportValidator.d.ts.map +1 -0
- package/dist/parsers/proTrackerParser.d.ts +115 -0
- package/dist/parsers/proTrackerParser.d.ts.map +1 -0
- package/dist/parsers/proTrackerValidator.d.ts +38 -0
- package/dist/parsers/proTrackerValidator.d.ts.map +1 -0
- package/dist/parsers/types.d.ts +49 -0
- package/dist/parsers/types.d.ts.map +1 -0
- package/dist/scoring-visualizations.es.js +4039 -0
- package/dist/scoring-visualizations.umd.js +7 -0
- package/dist/statistics/index.d.ts +3 -0
- package/dist/statistics/index.d.ts.map +1 -0
- package/dist/statistics/matchStatistics.d.ts +19 -0
- package/dist/statistics/matchStatistics.d.ts.map +1 -0
- package/dist/utils/supportsGameVisualizations.d.ts +14 -0
- package/dist/utils/supportsGameVisualizations.d.ts.map +1 -0
- package/dist/utils/supportsPointsToVisualization.d.ts +13 -0
- package/dist/utils/supportsPointsToVisualization.d.ts.map +1 -0
- package/dist/visualizations/coronaChart.d.ts +54 -0
- package/dist/visualizations/coronaChart.d.ts.map +1 -0
- package/dist/visualizations/data/sampleGame.d.ts +31 -0
- package/dist/visualizations/data/sampleGame.d.ts.map +1 -0
- package/dist/visualizations/donutChart.d.ts +31 -0
- package/dist/visualizations/donutChart.d.ts.map +1 -0
- package/dist/visualizations/gameFish.d.ts +16 -0
- package/dist/visualizations/gameFish.d.ts.map +1 -0
- package/dist/visualizations/gameTree.d.ts +17 -0
- package/dist/visualizations/gameTree.d.ts.map +1 -0
- package/dist/visualizations/groupGames.d.ts +6 -0
- package/dist/visualizations/groupGames.d.ts.map +1 -0
- package/dist/visualizations/helpers/FileDropzone.d.ts +13 -0
- package/dist/visualizations/helpers/FileDropzone.d.ts.map +1 -0
- package/dist/visualizations/helpers/JsonViewer.d.ts +27 -0
- package/dist/visualizations/helpers/JsonViewer.d.ts.map +1 -0
- package/dist/visualizations/helpers/PlaybackControls.d.ts +5 -0
- package/dist/visualizations/helpers/PlaybackControls.d.ts.map +1 -0
- package/dist/visualizations/horizonChart.d.ts +59 -0
- package/dist/visualizations/horizonChart.d.ts.map +1 -0
- package/dist/visualizations/index.d.ts +21 -0
- package/dist/visualizations/index.d.ts.map +1 -0
- package/dist/visualizations/legacyRally.d.ts +3 -0
- package/dist/visualizations/legacyRally.d.ts.map +1 -0
- package/dist/visualizations/matchUpDashboard.d.ts +30 -0
- package/dist/visualizations/matchUpDashboard.d.ts.map +1 -0
- package/dist/visualizations/momentumChart.d.ts +12 -0
- package/dist/visualizations/momentumChart.d.ts.map +1 -0
- package/dist/visualizations/ptsChart.d.ts +14 -0
- package/dist/visualizations/ptsChart.d.ts.map +1 -0
- package/dist/visualizations/ptsHorizon.d.ts +83 -0
- package/dist/visualizations/ptsHorizon.d.ts.map +1 -0
- package/dist/visualizations/rallyTree.d.ts +78 -0
- package/dist/visualizations/rallyTree.d.ts.map +1 -0
- package/dist/visualizations/simpleChart.d.ts +6 -0
- package/dist/visualizations/simpleChart.d.ts.map +1 -0
- package/dist/visualizations/statView.d.ts +44 -0
- package/dist/visualizations/statView.d.ts.map +1 -0
- package/dist/visualizations/typeOf.d.ts +6 -0
- package/dist/visualizations/typeOf.d.ts.map +1 -0
- package/dist/visualizations/types/events.d.ts +92 -0
- package/dist/visualizations/types/events.d.ts.map +1 -0
- package/dist/visualizations/types/index.d.ts +79 -0
- package/dist/visualizations/types/index.d.ts.map +1 -0
- package/dist/visualizations/utils/arrays.d.ts +18 -0
- package/dist/visualizations/utils/arrays.d.ts.map +1 -0
- package/dist/visualizations/utils/colorUtils.d.ts +36 -0
- package/dist/visualizations/utils/colorUtils.d.ts.map +1 -0
- package/dist/visualizations/utils/generateId.d.ts +2 -0
- package/dist/visualizations/utils/generateId.d.ts.map +1 -0
- package/dist/visualizations/utils/keyWalk.d.ts +2 -0
- package/dist/visualizations/utils/keyWalk.d.ts.map +1 -0
- package/dist/visualizations/utils/math.d.ts +10 -0
- package/dist/visualizations/utils/math.d.ts.map +1 -0
- package/dist/visualizations/utils/setDev.d.ts +29 -0
- package/dist/visualizations/utils/setDev.d.ts.map +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rally Tree - Migrated to D3 v7
|
|
3
|
+
* Displays rally length distribution in a tree-like format
|
|
4
|
+
* Shows how rally lengths are distributed by player and outcome
|
|
5
|
+
*/
|
|
6
|
+
interface Point {
|
|
7
|
+
winner: 0 | 1;
|
|
8
|
+
result?: string;
|
|
9
|
+
rally?: string;
|
|
10
|
+
rallyLength?: number;
|
|
11
|
+
rl?: [number, number];
|
|
12
|
+
i?: number;
|
|
13
|
+
hide?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface RallyTreeOptions {
|
|
16
|
+
id: string;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
margins: {
|
|
20
|
+
top: number;
|
|
21
|
+
right: number;
|
|
22
|
+
bottom: number;
|
|
23
|
+
left: number;
|
|
24
|
+
};
|
|
25
|
+
display: {
|
|
26
|
+
sizeToFit: boolean;
|
|
27
|
+
};
|
|
28
|
+
orientation: 'horizontal' | 'vertical';
|
|
29
|
+
data: {
|
|
30
|
+
sort: boolean;
|
|
31
|
+
};
|
|
32
|
+
areas: {
|
|
33
|
+
colors: {
|
|
34
|
+
0: string;
|
|
35
|
+
1: string;
|
|
36
|
+
};
|
|
37
|
+
interpolation: string;
|
|
38
|
+
};
|
|
39
|
+
points: {
|
|
40
|
+
colors: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
players?: [string, string];
|
|
45
|
+
}
|
|
46
|
+
export declare function rallyTree(): {
|
|
47
|
+
(selection: Selection<any, any, any, any>): void;
|
|
48
|
+
options(values?: any): /*elided*/ any | RallyTreeOptions;
|
|
49
|
+
data(value?: Point[]): /*elided*/ any | Point[];
|
|
50
|
+
matchUp(matchUpState: any): /*elided*/ any;
|
|
51
|
+
events(value?: any): /*elided*/ any | {
|
|
52
|
+
pointbar: {
|
|
53
|
+
mouseover: null;
|
|
54
|
+
mouseout: null;
|
|
55
|
+
click: null;
|
|
56
|
+
};
|
|
57
|
+
statbar: {
|
|
58
|
+
click: null;
|
|
59
|
+
};
|
|
60
|
+
pctarea: {
|
|
61
|
+
mouseover: null;
|
|
62
|
+
mouseout: null;
|
|
63
|
+
};
|
|
64
|
+
update: {
|
|
65
|
+
begin: null;
|
|
66
|
+
end: null;
|
|
67
|
+
};
|
|
68
|
+
rallies: {
|
|
69
|
+
none: null;
|
|
70
|
+
display: null;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
update: (opts?: {
|
|
74
|
+
sizeToFit?: boolean;
|
|
75
|
+
}) => void;
|
|
76
|
+
};
|
|
77
|
+
export {};
|
|
78
|
+
//# sourceMappingURL=rallyTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1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;iBAsBP,KAAK,EAAE;0BAME,GAAG;mBAyBV,GAAG;;;;;;;;;;;;;;;;;;;;;;oBAlVb;QAAE,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE;EAyW/C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function simpleChart(target: any, data: any, playerNames?: [string, string]): void;
|
|
2
|
+
/**
|
|
3
|
+
* Companion function: render simpleChart directly from a ScoringEngine MatchUp.
|
|
4
|
+
*/
|
|
5
|
+
export declare function simpleChartFromMatchUp(target: any, matchUp: any, playerNames?: [string, string]): void;
|
|
6
|
+
//# sourceMappingURL=simpleChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simpleChart.d.ts","sourceRoot":"","sources":["../../src/visualizations/simpleChart.ts"],"names":[],"mappings":"AAKA,wBAAgB,WAAW,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,QA8HjF;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAKtG"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { StatObject } from 'tods-competition-factory';
|
|
2
|
+
interface StatViewOptions {
|
|
3
|
+
id: string;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
rowHeight: number;
|
|
7
|
+
margins: {
|
|
8
|
+
top: number;
|
|
9
|
+
bottom: number;
|
|
10
|
+
left: number;
|
|
11
|
+
right: number;
|
|
12
|
+
};
|
|
13
|
+
display: {
|
|
14
|
+
sizeToFit: {
|
|
15
|
+
width: boolean;
|
|
16
|
+
height: boolean;
|
|
17
|
+
};
|
|
18
|
+
transitionTime: number;
|
|
19
|
+
};
|
|
20
|
+
colors: {
|
|
21
|
+
players: {
|
|
22
|
+
0: string;
|
|
23
|
+
1: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare function statView(): {
|
|
28
|
+
(selection: any): void;
|
|
29
|
+
options(values?: Record<string, any>): StatViewOptions | /*elided*/ any;
|
|
30
|
+
events(functions?: any): {
|
|
31
|
+
update: {
|
|
32
|
+
begin: (() => void) | null;
|
|
33
|
+
end: (() => void) | null;
|
|
34
|
+
};
|
|
35
|
+
} | /*elided*/ any;
|
|
36
|
+
data(value?: StatObject[]): StatObject[] | /*elided*/ any;
|
|
37
|
+
matchUp(matchUpState: any): /*elided*/ any;
|
|
38
|
+
update(opts?: any): void;
|
|
39
|
+
width(value?: number): number | /*elided*/ any;
|
|
40
|
+
height(value?: number): number | /*elided*/ any;
|
|
41
|
+
colors(playerColors?: [string, string]): string[] | /*elided*/ any;
|
|
42
|
+
};
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=statView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"statView.d.ts","sourceRoot":"","sources":["../../src/visualizations/statView.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAM3D,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACtE,OAAO,EAAE;QACP,SAAS,EAAE;YAAE,KAAK,EAAE,OAAO,CAAC;YAAC,MAAM,EAAE,OAAO,CAAA;SAAE,CAAC;QAC/C,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,MAAM,EAAE;QAAE,OAAO,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CAC/C;AAUD,wBAAgB,QAAQ;gBA0BI,GAAG;qBAqIM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;uBAMjB,GAAG;;mBAhJrB,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;iBACrB,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;;;iBAqJL,UAAU,EAAE;0BAMH,GAAG;kBAMX,GAAG;kBAQH,MAAM;mBAML,MAAM;0BAMC,CAAC,MAAM,EAAE,MAAM,CAAC;EAQzD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function isFunction(fx: any): fx is (...args: any[]) => any;
|
|
2
|
+
export declare function isString(item: any): item is string;
|
|
3
|
+
export declare function isArray(item: any): item is any[];
|
|
4
|
+
export declare function isObject(item: any): item is object;
|
|
5
|
+
export declare function isNumeric(value: any): boolean;
|
|
6
|
+
//# sourceMappingURL=typeOf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeOf.d.ts","sourceRoot":"","sources":["../../src/visualizations/typeOf.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAEjE;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,MAAM,CAElD;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,GAAG,EAAE,CAEhD;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,IAAI,MAAM,CAElD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAE7C"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
type Handler<Args extends any[] = []> = ((...args: Args) => void) | null;
|
|
2
|
+
export interface PtsChartEvents {
|
|
3
|
+
update: {
|
|
4
|
+
begin: Handler;
|
|
5
|
+
end: Handler;
|
|
6
|
+
};
|
|
7
|
+
setBox: {
|
|
8
|
+
mouseover: Handler<[any, number]>;
|
|
9
|
+
mouseout: Handler<[any, number]>;
|
|
10
|
+
};
|
|
11
|
+
pointBars: {
|
|
12
|
+
mouseover: Handler<[any, number]>;
|
|
13
|
+
mouseout: Handler<[any, number]>;
|
|
14
|
+
click: Handler<[any, number, Node]>;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface GameFishEvents {
|
|
18
|
+
leftImage: {
|
|
19
|
+
click: Handler<[string]>;
|
|
20
|
+
};
|
|
21
|
+
rightImage: {
|
|
22
|
+
click: Handler<[string]>;
|
|
23
|
+
};
|
|
24
|
+
update: {
|
|
25
|
+
begin: Handler;
|
|
26
|
+
end: Handler;
|
|
27
|
+
};
|
|
28
|
+
point: {
|
|
29
|
+
mouseover: Handler<[any, any]>;
|
|
30
|
+
mouseout: Handler<[any, any]>;
|
|
31
|
+
click: Handler<[any, any]>;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface GameTreeEvents {
|
|
35
|
+
leftImage: {
|
|
36
|
+
click: Handler<[string]>;
|
|
37
|
+
};
|
|
38
|
+
rightImage: {
|
|
39
|
+
click: Handler<[string]>;
|
|
40
|
+
};
|
|
41
|
+
update: {
|
|
42
|
+
begin: Handler;
|
|
43
|
+
end: Handler;
|
|
44
|
+
};
|
|
45
|
+
point: {
|
|
46
|
+
mousemove: Handler<[any, any]>;
|
|
47
|
+
mouseout: Handler<[any, any]>;
|
|
48
|
+
click: Handler<[any, any]>;
|
|
49
|
+
};
|
|
50
|
+
node: {
|
|
51
|
+
mousemove: Handler<[any, number]>;
|
|
52
|
+
mouseout: Handler<[any, number]>;
|
|
53
|
+
click: Handler<[any, number]>;
|
|
54
|
+
};
|
|
55
|
+
score: {
|
|
56
|
+
mousemove: Handler<[any, number]>;
|
|
57
|
+
mouseout: Handler<[any, number]>;
|
|
58
|
+
click: Handler<[any, number]>;
|
|
59
|
+
};
|
|
60
|
+
label: {
|
|
61
|
+
mousemove: Handler<[any, any]>;
|
|
62
|
+
mouseout: Handler<[any, any]>;
|
|
63
|
+
click: Handler<[any, any, Element]>;
|
|
64
|
+
};
|
|
65
|
+
selector: {
|
|
66
|
+
mousemove: Handler<[any, any]>;
|
|
67
|
+
mouseout: Handler<[any, any]>;
|
|
68
|
+
click: Handler<[any, any, Element]>;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export interface MomentumChartEvents {
|
|
72
|
+
score: {
|
|
73
|
+
click: Handler<[any]>;
|
|
74
|
+
};
|
|
75
|
+
leftImage: {
|
|
76
|
+
click: Handler<[string]>;
|
|
77
|
+
};
|
|
78
|
+
rightImage: {
|
|
79
|
+
click: Handler<[string]>;
|
|
80
|
+
};
|
|
81
|
+
update: {
|
|
82
|
+
begin: Handler;
|
|
83
|
+
end: Handler;
|
|
84
|
+
};
|
|
85
|
+
point: {
|
|
86
|
+
mouseover: Handler<[any, any]>;
|
|
87
|
+
mouseout: Handler<[any, any]>;
|
|
88
|
+
click: Handler<[any, any]>;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
export {};
|
|
92
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/visualizations/types/events.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,CAAC,IAAI,SAAS,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;AAEzE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,GAAG,EAAE,OAAO,CAAA;KAAE,CAAC;I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,EAAE,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC;KACrC,CAAC;CACH;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA;KAAE,CAAC;IACjC,SAAS,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;KAAE,CAAC;IACxC,UAAU,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;KAAE,CAAC;IACzC,MAAM,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,GAAG,EAAE,OAAO,CAAA;KAAE,CAAC;IACzC,KAAK,EAAE;QAAE,SAAS,EAAE,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QAAC,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAA;KAAE,CAAC;CACtG"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for visualization data structures
|
|
3
|
+
* Based on Universal Match Object (UMO) data model
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Point data structure from UMO
|
|
7
|
+
*/
|
|
8
|
+
export interface Point {
|
|
9
|
+
index: number;
|
|
10
|
+
game: number;
|
|
11
|
+
set: number;
|
|
12
|
+
server: 0 | 1;
|
|
13
|
+
winner: 0 | 1;
|
|
14
|
+
notation?: string;
|
|
15
|
+
rally?: string;
|
|
16
|
+
rallyLength?: number;
|
|
17
|
+
result: string;
|
|
18
|
+
score?: string;
|
|
19
|
+
points?: [number, number];
|
|
20
|
+
tiebreak?: boolean;
|
|
21
|
+
isBreakpoint?: boolean | number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Episode structure from UMO history
|
|
25
|
+
*/
|
|
26
|
+
export interface Episode {
|
|
27
|
+
point: Point;
|
|
28
|
+
game: {
|
|
29
|
+
index: number;
|
|
30
|
+
complete: boolean;
|
|
31
|
+
games: [number, number];
|
|
32
|
+
};
|
|
33
|
+
set: {
|
|
34
|
+
index: number;
|
|
35
|
+
complete: boolean;
|
|
36
|
+
};
|
|
37
|
+
needed: {
|
|
38
|
+
pointsToGame: [number, number];
|
|
39
|
+
pointsToSet: [number, number];
|
|
40
|
+
gamesToSet: [number, number];
|
|
41
|
+
isBreakpoint?: boolean;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Game group structure (from groupGames utility)
|
|
46
|
+
*/
|
|
47
|
+
export interface GameGroup {
|
|
48
|
+
points: Point[];
|
|
49
|
+
index: number;
|
|
50
|
+
set: number;
|
|
51
|
+
score: [number, number];
|
|
52
|
+
complete: boolean;
|
|
53
|
+
winner?: 0 | 1;
|
|
54
|
+
lastGame?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Set structure for ptsChart
|
|
58
|
+
*/
|
|
59
|
+
export interface SetData {
|
|
60
|
+
points: Episode[];
|
|
61
|
+
setNumber: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Player metadata
|
|
65
|
+
*/
|
|
66
|
+
export interface Player {
|
|
67
|
+
index: 0 | 1;
|
|
68
|
+
firstName: string;
|
|
69
|
+
lastName: string;
|
|
70
|
+
name?: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Match metadata
|
|
74
|
+
*/
|
|
75
|
+
export interface MatchMetadata {
|
|
76
|
+
players: Player[];
|
|
77
|
+
matchUpFormat?: string;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../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CAAC;IACZ,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Array utilities
|
|
3
|
+
*
|
|
4
|
+
* Extracted from coronaChart.ts — helpers for slicing and indexing arrays.
|
|
5
|
+
*/
|
|
6
|
+
/** Sum all values in a numeric array */
|
|
7
|
+
export declare function sum(arr: number[]): number;
|
|
8
|
+
/**
|
|
9
|
+
* Create ranges from a list of indices.
|
|
10
|
+
* Each range spans [indices[i], indices[i+1]], with the last range
|
|
11
|
+
* extending to the end of someArray.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createRanges(indices: number[], someArray: number[]): number[][];
|
|
14
|
+
/** Slice data into sub-arrays based on index ranges */
|
|
15
|
+
export declare function sliceData(ranges: number[][], data: number[]): number[][];
|
|
16
|
+
/** Find all indices of zero values in a data array */
|
|
17
|
+
export declare function indicesOf(_something: number, data: number[]): number[];
|
|
18
|
+
//# sourceMappingURL=arrays.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrays.d.ts","sourceRoot":"","sources":["../../../src/visualizations/utils/arrays.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,wCAAwC;AACxC,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAEzC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,CAQ/E;AAED,uDAAuD;AACvD,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,CAOxE;AAED,sDAAsD;AACtD,wBAAgB,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAUtE"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color manipulation utilities
|
|
3
|
+
*
|
|
4
|
+
* Extracted from gameTree.ts — used for gradient calculations
|
|
5
|
+
* in game tree node coloring.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Shade a hex color by a percentage.
|
|
9
|
+
* Positive percent lightens, negative darkens.
|
|
10
|
+
*/
|
|
11
|
+
export declare function shadeColor2(color: string, percent: number): string;
|
|
12
|
+
/**
|
|
13
|
+
* Shade an RGB color string by a percentage.
|
|
14
|
+
*/
|
|
15
|
+
export declare function shadeRGBColor(color: string, percent: number): string;
|
|
16
|
+
/**
|
|
17
|
+
* Blend two hex colors by a percentage.
|
|
18
|
+
*/
|
|
19
|
+
export declare function blendColors(c0: string, c1: string, p: number): string;
|
|
20
|
+
/**
|
|
21
|
+
* Blend two RGB color strings by a percentage.
|
|
22
|
+
*/
|
|
23
|
+
export declare function blendRGBColors(c0: string, c1: string, p: number): string;
|
|
24
|
+
/**
|
|
25
|
+
* Auto-detect color format (hex vs RGB) and shade accordingly.
|
|
26
|
+
*/
|
|
27
|
+
export declare function colorShade(color: string, percent: number): string;
|
|
28
|
+
/**
|
|
29
|
+
* Auto-detect color format and blend accordingly.
|
|
30
|
+
*/
|
|
31
|
+
export declare function colorBlend(color1: string, color2: string, percent: number): string;
|
|
32
|
+
/**
|
|
33
|
+
* Convert a named CSS color to hex using a temporary DOM element.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getHexColor(colorStr: string): string | false;
|
|
36
|
+
//# sourceMappingURL=colorUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorUtils.d.ts","sourceRoot":"","sources":["../../../src/visualizations/utils/colorUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAkBlE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAgBpE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAoBrE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAexE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAGjE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAGlF;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,CAU5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateId.d.ts","sourceRoot":"","sources":["../../../src/visualizations/utils/generateId.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,QAAO,MAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyWalk.d.ts","sourceRoot":"","sources":["../../../src/visualizations/utils/keyWalk.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,YAAY,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,QAe5D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Math utilities
|
|
3
|
+
*
|
|
4
|
+
* Extracted from gameTree.ts — generic array min/max helpers.
|
|
5
|
+
*/
|
|
6
|
+
/** Apply Math.max to an array */
|
|
7
|
+
export declare function applyMax(arr: number[]): number;
|
|
8
|
+
/** Apply Math.min to an array */
|
|
9
|
+
export declare function applyMin(arr: number[]): number;
|
|
10
|
+
//# sourceMappingURL=math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../src/visualizations/utils/math.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,iCAAiC;AACjC,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAE9C;AAED,iCAAiC;AACjC,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAE9C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Development Tools for Debugging UMO v4 Data
|
|
3
|
+
*
|
|
4
|
+
* Follows the pattern from src/services/helpers/setDev.ts
|
|
5
|
+
* Sets window['dev'] with data for browser console inspection
|
|
6
|
+
*/
|
|
7
|
+
export interface StandaloneDevData {
|
|
8
|
+
umo: any;
|
|
9
|
+
data: any;
|
|
10
|
+
points: any[];
|
|
11
|
+
episodes?: any[];
|
|
12
|
+
vizPoints?: any[];
|
|
13
|
+
match?: any;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Set window.dev following the pattern from main app
|
|
17
|
+
* Call this in story render functions
|
|
18
|
+
*/
|
|
19
|
+
declare global {
|
|
20
|
+
interface Window {
|
|
21
|
+
dev?: StandaloneDevData;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare function setDev(data?: Partial<StandaloneDevData>): void;
|
|
25
|
+
/**
|
|
26
|
+
* Update specific dev data properties
|
|
27
|
+
*/
|
|
28
|
+
export declare function updateDevData(data: Partial<StandaloneDevData>): void;
|
|
29
|
+
//# sourceMappingURL=setDev.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setDev.d.ts","sourceRoot":"","sources":["../../../src/visualizations/utils/setDev.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAUD;;;GAGG;AAGH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,GAAG,CAAC,EAAE,iBAAiB,CAAC;KACzB;CACF;AAED,wBAAgB,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,QASvD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,iBAAiB,CAAC,QAM7D"}
|
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@courthive/scoring-visualizations",
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Standalone scoring visualizations for tennis match data — episode transforms, D3 charts (GameTree, Momentum, PTS, GameFish, Corona)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/scoring-visualizations.es.js",
|
|
7
|
+
"module": "dist/scoring-visualizations.es.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/scoring-visualizations.es.js",
|
|
13
|
+
"require": "./dist/scoring-visualizations.umd.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "vite build",
|
|
21
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"test:watch": "vitest",
|
|
24
|
+
"lint": "eslint src --ext .ts",
|
|
25
|
+
"storybook": "storybook dev -p 6006",
|
|
26
|
+
"build-storybook": "storybook build",
|
|
27
|
+
"prerelease": "pnpm lint && pnpm test && pnpm build && pnpm build-storybook",
|
|
28
|
+
"release": "pnpm prerelease && pnpm version"
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+ssh://git@github.com/CourtHive/scoringVisualizations.git"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"tennis",
|
|
36
|
+
"scoring",
|
|
37
|
+
"visualizations",
|
|
38
|
+
"d3",
|
|
39
|
+
"game-tree",
|
|
40
|
+
"momentum"
|
|
41
|
+
],
|
|
42
|
+
"packageManager": "pnpm@10.33.2",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"d3": "^7.9.0",
|
|
46
|
+
"tippy.js": "^6.3.7",
|
|
47
|
+
"tods-competition-factory": ">=3.4.1"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@eslint/js": "^10.0.1",
|
|
51
|
+
"@storybook/addon-docs": "^10.2.17",
|
|
52
|
+
"@storybook/addon-links": "^10.2.17",
|
|
53
|
+
"@storybook/html-vite": "^10.2.17",
|
|
54
|
+
"@types/d3": "^7.4.3",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^8.58.0",
|
|
56
|
+
"@typescript-eslint/parser": "^8.58.0",
|
|
57
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
58
|
+
"eslint": "^10.1.0",
|
|
59
|
+
"eslint-plugin-sonarjs": "^4.0.2",
|
|
60
|
+
"globals": "^17.3.0",
|
|
61
|
+
"storybook": "^10.2.17",
|
|
62
|
+
"typescript": "^6.0.2",
|
|
63
|
+
"vite": "^8.0.0",
|
|
64
|
+
"vite-plugin-dts": "^5.0.0",
|
|
65
|
+
"vitest": "^4.1.2"
|
|
66
|
+
},
|
|
67
|
+
"peerDependencies": {
|
|
68
|
+
"tods-competition-factory": ">=3.4.1"
|
|
69
|
+
},
|
|
70
|
+
"pnpm": {
|
|
71
|
+
"overrides": {
|
|
72
|
+
"tods-competition-factory": "link:../factory"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|