Edge Types & Markers
All six built-in path algorithms of BlowEdgeType side by side - bezier, simple bezier, straight,
step, smooth step and routed - each with a different arrowhead set up from the edge's Marker*
properties. The toolbar picks the type of the edges you draw yourself.
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
- Compare the six pairs: each edge is labelled with its path type and ends in a different arrowhead.
- Drag a target node above or behind its source and watch how each type re-plans its path - bezier bends out further the more it has to double back, step and smooth step turn at right angles, straight ignores the sides altogether.
- Drag the dashed "in the way" node about: the routed edge from K to L steers round it, and falls back to a smooth step when no way round is left.
- Pick a type under New edges, then drag from any node's right handle to another node's left handle: both the line you drag and the edge it leaves behind use that type.
How it works
Typeon aBlowEdgepicks its path; it defaults toBezier.SimpleBezierkeeps its control points on the handle axis for a flatter curve, andRoutedruns orthogonal segments round the nodes near it, using the canvas'sRouting(the built-in router when null).MarkerEnd(on by default) andMarkerStartdraw arrowheads;MarkerTypeisArrow(open) orArrowClosed. The straight edge turnsMarkerEndoff and the step edge turnsMarkerStarton.- An arrowhead takes the edge's own colour unless
MarkerColorsays otherwise;MarkerWidth(7, or 8 for a closed head) andMarkerHeightsize it - the smooth-step edge has a large red head. Animatedruns dashes along the smooth-step edge;Labeldraws the text at each path's middle.DefaultEdgeTypeis the type of edges the user creates andConnectionLineTypethe type of the line drawn while creating one; both follow the toolbar here. Neither changes edges that are already in the list.SourcePosition = RightandTargetPosition = Lefton the nodes move their built-in handles to the sides, so every pair reads left to right.