Skip to content

NodeLabelFramePass

Defined in: packages/sigma/src/rendering/nodes/labels/frame-pass.ts:163

Constructors

Constructor

new NodeLabelFramePass(gl, options): NodeLabelFramePass

Defined in: packages/sigma/src/rendering/nodes/labels/frame-pass.ts:177

Parameters

gl

WebGL2RenderingContext

options

NodeLabelFramePassOptions

Returns

NodeLabelFramePass

Properties

FLOATS_PER_POINT

readonly static FLOATS_PER_POINT: 3 = 3

Defined in: packages/sigma/src/rendering/nodes/labels/frame-pass.ts:175

Floats per point in the input buffer: nodeIndex, positionMode, labelAngle.

Methods

kill()

kill(): void

Defined in: packages/sigma/src/rendering/nodes/labels/frame-pass.ts:274

Returns

void


run()

run(pointData, count, frameTexture, params, attributeTexture): void

Defined in: packages/sigma/src/rendering/nodes/labels/frame-pass.ts:229

Writes the normalized edge distance into frameTexture for every label in pointData (an interleaved [nodeIndex, positionMode, labelAngle] array of count points). The per-node rotation alignment is read from the node-data texture (already bound). Leaves the framebuffer/viewport for the caller to restore (the post-offscreen reset).

Parameters

pointData

Float32Array

count

number

frameTexture

FrameTexture

params

RenderParams

attributeTexture

ItemAttributeTexture | null

Returns

void