Skip to content

@graphty/graphty-element / catalog / labelLookChanges

Function: labelLookChanges() ​

labelLookChanges(style): keyof LabelStyle[]

Defined in: graphty-element/src/catalog/label-looks.ts:107

The fields a label style changes from the look it names.

A field counts when the style sets it and its value differs from the look's (the default look, when the style names none). look itself, enabled (the label's on/off switch), location, sizeMode, onTop and pickable (where it sits, what its size is measured in and how it behaves) are never changes. An empty list means the style is exactly its look.

Parameters ​

style ​

LabelStyle

A label style a layer writes.

Returns ​

keyof LabelStyle[]

The changed fields, in the style's own order.