Edge Markers
Arrowheads are configured per edge: open or closed, at either end, in any colour and at any size. Edges asking for the same arrowhead share a single SVG definition, so a large graph declares one marker per style rather than one per edge.
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 four edges: an open arrow, a closed one, a closed red head on a grey line, and a blue line with a closed head at both ends.
- Move Size: every arrowhead grows or shrinks together, staying square.
- Pick a Default marker colour: every head without a colour of its own takes it - the blue line's two heads included - while the red head keeps its red.
- Click an edge: its line and every head that follows the line's colour turn the selection colour; a head with a colour of its own keeps it.
- Drag from Source's right-hand dot to any node's left-hand dot: the new edge gets an open arrow at the current size.
How it works
MarkerEnd(on by default) andMarkerStart(off) draw an arrowhead at the target and source end.MarkerTypeisBlowMarkerType.Arrow(open, the default) orArrowClosed(filled).- Without a
MarkerColora head takes its edge'sStroke;MarkerColorsets one of its own, here red on a grey line. DefaultMarkerColoron the canvas (null by default) colours every head that names noMarkerColor, ahead of the edge's stroke.MarkerWidthdefaults to 7 (8 for a closed head), andMarkerHeightfollows the width when left null; the slider sets the width of every edge.- SVG markers have to be declared up front, so the canvas declares one
<marker>for each distinct shape, colour and size in use, shared by every edge that asks for it.