This commit is contained in:
Janus C. H. Knudsen 2025-10-15 00:58:29 +02:00
parent bf4b9b5064
commit b3b930c1f9
6 changed files with 21 additions and 19 deletions

View file

@ -19,11 +19,11 @@ export class NavigationManager {
private targetWeek: Date;
private animationQueue: number = 0;
constructor(eventBus: IEventBus, eventRenderer: EventRenderingService) {
constructor(eventBus: IEventBus, eventRenderer: EventRenderingService, gridRenderer: GridRenderer) {
this.eventBus = eventBus;
this.dateService = new DateService('Europe/Copenhagen');
this.navigationRenderer = new NavigationRenderer(eventBus, eventRenderer);
this.gridRenderer = new GridRenderer();
this.gridRenderer = gridRenderer;
this.currentWeek = this.getISOWeekStart(new Date());
this.targetWeek = new Date(this.currentWeek);
this.init();