Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

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?

CurvedPathOptions

Path configuration

Returns

EdgePath

EdgePath definition for curved edges

Example

const EdgeCurvedProgram = createEdgeProgram({
paths: [pathCurved({ segments: 16 })],
extremities: [extremityNone(), extremityArrow()],
layers: [layerPlain()],
});