Skip to content

@graphty/graphty-element / session / StyleContribution

Interface: StyleContribution ​

Defined in: graphty-element/src/session/styles/explain.ts:54

One layer's share of what an element is painted.

Properties ​

layerId ​

readonly layerId: string

Defined in: graphty-element/src/session/styles/explain.ts:56

The layer.


name ​

readonly name: string

Defined in: graphty-element/src/session/styles/explain.ts:58

What it is called, so a list reads without a second lookup.


properties ​

readonly properties: readonly Channel[]

Defined in: graphty-element/src/session/styles/explain.ts:60

The channels it painted on this element, in the order it painted them.


values ​

readonly values: Readonly<Record<string, unknown>>

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

What it painted each of them. A later layer may have painted over any of these.