refactor(zoom): make zoomActivationKeyCode non-optional again
* defaults to Meta * handle pan by checking if zoomkey is *not* pressed
This commit is contained in:
+2
-2
@@ -36,7 +36,7 @@ export interface State<N = any, E = N> extends Omit<FlowOptions<N, E>, 'id' | 'm
|
|||||||
deleteKeyCode: KeyCode
|
deleteKeyCode: KeyCode
|
||||||
selectionKeyCode: KeyCode
|
selectionKeyCode: KeyCode
|
||||||
multiSelectionKeyCode: KeyCode
|
multiSelectionKeyCode: KeyCode
|
||||||
zoomActivationKeyCode: KeyCode | null
|
zoomActivationKeyCode: KeyCode
|
||||||
|
|
||||||
connectionNodeId: string | null
|
connectionNodeId: string | null
|
||||||
connectionHandleId: 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
|
nodesConnectable: boolean
|
||||||
elementsSelectable: boolean
|
elementsSelectable: boolean
|
||||||
selectNodesOnDrag: boolean
|
selectNodesOnDrag: boolean
|
||||||
paneMovable: boolean
|
panOnDrag: boolean
|
||||||
zoomOnScroll: boolean
|
zoomOnScroll: boolean
|
||||||
zoomOnPinch: boolean
|
zoomOnPinch: boolean
|
||||||
panOnScroll: boolean
|
panOnScroll: boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user