@graphty/graphty-element / session / SelectionCause
Type Alias: SelectionCause ​
SelectionCause =
"user"|"api"|"command"|"history"
Defined in: graphty-element/src/session/selection/SelectionApi.ts:85
Who asked for a selection change.
A consumer reacts differently to each: a change a person made with the mouse should move the camera and open the inspector, and the identical change made by a script replaying a saved document should do neither. history is an undo, a redo or a restore selecting the elements it changed.