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

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).

Parameters

data

labelVisibility?

string

visibility?

string

Returns

boolean