refactor(zoom): make zoomActivationKeyCode non-optional again

* defaults to Meta
* handle pan by checking if zoomkey is *not* pressed
This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 0bb54d6d36
commit 4af0ee02c1
+2 -2
View File
@@ -36,7 +36,7 @@ export interface State<N = any, E = N> extends Omit<FlowOptions<N, E>, 'id' | 'm
deleteKeyCode: KeyCode
selectionKeyCode: KeyCode
multiSelectionKeyCode: KeyCode
zoomActivationKeyCode: KeyCode | null
zoomActivationKeyCode: KeyCode
connectionNodeId: string | null
connectionHandleId: string | null
@@ -58,7 +58,7 @@ export interface State<N = any, E = N> extends Omit<FlowOptions<N, E>, 'id' | 'm
nodesConnectable: boolean
elementsSelectable: boolean
selectNodesOnDrag: boolean
paneMovable: boolean
panOnDrag: boolean
zoomOnScroll: boolean
zoomOnPinch: boolean
panOnScroll: boolean