mxGraph: Which event is fired when I move a handle point of an edge?

Viewed 377

I move the point and I want to save the position after the movement. How can I catch this event? I know, the edge gets the points after moving, I can find control points in the geometry. But I need the moment of the end of movement.

edge point moving

1 Answers

I'm not sure if it helps, but I usually have a listener to mxEvent.CHANGE, and process each change...

Something like this:

model.addListener(mxEvent.CHANGE, function(sender, evt)
{
   var changes = evt.getProperty('edit').changes;
   for (var i = 0; i < changes.length; i++) {   
     if (changes[i].constructor.name ==  "mxTerminalChange") {
       // DO SOMETHING
     }
   }
}
Related