Skip to content

@graphty/graphty-element / session / RowSpec

Interface: RowSpec ​

Defined in: graphty-element/src/session/styles/rows.ts:45

A row as styles.addRow takes it: a layer specification whose target may be "both".

Extends ​

  • Omit<LayerSpec, "target" | "set" | "encode" | "row">

Properties ​

enabled? ​

optional enabled?: boolean

Defined in: graphty-element/src/catalog/types.ts:1139

Inherited from ​

LayerSpec.enabled


encode? ​

readonly optional encode?: Readonly<Record<string, Binding | undefined>>

Defined in: graphty-element/src/session/styles/rows.ts:51

Its bindings, routed the same way.


fileStyle? ​

optional fileStyle?: FileStyleOrigin

Defined in: graphty-element/src/catalog/types.ts:1146

Where a layer made from a file's styles came from: the element's facts about it, set when a load makes the layer, saved and restored with it, and read with fileStyleOf(layer). Absent on every other layer. An update that does not name it keeps it.

Inherited from ​

LayerSpec.fileStyle


kind? ​

optional kind?: LayerKind

Defined in: graphty-element/src/catalog/types.ts:1134

Inherited from ​

LayerSpec.kind


name ​

name: string

Defined in: graphty-element/src/catalog/types.ts:1132

Inherited from ​

LayerSpec.name


selector ​

selector: Selector

Defined in: graphty-element/src/catalog/types.ts:1135

Inherited from ​

LayerSpec.selector


set? ​

readonly optional set?: Readonly<Record<string, ChannelValue | undefined>>

Defined in: graphty-element/src/session/styles/rows.ts:49

Its literal values, routed to the parts whose kind has each channel.


source? ​

optional source?: LayerSource

Defined in: graphty-element/src/catalog/types.ts:1138

Inherited from ​

LayerSpec.source


target ​

readonly target: RowTarget

Defined in: graphty-element/src/session/styles/rows.ts:47

What it paints. "both" adds a node part and an edge part sharing the selector.


unmatched? ​

optional unmatched?: readonly LayerUnmatchedGroup[]

Defined in: graphty-element/src/catalog/types.ts:1157

What the last re-run of a run this layer reads could not match to its groups, as codes: see LayerUnmatchedGroup. Written by the element; absent when everything matched.

Inherited from ​

LayerSpec.unmatched


userData? ​

optional userData?: Record<string, unknown>

Defined in: graphty-element/src/catalog/types.ts:1140

Inherited from ​

LayerSpec.userData