I'm trying to change the style of an edge when it connects. The style is set by logic dependent on either the source or target vertex. I can change the style just fine by adding a connection listener and using mxCell.setStyle:
graph.connectionHandler.addListener(mxEvent.CONNECT, function (sender, evt)
{
var edge = evt.getProperty('cell');
edge.setStyle("...");
}
While this sets the style to what I specify, for some reason it changes the connection point on the target vertex. For example, if I drag it to 9:00 on the target vertex, after I set the style it will many times move the connection point to 6:00 on the target vertex.