Inserts space within sortedEvents. It does this by shifting events forward.
sortedEvents
If start overlaps with existing item(s), overlappingPolicy is used:
start
overlappingPolicy
length
When considering overlap, both end is exclusive and start are considered exclusive.
Eg, if we have the event { start: 5, end: 10 }.
{ start: 5, end: 10 }
ignore
stretch
Inserts space within
sortedEvents. It does this by shifting events forward.If
startoverlaps with existing item(s),overlappingPolicyis used:length.When considering overlap, both end is exclusive and start are considered exclusive.
Eg, if we have the event
{ start: 5, end: 10 }.ignore); // Would not be considered overlapping, but event would be shifted to { start: 6, end: 11 }ignore); // Would not be considered overlapping, event would remain { start: 5, end: 10 }stretch); // Would be considered overlapping, event shifted to { start: 6, end: 11 }stretch); // Would be considered overlapping, event would be stretched to { start: 5, end: 11 }