jgraph/mxgraph

how to only move the edge position,not reconnect the source or target

Closed this issue · 1 comments

I'm a newer to use mxgraph, when I pick the edge that was connected source and target,I just want to move its position to avoid other cells, I dont want the edge reconnect other source or target by the point which the mouse click up.
Please! Thank you!

Use below function and return true if edge
graph.isCellMovable = function (cell) {
if (this.model.isEdge(cell)){
return true;
}
}