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.
Type Parameters
Section titled “Type Parameters”N extends Attributes = Attributes
E extends Attributes = Attributes
G extends Attributes = Attributes
Parameters
Section titled “Parameters”WebGL2RenderingContext
pickingBuffer
Section titled “pickingBuffer”WebGLFramebuffer | null
renderer
Section titled “renderer”Sigma<N, E, G>
options
Section titled “options”antialias
Section titled “antialias”boolean
nodeShapes
Section titled “nodeShapes”SDFShape[]
nodeLayers
Section titled “nodeLayers”Returns
Section titled “Returns”EdgeProgramBundle<N, E, G>
A bundle { edgeProgram, createLabelPrograms, framePass }