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

pathCurvedS

pathCurvedS(options?): EdgePath

Defined in: packages/sigma/src/rendering/edges/paths/curvedS.ts:76

Creates an S-curve edge path using cubic Bézier.

The path is a cubic Bézier curve with control points positioned to create smooth S-shaped transitions similar to step paths but without sharp corners.

Parameters

options?

CurvedSPathOptions

Path configuration

Returns

EdgePath

EdgePath definition for S-curve paths

Example

const EdgeCurvedSProgram = createEdgeProgram({
paths: [pathCurvedS({ curveOffset: 0.4 })],
extremities: [extremityNone(), extremityArrow()],
layers: [layerPlain()],
});