Skip to content

feat(visualizer): use bezier edges instead of smoothstep - #58

Open
sankalpmukim wants to merge 1 commit into
rphlmr:mainfrom
sankalpmukim:feat/bezier-edges
Open

sankalpmukim wants to merge 1 commit into
rphlmr:mainfrom
sankalpmukim:feat/bezier-edges

Conversation

@sankalpmukim

Copy link
Copy Markdown

Problem

The visualizer currently uses smoothstep edges, which produce straight rectangular paths between nodes. In schemas with many foreign keys or relations, multiple edges overlap heavily, making it very difficult to visually trace individual connections between tables and columns.

Solution

Switch all edge types from smoothstep to bezier in packages/visualizer/src/compute.ts. Bezier edges use cubic bezier curves that arc between nodes, naturally separating overlapping connections and making the diagram significantly more readable.

Changes

  • packages/visualizer/src/compute.ts: Changed edge type: "smoothstep" to type: "bezier" for both foreign key edges (edge-plain) and relation edges (edge-dashed) across all three dialects (postgresql, sqlite, mysql). No other behavior changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant