[Origin] wow have tree string and undo working flawlessly, somewhat hacky but very robust all things considered

This commit is contained in:
Peter Cottle 2013-05-26 18:21:38 -07:00
parent 2938c3fb37
commit cbcd489a31
10 changed files with 126 additions and 30 deletions

View file

@ -277,7 +277,8 @@ var VisNode = VisBase.extend({
_.each(this.get('outgoingEdges'), function(edge) {
var headPos = edge.get('head').getScreenCoords();
var path = edge.genSmoothBezierPathStringFromCoords(parentCoords, headPos);
edge.get('path').stop().attr({
edge.get('path').stop();
edge.get('path').attr({
path: path,
opacity: 0
});