Improves event grid layout logic
Refines the event grid layout algorithm to more accurately identify conflicting events for stacking within the grid. Now uses an expanding search to find chains of conflicting events, ensuring that all events that should be grouped together are correctly identified.
This commit is contained in:
parent
06356df2a3
commit
b590467f60
3 changed files with 51 additions and 7 deletions
11
.workbench/scenarie9.html
Normal file
11
.workbench/scenarie9.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<swp-event-group class="cols-2 stack-level-0" data-stack-link="{"stackLevel":0}" style="top: 481px; margin-left: 0px; z-index: 100;"><div style="position: relative;"><swp-event data-event-id="S9A" data-title="Scenario 9: Event A" data-start="2025-10-09T10:00:00.000Z" data-end="2025-10-09T11:00:00.000Z" data-type="work" data-duration="60" style="position: absolute; top: 0px; height: 77px; left: 0px; right: 0px;">
|
||||
<swp-event-time data-duration="60">12:00 - 13:00</swp-event-time>
|
||||
<swp-event-title>Scenario 9: Event A</swp-event-title>
|
||||
</swp-event></div><div style="position: relative;"><swp-event data-event-id="S9B" data-title="Scenario 9: Event B" data-start="2025-10-09T10:30:00.000Z" data-end="2025-10-09T11:30:00.000Z" data-type="work" data-duration="60" style="position: absolute; top: 40px; height: 77px; left: 0px; right: 0px;">
|
||||
<swp-event-time data-duration="60">12:30 - 13:30</swp-event-time>
|
||||
<swp-event-title>Scenario 9: Event B</swp-event-title>
|
||||
</swp-event></div></swp-event-group>
|
||||
<swp-event data-event-id="S9C" data-title="Scenario 9: Event C" data-start="2025-10-09T11:15:00.000Z" data-end="2025-10-09T13:00:00.000Z" data-type="work" data-duration="105" data-stack-link="{"stackLevel":1}" style="position: absolute; top: 581px; height: 137px; left: 2px; right: 2px; margin-left: 15px; z-index: 101;">
|
||||
<swp-event-time data-duration="105">13:15 - 15:00</swp-event-time>
|
||||
<swp-event-title>Scenario 9: Event C</swp-event-title>
|
||||
</swp-event>
|
||||
Loading…
Add table
Add a link
Reference in a new issue