Skip to content

@graphty/graphty-element / session / ValueGroup

Interface: ValueGroup ​

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

One value of a category path with everything one layer paints it, across every channel: what styles.groups answers.

Since ​

3.26.0

Extended by ​

Properties ​

count ​

readonly count: number

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

How many of the layer's elements carry it.


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.


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


hidden ​

readonly hidden: boolean

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

Whether the layer hides it (styles.setValueHidden), which it does in every channel at once.


name? ​

readonly optional name?: string

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

The name a reader gave the value (session.data.setValueLabel), when it has one.


value ​

readonly value: unknown

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

The value, spelled as the data spells it.