fix: zoom pan helper not being initialized timely

This commit is contained in:
Braks
2021-10-21 13:46:15 +02:00
parent c062601874
commit ca2901bc01
7 changed files with 51 additions and 47 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { Ref } from 'vue'
import { ElementId, Transform } from './types'
import { ElementId, FlowTransform } from './types'
import { D3Zoom, D3Selection, PanOnScrollMode, KeyCode } from './panel'
import { Connection } from '@/src'
@@ -20,7 +20,7 @@ export interface UseZoomOptions {
}
export interface UseZoom {
transform: Ref<Transform>
transform: Ref<FlowTransform>
d3Zoom: Ref<D3Zoom>
d3Selection: Ref<D3Selection>
}