Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

LabelAttachmentContext

Defined in: packages/sigma/src/primitives/types.ts:126

A label attachment renderer receives context about the node and returns a drawable image source (canvas, image, etc.) or null to skip.

attributes: Record<string, unknown>

Defined in: packages/sigma/src/primitives/types.ts:128


labelHeight: number

Defined in: packages/sigma/src/primitives/types.ts:131


labelWidth: number

Defined in: packages/sigma/src/primitives/types.ts:130


node: string

Defined in: packages/sigma/src/primitives/types.ts:127


pixelRatio: number

Defined in: packages/sigma/src/primitives/types.ts:129