Skip to content

@graphty/graphty-element / session / LayerGroup

Interface: LayerGroup ​

Defined in: graphty-element/src/session/styles/values.ts:71

One layer of several read as one group of a binding across them, item i being the i-th layer from the top: what styles.layerGroups answers. The same fields as a ValueGroup of a data value, so one group editor lists both.

Since ​

3.30.0

Extends ​

Properties ​

count ​

readonly count: number

Defined in: graphty-element/src/session/styles/values.ts:79

How many elements the layer matches.

Overrides ​

ValueGroup.count


entries ​

readonly entries: Readonly<Partial<Record<Channel, string | number>>>

Defined in: graphty-element/src/session/styles/values.ts:55

Each channel's value-table entry for it, for the channels that have one.

Inherited from ​

ValueGroup.entries


folded? ​

readonly optional folded?: true

Defined in: graphty-element/src/session/styles/values.ts:62

True when the group is folded into the layer's Other group (styles.setFoldBelow, or a colour palette that ran out under overflow: "other"), so it paints what Other paints. Folded groups come after the rest, largest first.

Since ​

3.27.0

Inherited from ​

ValueGroup.folded


hidden ​

readonly hidden: boolean

Defined in: graphty-element/src/session/styles/values.ts:81

Whether the layer or its row is hidden.

Overrides ​

ValueGroup.hidden


name ​

readonly name: string

Defined in: graphty-element/src/session/styles/values.ts:75

The name the layer list shows: its row's, else the layer's own.

Overrides ​

ValueGroup.name


paints ​

readonly paints: Readonly<Partial<Record<Channel, EncodedValue>>>

Defined in: graphty-element/src/session/styles/values.ts:83

What the binding paints this layer: its channel's value, and the overflow's second cue's.


row ​

readonly row: string

Defined in: graphty-element/src/session/styles/values.ts:77

The style row that holds the layer (styles.hideRow, styles.renameRow take it).


value ​

readonly value: string

Defined in: graphty-element/src/session/styles/values.ts:73

The layer's id: the group's value, and the key of its entry in the binding's map.

Overrides ​

ValueGroup.value