extremityArrow
extremityArrow(
options?):EdgeExtremity
Defined in: packages/sigma/src/rendering/edges/extremities/arrow.ts:46
Creates an arrow extremity (triangular arrow head).
The arrow is rendered as a triangle pointing in the direction of travel. Size is relative to edge thickness.
Parameters
options?
Arrow configuration
Returns
EdgeExtremity definition for arrow
Example
// Arrow with default settingsconst EdgeArrowProgram = createEdgeProgram({ paths: [pathLine()], extremities: [extremityNone(), extremityArrow()], layers: [layerPlain()],});
// Custom arrow with marginconst EdgeArrowMarginProgram = createEdgeProgram({ paths: [pathLine()], extremities: [extremityNone(), extremityArrow({ lengthRatio: 3, widthRatio: 2.5, margin: 5 })], layers: [layerPlain()],});