Question

In my graph edges have points and I want to have such behavior: I drag one of edges points another points stay in place and only my point(under mouse cursor) is dragging and the distance between another points changes. How can I implement this?

Was it helpful?

Solution

Absent your sscce, you might look at these examples for some ideas: This example shows how to manipulate a line with two endpoints. This more complex example manages a List<Node> in which each node represents a Point that can be dragged.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top