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

generateLabelVertexShader

generateLabelVertexShader(options): string

Defined in: packages/sigma/src/rendering/nodes/labels/generator.ts:48

Generates the vertex shader for shape-aware label positioning.

Coordinate Systems

  • Graph space: Node positions (a_anchorPosition)
  • Clip space: After u_matrix transform, range [-1, 1]
  • Screen space: Pixel positions, Y-down
  • SDF space: Shape coordinates, Y-up, normalized to size 1.0

Parameters

options

LabelShaderOptions

Returns

string