feat(store, flow)!: Add useNode/useEdge-state helpers
* for two way binding use the helpers
This commit is contained in:
@@ -121,6 +121,8 @@ export type FlowOptions<N = any, E = N> = FlowProps<N, E>
|
||||
|
||||
export type UseVueFlow = {
|
||||
store: FlowStore
|
||||
useNodesState: (nodes: Node[]) => GraphNode[]
|
||||
useEdgesState: (edges: Edge[]) => GraphEdge[]
|
||||
applyNodeChanges: (changes: NodeChange[]) => void
|
||||
applyEdgeChanges: (changes: EdgeChange[]) => void
|
||||
} & FlowHooksOn
|
||||
|
||||
Reference in New Issue
Block a user