Improves all-day event layout calculation
Refactors all-day event rendering to use a layout engine for overlap detection and positioning, ensuring events are placed in available rows and columns. Removes deprecated method and adds unit tests.
This commit is contained in:
parent
274753936e
commit
a624394ffb
11 changed files with 2898 additions and 145 deletions
13
test/setup.ts
Normal file
13
test/setup.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { beforeEach } from 'vitest';
|
||||
|
||||
// Global test setup
|
||||
beforeEach(() => {
|
||||
// Clear DOM before each test
|
||||
document.body.innerHTML = '';
|
||||
document.head.innerHTML = '';
|
||||
|
||||
// Reset any global state
|
||||
if (typeof window !== 'undefined') {
|
||||
// Clear any event listeners or global variables if needed
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue