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

Properties

baseFontSize

baseFontSize: number

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

Base font size in pixels


color

color: number

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

Packed RGBA color from floatColor()


curvature

curvature: number

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

Path curvature (for curved edges); used to update the attribute texture


edgeAttrIndex

edgeAttrIndex: number

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

Row index in the edge attribute texture (for curvature, etc.)


edgeIndex

edgeIndex: number

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

Row index in the edge data texture


id

id: number

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

Packed picking id from indexToColor()


margin

margin: number

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

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


padding

padding: number

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

Background padding in pixels


positionMode

positionMode: number

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

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


totalTextWidth

totalTextWidth: number

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

Label text width in atlas (glyph) units