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

pathLine

pathLine(): EdgePath

Defined in: packages/sigma/src/rendering/edges/paths/line.ts:29

Creates a straight line edge path.

Line edges are the most efficient, rendered as a single quad (6 vertices). All path functions have closed-form solutions.

Returns

EdgePath

EdgePath definition for straight lines

Example

const EdgeLineProgram = createEdgeProgram({
paths: [pathLine()],
extremities: [extremityNone()],
layers: [layerPlain()],
});