Connections
Connections link nodes together with arrows. Draph supports smart routing, labels, and multiple line styles.
Creating Connections
Section titled “Creating Connections”Method 1: Drag from Connection Points
Section titled “Method 1: Drag from Connection Points”- Switch to Select mode (
V) - Hover over a node - connection points appear (small circles on each edge)
- Click and drag from a connection point
- Drop on another node’s connection point
Method 2: Quick Connect (New Node)
Section titled “Method 2: Quick Connect (New Node)”- Drag from a connection point to empty canvas space
- A picker appears with node type options
- Click a shape - the new node is created and connected
Connection Properties
Section titled “Connection Properties”| Property | Type | Description |
|---|---|---|
id | string | Unique identifier |
from | string | Source node ID |
to | string | Target node ID |
fromSide | string | Source edge: top, right, bottom, left |
toSide | string | Target edge |
label | string | Text label on the connection |
color | hex | Line color |
lineStyle | string | solid or dashed |
Line Routing
Section titled “Line Routing”Rounded (Default)
Section titled “Rounded (Default)”Connections curve smoothly around corners. Best for most diagrams.
Toggle in the top toolbar or set globally.
Straight
Section titled “Straight”Direct point-to-point connections with sharp corners.
Styling Connections
Section titled “Styling Connections”Select a connection to see its toolbar:
Options:
- Color - Line color from palette
- Solid/Dashed - Line style toggle
- Delete - Remove connection
Labels
Section titled “Labels”Add labels to connections for flow descriptions, conditions, etc.
Adding a Label
Section titled “Adding a Label”- Select the connection
- Double-click or use the label field in the toolbar
- Type your label text
Label Positioning
Section titled “Label Positioning”Labels appear at the midpoint of the connection. For decision flows, common labels include:
Yes/NoTrue/FalseSuccess/Failure
Sequence Diagram Messages
Section titled “Sequence Diagram Messages”For sequence diagrams, connections become horizontal messages between lifelines.
Message Properties
Section titled “Message Properties”| Property | Type | Description |
|---|---|---|
isSequenceMessage | boolean | Render as horizontal message |
messageY | number | Y position of the message line |
index | number | Message order (vertical positioning) |
arrow | string | Arrow style |
Arrow Styles
Section titled “Arrow Styles”| Syntax | Description |
|---|---|
->> | Solid arrow, filled head (sync) |
-->> | Dashed arrow, filled head (response) |
-) | Solid arrow, open head (async) |
--) | Dashed arrow, open head (async response) |
- Multi-point connections: Connections automatically route around nodes
- Reconnect: Drag a connection endpoint to move it to a different node
- Parallel connections: Multiple connections between the same nodes are supported
- Self-reference: Connect a node to itself for loops/recursion