Skip to content

@graphty/graphty-element / session / StyleSequence

Interface: StyleSequence ​

Defined in: graphty-element/src/session/styles/encoding.ts:2757

What a binding paints for each of a number of items taken in order: item i read as the value i. See StylesApi.sequence.

Since ​

3.30.0

Properties ​

channel ​

readonly channel: Channel

Defined in: graphty-element/src/session/styles/encoding.ts:2759

The channel it paints.


cue ​

readonly cue: { channel: Channel; values: readonly (EncodedValue | undefined)[]; } | null

Defined in: graphty-element/src/session/styles/encoding.ts:2767

The second cue an overflow policy steps through (overflow: "shape" on node.color gives node shapes, "pattern" on edge.color gives edge patterns), one per item; null when the binding cycles none.


palette ​

readonly palette: PaletteId | null

Defined in: graphty-element/src/session/styles/encoding.ts:2769

The palette painting a colour channel, "custom" for its own stops, null otherwise.


values ​

readonly values: readonly (EncodedValue | undefined)[]

Defined in: graphty-element/src/session/styles/encoding.ts:2761

What each item paints, first item first; undefined where the binding paints nothing.