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

@ -21,13 +21,10 @@ export class EventRenderingService {
private dragMouseLeaveHeaderListener: ((event: Event) => void) | null = null;
constructor(eventBus: IEventBus, eventManager: EventManager) {
constructor(eventBus: IEventBus, eventManager: EventManager, strategy: EventRendererStrategy) {
this.eventBus = eventBus;
this.eventManager = eventManager;
// Cache strategy at initialization
const calendarType = calendarConfig.getCalendarMode();
this.strategy = CalendarTypeFactory.getEventRenderer(calendarType);
this.strategy = strategy;
// Initialize DateService
const timezone = calendarConfig.getTimezone?.();