Add timeline death events

This commit is contained in:
dahyeon committed 2026-07-02 23:43:09 -07:00
1 parent d35843a8e2
commit df0e43d884
5 files changed
+528 -12

No files matched your search

+31
View File
@@ -2,6 +2,8 @@ import {
ADVANTAGE_EVENT_WEIGHTS,
FEATURE_SCHEMA_VERSION,
METRICS,
SUMMONERS_RIFT_MAP,
SUMMONERS_RIFT_MAP_ZONES,
VECTOR_DIMENSION,
type AnalysisRequestAcceptedDto,
type AnalysisJobStatusDto,
@@ -73,6 +75,35 @@ describe('shared feature registry', () => {
baron: 3,
});
});
it('defines shared Summoner Rift map zones for timeline-derived metrics', () => {
expect(SUMMONERS_RIFT_MAP_ZONES).toEqual([
'blueBase',
'redBase',
'topLane',
'middleLane',
'bottomLane',
'river',
'northWestJungle',
'northEastJungle',
'southWestJungle',
'southEastJungle',
'dragonPit',
'baronPit',
'unknown',
]);
expect(SUMMONERS_RIFT_MAP).toEqual({
coordinateMin: 0,
coordinateMax: 15_000,
laneAxisHalfWidth: 1_500,
riverBandHalfWidth: 1_500,
jungleMidline: 7_500,
baseRadius: 2_200,
objectivePitRadius: 2_500,
dragonPit: { x: 9_866, y: 4_414 },
baronPit: { x: 5_007, y: 10_471 },
});
});
});
describe('shared DTO contracts', () => {