Refactor renderer interfaces and update type names
Renames renderer interfaces to use 'I' prefix for clarity Updates type references across related files Improves type consistency in rendering strategies
This commit is contained in:
parent
cda201301c
commit
1ae4f00f2b
7 changed files with 157 additions and 39 deletions
|
|
@ -2,7 +2,7 @@ import { EventBus } from '../core/EventBus';
|
|||
import { IEventBus, CalendarEvent, RenderContext } from '../types/CalendarTypes';
|
||||
import { CoreEvents } from '../constants/CoreEvents';
|
||||
import { EventManager } from '../managers/EventManager';
|
||||
import { EventRendererStrategy } from './EventRenderer';
|
||||
import { IEventRenderer } from './EventRenderer';
|
||||
import { SwpEventElement } from '../elements/SwpEventElement';
|
||||
import { DragStartEventPayload, DragMoveEventPayload, DragEndEventPayload, DragMouseEnterHeaderEventPayload, DragMouseLeaveHeaderEventPayload, DragMouseEnterColumnEventPayload, DragColumnChangeEventPayload, HeaderReadyEventPayload, ResizeEndEventPayload } from '../types/EventTypes';
|
||||
import { DateService } from '../utils/DateService';
|
||||
|
|
@ -14,7 +14,7 @@ import { ColumnBounds } from '../utils/ColumnDetectionUtils';
|
|||
export class EventRenderingService {
|
||||
private eventBus: IEventBus;
|
||||
private eventManager: EventManager;
|
||||
private strategy: EventRendererStrategy;
|
||||
private strategy: IEventRenderer;
|
||||
private dateService: DateService;
|
||||
|
||||
private dragMouseLeaveHeaderListener: ((event: Event) => void) | null = null;
|
||||
|
|
@ -22,7 +22,7 @@ export class EventRenderingService {
|
|||
constructor(
|
||||
eventBus: IEventBus,
|
||||
eventManager: EventManager,
|
||||
strategy: EventRendererStrategy,
|
||||
strategy: IEventRenderer,
|
||||
dateService: DateService
|
||||
) {
|
||||
this.eventBus = eventBus;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue