You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(library): step-route crow's-foot ER edges like class diagrams
Switch the crow's-foot relationship edge from straight to the class
diagram's step (orthogonal) routing by reusing useStepPathEdge and
StepEdgeBody — bringing bend points, midpoint dragging and reconnection
for free, and removing the bespoke BaseEdge/overlay/endpoint-marker
duplication.
deriveErCfEdgeRender now orients each crow's-foot marker along the
path's end segment (via getPathStartInfo/getPathEndInfo) instead of the
source→target vector, so the markers stay attached and correctly angled
when the edge bends. Falls back to the straight line before first layout.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/entity-relationship-diagram.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,4 @@
6
6
Add two first-class **Entity-Relationship diagram** types, covering both notations taught and used in practice:
7
7
8
8
-**Entity-Relationship (Chen):** strong and weak entities (double border), regular and identifying relationships (diamond / double diamond), and attributes as ellipses with key (underline), partial-key (dashed underline), multivalued (double ellipse) and derived (dashed ellipse) decorations. Entity↔relationship connectors carry a free-text cardinality label with quick presets for both Chen ratio (`1`/`N`/`M`) and `(min,max)`, plus a participation toggle (total participation draws a double line). The editor only lets you draw structurally valid connections and picks the right connector vs. link edge automatically, including on reconnection.
9
-
-**Entity-Relationship (Crow's Foot):** the Mermaid/IE-style notation — entity tables whose columns are listed as rows, related by straight lines with crow's-foot cardinality markers at each end (zero/one/many) and solid (identifying) or dashed (non-identifying) lines.
9
+
-**Entity-Relationship (Crow's Foot):** the Mermaid/IE-style notation — entity tables whose columns are listed as rows, related by step-routed lines (the same orthogonal routing, bend points and midpoint dragging as class edges) with crow's-foot cardinality markers at each end (zero/one/many) and solid (identifying) or dashed (non-identifying) lines.
0 commit comments