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.
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”Returns
Section titled “Returns”LabelProgram<string, N, E, G, LabelDisplayData>