@graphty/graphty-element / session / SelectionDelta
Interface: SelectionDelta ​
Defined in: graphty-element/src/session/selection/SelectionApi.ts:88
What one mutation changed.
Properties ​
added ​
readonlyadded: readonlyNodeId[]
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 ​
readonlycause:SelectionCause
Defined in: graphty-element/src/session/selection/SelectionApi.ts:120
Who asked.
edges ​
readonlyedges:number
Defined in: graphty-element/src/session/selection/SelectionApi.ts:101
How many edges the selection holds now.
nodes ​
readonlynodes:number
Defined in: graphty-element/src/session/selection/SelectionApi.ts:99
How many nodes the selection holds now.
removed ​
readonlyremoved: readonlyNodeId[]
Defined in: graphty-element/src/session/selection/SelectionApi.ts:97
The elements that left the selection, nodes first and then edges.
skipped? ​
readonlyoptionalskipped?: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 ​
readonlytruncated: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? ​
readonlyoptionalunmatched?: readonlystring[]
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 ​
readonlyunresolvedPaths: readonlystring[]
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.