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

NodeLabelFramePass

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

Constructors

Constructor

new NodeLabelFramePass(gl, options): NodeLabelFramePass

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

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:151

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:231

Returns

void


run()

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

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

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

Returns

void