Skip to content

@graphty/graphty-element / session / ColorWrite

Interface: ColorWrite ​

Defined in: graphty-element/src/session/styles/colors.ts:17

One place a layer writes a colour.

Properties ​

channel ​

readonly channel: Channel

Defined in: graphty-element/src/session/styles/colors.ts:21

The channel it is written to.


layer ​

readonly layer: string

Defined in: graphty-element/src/session/styles/colors.ts:19

The layer that writes it.


value? ​

readonly optional value?: string | number | boolean

Defined in: graphty-element/src/session/styles/colors.ts:26

The value whose value-table (map) entry it is, as the table spells it, which is what styles.setValueEntry takes back; absent for a fixed value.