Skip to content

@graphty/graphty-element / index / HighlightSuggestion

Interface: HighlightSuggestion ​

Defined in: graphty-element/src/session/styles/derive.ts:64

Painting the elements a run chose, which is what styles.highlight takes.

Properties ​

as ​

readonly as: "highlight"

Defined in: graphty-element/src/session/styles/derive.ts:66

Which verb applies it.


channels ​

readonly channels: readonly Channel[]

Defined in: graphty-element/src/session/styles/derive.ts:74

The channels it would paint: the colour of each half the run chose.

A route publishes its membership on nodes and on edges, so it names both. Said here rather than left for the caller to work out, because whether a suggestion clashes with a layer somebody wrote by hand is a question about channels and nothing else.


spec ​

readonly spec: HighlightSpec

Defined in: graphty-element/src/session/styles/derive.ts:76

The highlight itself.