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

createLabelProgram

createLabelProgram<N, E, G>(gl, pickingBuffer, renderer, options): LabelProgram<string, N, E, G, LabelDisplayData>

Defined in: packages/sigma/src/rendering/nodes/labels/factory.ts:77

Builds a node label program instance. The program renders text labels, positioning them from the shape-aware edge distance the frame-pass writes to the shared frame texture.

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

N extends Attributes = Attributes

E extends Attributes = Attributes

G extends Attributes = Attributes

WebGL2RenderingContext

WebGLFramebuffer | null

Sigma<N, E, G>

CreateLabelProgramOptions

LabelProgram<string, N, E, G, LabelDisplayData>