pathCurved
pathCurved(
options?):EdgePath
Defined in: packages/sigma/src/rendering/edges/paths/curved.ts:40
Creates a simple curved edge path (single arc).
The curve is controlled by a single control point positioned perpendicular to the midpoint of the straight line between source and target. The curvature parameter controls how far this control point is from the midpoint.
Parameters
options?
Path configuration
Returns
EdgePath definition for curved edges
Example
const EdgeCurvedProgram = createEdgeProgram({ paths: [pathCurved({ segments: 16 })], extremities: [extremityNone(), extremityArrow()], layers: [layerPlain()],});