fix(calcPath.js): improve connector pathing
- Added safety margin on tableWidth to switch connectors to the opposite side when overlapping.
- Added padding on tableWidth to ensure a minimum straight segment before the curve.
@lazuee is attempting to deploy a commit to the dottle's projects Team on Vercel.
A member of the Team first needs to authorize it.
I still can’t figure out how to stop the line path from passing through the table. What I want is for the path to go above or below the table whenever the tables are vertically aligned. As of now it just overlaps straight through the table.
Here’s a playground of the current calcPath function:
https://developer.mozilla.org/en-US/play?id=OjSZbqWhYIxGpWxaVp5xT6TQ3l%2BTauQyOl1495xzAckpbTwEVZmW%2FsrJFJdFGfR%2FRQ4sg73UvZRf2Z%2F%2B
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| drawdb | Preview | Comment | Aug 27, 2025 4:58pm |
I still can’t figure out how to stop the line path from passing through the table. What I want is for the path to go above or below the table whenever the tables are vertically aligned. As of now it just overlaps straight through the table.
Here’s a playground of the current calcPath function: https://developer.mozilla.org/en-US/play?id=OjSZbqWhYIxGpWxaVp5xT6TQ3l%2BTauQyOl1495xzAckpbTwEVZmW%2FsrJFJdFGfR%2FRQ4sg73UvZRf2Z%2F%2B
is this the case youre talking about? youd have to change the render order for this i guess. but im not sure if the effort for that is worth it
also looking at the current implemented version, we get cases like these
I want the line path to be drawn on both opposite sides whenever it horizontally overlaps with the top or bottom of a table, treating the table as an obstacle.
current implemented version