Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

createEdgeProgram

createEdgeProgram<N, E, G>(gl, pickingBuffer, renderer, options, antialias, nodeShapes, nodeLayers): EdgeProgramBundle<N, E, G>

Defined in: packages/sigma/src/rendering/edges/factory.ts:85

Builds an edge program suite from paths, extremities, and layers. The suite is a flat bundle: the edge program, its frame pass, and a factory for the matching label and label-background (ribbon) programs.

N extends Attributes = Attributes

E extends Attributes = Attributes

G extends Attributes = Attributes

WebGL2RenderingContext

WebGLFramebuffer | null

Sigma<N, E, G>

EdgeProgramOptions

boolean

SDFShape[]

FragmentLayer[]

EdgeProgramBundle<N, E, G>

A bundle { edgeProgram, createLabelPrograms, framePass }