Skip to content

@graphty/graphty-element / session / SelectionDelta

Interface: SelectionDelta ​

Defined in: graphty-element/src/session/selection/SelectionApi.ts:88

What one mutation changed.

Properties ​

added ​

readonly added: readonly NodeId[]

Defined in: graphty-element/src/session/selection/SelectionApi.ts:95

The elements that joined the selection, nodes first and then edges.

Node ids and edge ids share one list because one type covers both: an edge id is a string and a node id is a string or a number.


cause ​

readonly cause: SelectionCause

Defined in: graphty-element/src/session/selection/SelectionApi.ts:120

Who asked.


edges ​

readonly edges: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:101

How many edges the selection holds now.


nodes ​

readonly nodes: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:99

How many nodes the selection holds now.


removed ​

readonly removed: readonly NodeId[]

Defined in: graphty-element/src/session/selection/SelectionApi.ts:97

The elements that left the selection, nodes first and then edges.


skipped? ​

readonly optional skipped?: number

Defined in: graphty-element/src/session/selection/SelectionApi.ts:118

For a { note } target: how many of the note's targets are not in the graph and so were not selected. Absent for every other target.


truncated ​

readonly truncated: boolean

Defined in: graphty-element/src/session/selection/SelectionApi.ts:103

Whether this mutation dropped elements it would otherwise have selected, to stay in cap.


unmatched? ​

readonly optional unmatched?: readonly string[]

Defined in: graphty-element/src/session/selection/SelectionApi.ts:105

The pasted ids that named nothing in this graph. Absent when every id named something.


unresolvedPaths ​

readonly unresolvedPaths: readonly string[]

Defined in: graphty-element/src/session/selection/SelectionApi.ts:113

The paths the target named that nothing in this session answers.

Matching nothing is a legitimate answer for a selection, so an unanswerable path is reported rather than thrown -- otherwise "nothing matched" and "you misspelled the run id" are the same empty selection.