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
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
Returns
LabelProgram<string, N, E, G, LabelDisplayData>