Skip to content

@graphty/graphty-element / session / ValueCategory

Interface: ValueCategory ​

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

One value a categorical binding paints: its group of the layer's elements.

Properties ​

count ​

readonly count: number

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

How many of the layer's elements carry it.


entry? ​

readonly optional entry?: string | number

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

The binding's value-table entry for it, or undefined when it follows the palette.


hidden ​

readonly hidden: boolean

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

Whether the binding hides it (styles.setValueHidden).


name? ​

readonly optional name?: string

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

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

Since ​

3.26.0


value ​

readonly value: unknown

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

The value, spelled as the data spells it: the number 3, not the text "3".