refactor(hooks)!: use selection change hook

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 056bcd5dd9
commit d367f3a2aa
+1 -1
View File
@@ -30,7 +30,7 @@ export interface FlowEvents {
move: FlowTransform | undefined
moveStart: FlowTransform | undefined
moveEnd: FlowTransform | undefined
selectionChange: FlowElements | undefined
selectionChange: { nodes?: GraphNode[]; edges?: GraphEdge[] }
selectionDragStart: { event: MouseTouchEvent; nodes: GraphNode[] }
selectionDrag: { event: MouseTouchEvent; nodes: GraphNode[] }
selectionDragStop: { event: MouseTouchEvent; nodes: GraphNode[] }