-
-
Notifications
You must be signed in to change notification settings - Fork 7
#23 feat(timeline): implement dynamic item positioning and group height calculation #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…alculation add logic to calculate and assign dynamic top position for timeline items based on overlapping levels introduce dynamic height calculation for groups based on item levels update styles to support new layout behavior BREAKING CHANGE: timeline item positioning and group height logic have been restructured, requiring updates to custom styles or integrations relying on the previous implementation
@laurens94 It's still in draft, but you can test it. An ID is needed for vertical separation. I'm working to ensure that nothing else is required aside from the start and end. The rest of the implementation is not finished yet; there are more things to complete to reach 100%. I haven't tested all cases at this point. |
- Implemented logic for custom item heights using CSS variables. - Introduced dynamic resizing of items and groups based on window size and item configurations. - Updated caching mechanism for styles to incorporate item index. - Enhanced group height calculations to account for varying item levels and heights. - Modified styles to enforce maximum item height and improve layout flexibility.
@laurens94, it's finished. Can you review it and test it to see if it's okay? |
Signed-off-by: Lucas Botingnon <35458766+lucasbotingnon@users.noreply.github.com>
I'm sorry but the PR is a bit of a mess, I can't review it in it's current state. In any case, I tested around a bit and at first glance it seems to work. If you could make a PR with only the bare minimum of code additions / changes to support this feature, I can have a proper look at it! Let me know if you need any help! |
- Replaced redundant properties and logic in item and marker loops. - Improved overlap detection and removed unused functionality for cleaner structure. - Consolidated multiple style calculation functions to enhance readability and maintainability. - Removed dynamic row height and item comparison features for streamlined behavior.
…alculation - Simplified overlap handling for timeline items by consolidating logic into reusable functions. - Introduced caching for group overlap data to improve performance. - Refined group style calculations to dynamically account for overlapping levels and item heights.
Guys, what's timeline to publish this feature? |
@alandecastros @laurens94 I need to enhance the implementation here, as the current code in this PR only covers the range components. I can probably address this next week. (I completed the cleanup as Laurens suggested in his last comment.) |
Related Issue: #23
WIP