fix(types): use correct edge event types
# What's changed? * instead of `MouseEvent`, emit `EdgeMouseEvent` type * fix examples
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user