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

generateEdgeProgram

generateEdgeProgram<N, E, G>(gl, pickingBuffer, renderer, edgePrimitives?): GeneratedEdgeProgram<N, E, G>

Defined in: packages/sigma/src/primitives/parser.ts:331

Generates the full edge program suite from a primitives declaration. Wraps createEdgeProgram with primitive parsing and tacks on the declared graphic variables and the resolved path list.

Type Parameters

N

N extends Attributes = Attributes

E

E extends Attributes = Attributes

G

G extends Attributes = Attributes

Parameters

gl

WebGL2RenderingContext

pickingBuffer

WebGLFramebuffer | null

renderer

Sigma<N, E, G>

edgePrimitives?

EdgePrimitives

Returns

GeneratedEdgeProgram<N, E, G>