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.
Press Tab to move between the nodes and edges of the diagram.
Press Enter or Space to select it, Shift with Enter to add it to the selection, the arrow keys to move the selected nodes, Delete to remove them and Escape to clear the selection. Press C to start a connection from it.
Press Enter or Space to select it, Delete to remove it and Escape to clear the selection. Press C to move its end to another node.
bit BlowTry 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
BlowEdgeTypehas six values:Bezier(the default),SimpleBezier,Straight,Step,SmoothStepandRouted. The edges in the list each set their ownType.DefaultEdgeType(Bezierby default) is the type the canvas gives each edge the user creates; it only reaches new edges.ConnectionLineType(Bezierby 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.DefaultEdgeOptionstakes aBlowDefaultEdgeOptionsapplied to each new edge:Animated(off by default) andMarkerEnd(on by default) here. Its ownType, left null, falls back toDefaultEdgeType.Routedasks 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.