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

EdgeLabelBackgroundData

Defined in: packages/sigma/src/rendering/edges/labels/background.ts:52

Properties

baseFontSize

baseFontSize: number

Defined in: packages/sigma/src/rendering/edges/labels/background.ts:56

Base font size in pixels


color

color: number

Defined in: packages/sigma/src/rendering/edges/labels/background.ts:66

Packed RGBA color from floatColor()


edgeAttributes

edgeAttributes: Record<string, unknown>

Defined in: packages/sigma/src/rendering/edges/labels/background.ts:70

Resolved edge display data — source for the path attributes packed into the attribute texture.


edgeIndex

edgeIndex: number

Defined in: packages/sigma/src/rendering/edges/labels/background.ts:54

Row index in the edge data texture


id

id: number

Defined in: packages/sigma/src/rendering/edges/labels/background.ts:68

Packed picking id from indexToColor()


margin

margin: number

Defined in: packages/sigma/src/rendering/edges/labels/background.ts:62

Label margin in pixels (gap between edge surface and label)


padding

padding: number

Defined in: packages/sigma/src/rendering/edges/labels/background.ts:64

Background padding in pixels


positionMode

positionMode: number

Defined in: packages/sigma/src/rendering/edges/labels/background.ts:60

0=over, 1=above, 2=below, 3=auto


totalTextWidth

totalTextWidth: number

Defined in: packages/sigma/src/rendering/edges/labels/background.ts:58

Label text width in atlas (glyph) units