From 8544f9802fc3766a32836ba72635d0582a702fa5 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 5 Aug 2020 09:56:37 +0200 Subject: [PATCH] docs(readme): add onPaneContextMenu --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2320a31b..a6742b7a 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ const BasicFlow = () => ; - `onMoveEnd()`: called when user ends panning or zooming - `onSelectionChange(elements: Elements)`: called when user selects one or multiple elements - `onPaneClick(evt: MouseEvent)`: called when user clicks directly on the canvas +- `onPaneContextMenu(evt: MouseEvent)`: called when user does a right-click on the canvas #### Interaction - `nodesDraggable`: default: `true`. This applies to all nodes. You can also change the behavior of a specific node with the `draggable` node option.