@@ -6,6 +6,7 @@ import { Seg } from '../component/DateComponent'
/* Event-rendering methods for the DayGrid class
----------------------------------------------------------------------------------------------------------------------*/
+// "Simple" is bad a name. has nothing to do with SimpleDayGrid
export default abstract class SimpleDayGridEventRenderer extends FgEventRenderer {
@@ -6,6 +6,8 @@ import { EventDefHash, EventDef } from '../structs/event'
import { EventSourceHash } from '../structs/event-source'
import { mapHash } from '../util/object'
+// TODO: better called "EventSettings" or "EventConfig"
+
export interface UnscopedEventUiInput {
editable?: boolean
startEditable?: boolean
@@ -10,5 +10,5 @@ export interface EventInteractionState { // is this ever used alone?
}
export interface EventInteractionUiState extends EventInteractionState {
- eventUis: EventUiHash
+ eventUis: EventUiHash // for the MUTATED EVENTS!!!
@@ -105,7 +105,7 @@ function reduceEventDrag(currentDrag: EventInteractionUiState | null, action: Ac
mutatedEvents: newDrag.mutatedEvents,
isEvent: newDrag.isEvent,
origSeg: newDrag.origSeg,
- eventUis: eventUis
+ eventUis
case 'UNSET_EVENT_DRAG':