feat(edge): add onEdgeContextMenu handler #943

This commit is contained in:
moklick
2021-02-26 10:51:25 +01:00
parent c7b04dbc0f
commit 0d1d802ed5
6 changed files with 45 additions and 23 deletions
+2
View File
@@ -85,6 +85,7 @@ const GraphView = ({
onPaneScroll,
onPaneContextMenu,
onEdgeUpdate,
onEdgeContextMenu,
}: GraphViewProps) => {
const isInitialised = useRef<boolean>(false);
const setOnConnect = useStoreActions((actions) => actions.setOnConnect);
@@ -262,6 +263,7 @@ const GraphView = ({
markerEndId={markerEndId}
onEdgeUpdate={onEdgeUpdate}
onlyRenderVisibleElements={onlyRenderVisibleElements}
onEdgeContextMenu={onEdgeContextMenu}
/>
</FlowRenderer>
);