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

StepCurvedPathOptions

Defined in: packages/sigma/src/rendering/edges/paths/stepCurved.ts:17

Options for step curved path creation.

Properties

cornerRadius?

optional cornerRadius?: number

Defined in: packages/sigma/src/rendering/edges/paths/stepCurved.ts:48

Corner radius as fraction of the shortest segment. Clamped to avoid overlapping corners. Default: 0.4


offset?

optional offset?: number

Defined in: packages/sigma/src/rendering/edges/paths/stepCurved.ts:41

Position of the middle segment as ratio [0-1]. 0 = at source, 0.5 = centered, 1 = at target. Default: 0.5


orientation?

optional orientation?: number | "horizontal" | "vertical" | "automatic"

Defined in: packages/sigma/src/rendering/edges/paths/stepCurved.ts:26

Path orientation preference.

  • “horizontal”: Always go horizontal first (H→V→H)
  • “vertical”: Always go vertical first (V→H→V)
  • “automatic”: Choose based on which delta is larger (abs(dx) vs abs(dy))
  • number: Fixed angle in radians for the first/last segments Default: “automatic”

rotateWithCamera?

optional rotateWithCamera?: boolean

Defined in: packages/sigma/src/rendering/edges/paths/stepCurved.ts:34

Whether edges rotate with camera or stay screen-aligned.

  • false: Edges stay horizontal/vertical on screen
  • true: Edges rotate with the graph (world-aligned) Default: false