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

createEdgeLabelProgram

createEdgeLabelProgram<N, E, G>(gl, pickingBuffer, renderer, options): EdgeLabelProgram<N, E, G>

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

Builds an edge label program instance for a specific path type. The program renders text labels along edge paths using an SDF (Signed Distance Field) atlas for crisp text at any zoom level.

createEdgeProgram calls this internally and exposes the instance in its labelProgram field.

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>

options

CreateEdgeLabelProgramOptions

Returns

EdgeLabelProgram<N, E, G>