update(examples): Add update node example

This commit is contained in:
Braks
2021-10-22 11:05:27 +02:00
parent 0cc7ef4805
commit cd32f14a5a
7 changed files with 84 additions and 7 deletions
@@ -40,7 +40,7 @@ const initialElements: Elements = [
] as Elements
const elements = ref(initialElements)
const onLoad = (reactFlowInstance: OnLoadParams) => reactFlowInstance.fitView()
const onLoad = (flowInstance: OnLoadParams) => flowInstance.fitView()
const onEdgeUpdateStart = (edge: Edge) => console.log('start update', edge)
const onEdgeUpdateEnd = (edge: Edge) => console.log('end update', edge)
const onEdgeUpdate = ({ edge, connection }: FlowEvents['edgeUpdate']) =>