fix(types): use correct edge event types

# What's changed?

* instead of `MouseEvent`, emit `EdgeMouseEvent` type
* fix examples
This commit is contained in:
braks
2022-07-22 16:56:10 +02:00
committed by Braks
parent 3537e6b022
commit d96e944a49
13 changed files with 56 additions and 43 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ export default defineComponent({
},
onPaneReady(instance: FlowEvents['paneReady']) {
instance.fitView()
this.instance = instance
this.instance = instance as any
},
onConnect(params: FlowEvents['connect']) {
addEdge(params, this.elements)