Closed Malikx-Alee closed 4 years ago
onCopySelected only works on nodes because edges are a link between two nodes, so you can't really copy them anywhere. It would be the third party developer that would have to figure out what happens when an edge is copied. If you're willing you can help modify the graph-view.js file to include edge copying in the "c" and "v" locations. This would have to be a breaking change unless an additional graph-view attribute (allowEdgeCopying={boolean=false}
) were included.
https://github.com/uber/react-digraph/blob/master/src/components/graph-view.js#L601
I am expecting this onCopySelected function to be called either the node or edge is selected, but currently its only being called for node only.