src/js/CanvasView.js
function drawNodeCanvas(node, color) {
    var parent = node.getParent();
    var depth = node.getDepth();
    var offsetX = node.offset.x;
    var offsetY = node.offset.y;
    color = color || node.branchColor;

    var $node = $getNode(node);
    var $parent = $getNode(parent);
    var $canvas = $getNodeCanvas(node);

    drawLineCanvas($canvas, depth, offsetX, offsetY, $node, $parent, color);
  }
function drawNodeCanvas(node, color) {
    var parent = node.getParent();
    var depth = node.getDepth();
    var offsetX = node.offset.x;
    var offsetY = node.offset.y;
    color = color || node.branchColor;

    var $node = $getNode(node);
    var $parent = $getNode(parent);
    var $canvas = $getNodeCanvas(node);

    drawLineCanvas($canvas, depth, offsetX, offsetY, $node, $parent, color);
  }
function drawNodeCanvas ( node , color ) { var parent = node . getParent ( ) ; var depth = node . getDepth ( ) ; var offsetX = node . offset . x ; var offsetY = node . offset . y ; color = color || node . branchColor ; var $node = $getNode ( node ) ; var $parent = $getNode ( parent ) ; var $canvas = $getNodeCanvas ( node ) ; drawLineCanvas ( $canvas , depth , offsetX , offsetY , $node , $parent , color ) ; }
Redraws a node's branch to its parent.

@param {mindmaps.Node} node
@param {String} optional color
Redraws a node s branch to its parent .