plugins/incub/visualizer/old/src/js/demo_vivagraph.js
function displayNameDOM(node){
    $('.nodeLabel').remove();
    var nodePos = layout.getNodePosition(node._id);
    var domPos = {
        x: nodePos.x,
        y: nodePos.y
    };

    graphics.transformGraphToClientCoordinates(domPos);

    var labelStyle = generateDOMLabel(node).style;
    labelStyle.left = domPos.x;
    labelStyle.top = domPos.y;
}
function displayNameDOM(node){
    $('.nodeLabel').remove();
    var nodePos = layout.getNodePosition(node._id);
    var domPos = {
        x: nodePos.x,
        y: nodePos.y
    };

    graphics.transformGraphToClientCoordinates(domPos);

    var labelStyle = generateDOMLabel(node).style;
    labelStyle.left = domPos.x;
    labelStyle.top = domPos.y;
}
function displayNameDOM ( node ) { $ ( '.nodeLabel' ) . remove ( ) ; var nodePos = layout . getNodePosition ( node . _id ) ; var domPos = { x : nodePos . x , y : nodePos . y } ; graphics . transformGraphToClientCoordinates ( domPos ) ; var labelStyle = generateDOMLabel ( node ) . style ; labelStyle . left = domPos . x ; labelStyle . top = domPos . y ; }
Removes the previous label and add a new one for the current node
@param node
Removes the previous label and add a new one for the current node