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

hasForcedLabel

hasForcedLabel(data): boolean

Defined in: packages/sigma/src/utils/display-data.ts:9

Predicates over node/edge display data.

These check the resolved visibility/labelVisibility/backdropVisibility fields produced by the styles pipeline. They tolerate missing fields so they can be called on partial shapes (e.g. before defaults are merged).

string

string

boolean