Skip to content

Edge Types

One edge of each of the six path types, and a toolbar that styles the edges you draw: DefaultEdgeType sets the type of every edge the user creates and ConnectionLineType the line drawn meanwhile, while BlowDefaultEdgeOptions adds animation and arrowheads.

beziersimple bezierstraightstepsmooth steprouted
Source
A
In the way
B
Target
bit Blow

Try it

  • Read the six labelled edges: one of each type. The routed one, from Source to Target, goes round the node in its way.
  • Pick a type in New edges, then drag from a node's right-hand dot to another node's left-hand dot: the line follows the pointer in that type, and the edge it leaves is of that type too.
  • Connect A to B, so the edge has to double back, to see the types differ most; with Routed it keeps clear of In the way.
  • Tick Animated or untick Arrowhead before drawing: only the edges drawn after the change take it - the edges already there keep their own settings.
  • Click an edge and press Backspace or Delete to remove it and try again.

How it works

  • BlowEdgeType has six values: Bezier (the default), SimpleBezier, Straight, Step, SmoothStep and Routed. The edges in the list each set their own Type.
  • DefaultEdgeType (Bezier by default) is the type the canvas gives each edge the user creates; it only reaches new edges.
  • ConnectionLineType (Bezier by default) is the path of the line drawn while a connection is being made; this page keeps it in step with the select. A routed connection line is drawn as a smooth step, since it has no route yet.
  • DefaultEdgeOptions takes a BlowDefaultEdgeOptions applied to each new edge: Animated (off by default) and MarkerEnd (on by default) here. Its own Type, left null, falls back to DefaultEdgeType.
  • Routed asks the canvas's router for a path round the nodes near the edge, so In the way bends the Source-to-Target edge; with nothing in its way it is a plain orthogonal path.
An unhandled error has occurred. Reload 🗙