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

LabelDisplayData

Defined in: packages/sigma/src/types.ts:365

Display data for a label, computed during processing.

Properties

color

color: string

Defined in: packages/sigma/src/types.ts:375

Label color (CSS color string)


fontKey

fontKey: string

Defined in: packages/sigma/src/types.ts:395

Font key for multi-font support (references registered font in atlas)


forceLabel

forceLabel: boolean

Defined in: packages/sigma/src/types.ts:379

Force display even if culled by LabelGrid


hidden

hidden: boolean

Defined in: packages/sigma/src/types.ts:377

Whether the label is hidden


labelAngle

labelAngle: number

Defined in: packages/sigma/src/types.ts:397

Label rotation angle in radians


margin

margin: number

Defined in: packages/sigma/src/types.ts:393

Gap between node boundary and label (pixels)


nodeIndex

nodeIndex: number

Defined in: packages/sigma/src/types.ts:399

Node index in node data texture (for GPU-side lookup)


nodeSize

nodeSize: number

Defined in: packages/sigma/src/types.ts:391

Node size (for offset calculation)


parentKey

parentKey: string

Defined in: packages/sigma/src/types.ts:385

Reference to parent node/edge key


parentType

parentType: "node" | "edge"

Defined in: packages/sigma/src/types.ts:387

Parent type: ‘node’ or ‘edge’


position

position: LabelPosition

Defined in: packages/sigma/src/types.ts:389

Where label appears relative to node


size

size: number

Defined in: packages/sigma/src/types.ts:373

Font size in pixels


text

text: string

Defined in: packages/sigma/src/types.ts:367

The label text content


type

type: string

Defined in: packages/sigma/src/types.ts:381

Label type (for program selection)


x

x: number

Defined in: packages/sigma/src/types.ts:369

X position in graph coordinates (node center)


y

y: number

Defined in: packages/sigma/src/types.ts:371

Y position in graph coordinates (node center)


zIndex

zIndex: number

Defined in: packages/sigma/src/types.ts:383

Z-index for depth ordering